NewtonTreeCollisionEndBuild hangs-up

A place to discuss everything related to Newton Dynamics.

Moderators: Sascha Willems, walaber

NewtonTreeCollisionEndBuild hangs-up

Postby LukasBanana » Mon Feb 15, 2010 2:15 pm

Hi,

I downloaded the latest newton (2.16) verison and now a NewtonTreeCollisionEndBuild function call hangs-up my application.
I use this function to create the level-environment, the physics object which does not move or rotated, just as the ground for the other physics objects - but I think you all know what this function is.

Before I used newton 2.04 and this function call worked perfectly.

Code: Select all
nCollision = NewtonCreateTreeCollision(nWorld, 0);
NewtonTreeCollisionBeginBuild(nCollision);

/* ... */
NewtonTreeCollisionAddFace(nCollision, 3, vArray, sizeof(float)*3, 1);
/* ... */

NewtonTreeCollisionEndBuild(nCollision, 1); // hang up
nBody = NewtonCreateBody(nWorld, nCollision);
My project: SoftPixel Engine
My forum: SoftPixel Forum
User avatar
LukasBanana
 
Posts: 35
Joined: Mon Jul 27, 2009 11:55 am
Location: Germany

Re: NewtonTreeCollisionEndBuild hangs-up

Postby Julio Jerez » Mon Feb 15, 2010 4:56 pm

It should work Perfect in 2.16 too.
make sure the data you are passing is right
Julio Jerez
Moderator
Moderator
 
Posts: 12452
Joined: Sun Sep 14, 2003 2:18 pm
Location: Los Angeles


Return to General Discussion

Who is online

Users browsing this forum: No registered users and 391 guests

cron