scene collision - non-convex polygonal scene

A place to discuss everything related to Newton Dynamics.

Moderators: Sascha Willems, walaber

scene collision - non-convex polygonal scene

Postby mlfarrell » Mon Aug 23, 2010 10:22 pm

I figured this is possible as I've seen it done in spinoff projects using newton. I have a polygonal scene I've modeled in blender and I want to have newton simulate physical interactions between rigid bodies and the scene.

The scene is actually a very simple collection of just two non-convex but closed shapes totaling just 170 faces. Is this possible? If so, how do I do it.
mlfarrell
 
Posts: 14
Joined: Mon Aug 23, 2010 3:39 am

Re: scene collision - non-convex polygonal scene

Postby JernejL » Tue Aug 24, 2010 3:57 am

Use a trimesh or a compound collison
Help improving the Newton Game Dynamics WIKI
User avatar
JernejL
 
Posts: 1587
Joined: Mon Dec 06, 2004 2:00 pm
Location: Slovenia

Re: scene collision - non-convex polygonal scene

Postby mlfarrell » Tue Aug 24, 2010 4:00 am

Thanks man. What exactly is the difference? Is one more efficient than the other? I'll be running this on an iPad so efficiency is top priority. :mrgreen:

Edit: I found NewtonCreateTreeCollision which seems to be perfect for my application. Any problem with using this?
mlfarrell
 
Posts: 14
Joined: Mon Aug 23, 2010 3:39 am

Re: scene collision - non-convex polygonal scene

Postby Stucuk » Tue Aug 24, 2010 12:35 pm

Collision Trees can't move. So there only useful for Static Geometry.
User avatar
Stucuk
 
Posts: 801
Joined: Sat Mar 12, 2005 3:54 pm
Location: Scotland


Return to General Discussion

Who is online

Users browsing this forum: No registered users and 45 guests