Confusion with Collisions

A place to discuss everything related to Newton Dynamics.

Moderators: Sascha Willems, walaber

Confusion with Collisions

Postby Xaymar » Sun Jul 11, 2010 7:07 am

According to the Wiki NewtonCollisions get deleted when theres no Body referring to them anymore. Is this really true? Because thats a bit meh :/
Xaymar
 
Posts: 8
Joined: Sat Jul 10, 2010 7:49 pm

Re: Confusion with Collisions

Postby JernejL » Sun Jul 11, 2010 7:13 am

That's why you add a reference so they don't get deleted..

see: NewtonAddCollisionReference
Help improving the Newton Game Dynamics WIKI
User avatar
JernejL
 
Posts: 1587
Joined: Mon Dec 06, 2004 2:00 pm
Location: Slovenia

Re: Confusion with Collisions

Postby Xaymar » Sun Jul 11, 2010 7:18 am

I didnt see that function(its not included it the api database). Thanks for the help

Edit: Database, i ment Database
Last edited by Xaymar on Sun Jul 11, 2010 9:40 am, edited 1 time in total.
Xaymar
 
Posts: 8
Joined: Sat Jul 10, 2010 7:49 pm

Re: Confusion with Collisions

Postby Julio Jerez » Sun Jul 11, 2010 9:15 am

int NewtonAddCollisionReference (const NewtonCollision* collision);
void NewtonCollisionGetInfo (const NewtonCollision* collision, NewtonCollisionInfoRecord* collisionInfo);
Julio Jerez
Moderator
Moderator
 
Posts: 12426
Joined: Sun Sep 14, 2003 2:18 pm
Location: Los Angeles

Re: Confusion with Collisions

Postby JernejL » Sun Jul 11, 2010 9:16 am

It is included in every demo, and in the api reference on wiki..
Help improving the Newton Game Dynamics WIKI
User avatar
JernejL
 
Posts: 1587
Joined: Mon Dec 06, 2004 2:00 pm
Location: Slovenia


Return to General Discussion

Who is online

Users browsing this forum: No registered users and 1 guest

cron