A place to discuss everything related to Newton Dynamics.
Moderators: Sascha Willems, walaber
by 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
by 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
-
by 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
by JernejL » Wed Mar 11, 2009 7:16 pm
you just create convex hull pieces and make a compound collision from them using NewtonCreateCompoundCollision .
-
JernejL
-
- Posts: 1578
- Joined: Mon Dec 06, 2004 2:00 pm
- Location: Slovenia
-
by Gianluca » Thu Mar 12, 2009 4:40 am
-
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