Creating a collision with an hole

A place to discuss everything related to Newton Dynamics.

Moderators: Sascha Willems, walaber

Creating a collision with an hole

Postby yoshy » Wed Mar 11, 2009 6:33 am

I need to create a collision form that has a hole, kind like a donut. I was thinking in using convex hull, but that ignores the inner points. Another alternative is to fuse several collision shapes, but it doesn't seems very elegant. Does someone knows a way of doing that? creating a collision form that has the shape of a donut?

Thanks in advance!!
yoshy
 
Posts: 4
Joined: Sun Feb 08, 2009 3:28 pm

Re: Creating a collision with an hole

Postby Gianluca » Wed Mar 11, 2009 12:24 pm

There in the forum a topic about that.

It was posted a link to a code that convert any mesh into a set of convex collision, and then you can use them to create a set of convexhulls.
Gianluca
 
Posts: 53
Joined: Fri Nov 11, 2005 4:37 am
Location: Rome - Italy

Re: Creating a collision with an hole

Postby yoshy » Wed Mar 11, 2009 6:05 pm

That seems great. But I have made some search on the forum and haven't found anything about the subject. Does anyone knows where I can get that code?
yoshy
 
Posts: 4
Joined: Sun Feb 08, 2009 3:28 pm

Re: Creating a collision with an hole

Postby JernejL » Wed Mar 11, 2009 7:16 pm

you just create convex hull pieces and make a compound collision from them using NewtonCreateCompoundCollision .
Help improving the Newton Game Dynamics WIKI
User avatar
JernejL
 
Posts: 1578
Joined: Mon Dec 06, 2004 2:00 pm
Location: Slovenia

Re: Creating a collision with an hole

Postby Gianluca » Thu Mar 12, 2009 4:40 am

Look at this topic
viewtopic.php?f=14&t=4723
Gianluca
 
Posts: 53
Joined: Fri Nov 11, 2005 4:37 am
Location: Rome - Italy


Return to General Discussion

Who is online

Users browsing this forum: No registered users and 6 guests