Level material

A place to discuss everything related to Newton Dynamics.

Moderators: Sascha Willems, walaber

Level material

Postby armokal » Mon Feb 09, 2009 12:14 am

To create a level, I make the following calls:
NewtonCreateTreeCollision
NewtonTreeCollisionBeginBuild

then to add triangles
NewtonTreeCollisionAddFace

and finally
NewtonTreeCollisionEndBuild
NewtonCreateBody
NewtonBodySetMaterialGroupID(NewtonBody, LevelID);
NewtonBodySetUserData
NewtonCollisionCalculateAABB
NewtonReleaseCollision

but this sets up the material for the *entire* level. What if some things are made of wood, some metal, some glass.
Do I have to make separate calls to create a new collision tree?
armokal
 
Posts: 22
Joined: Fri Oct 27, 2006 10:03 pm
Location: Canada

Return to General Discussion

Who is online

Users browsing this forum: No registered users and 15 guests

cron