A place to discuss everything related to Newton Dynamics.
Moderators: Sascha Willems, walaber
by Julio Jerez » Mon May 31, 2010 8:46 am
A function can be correct and the results i generate still cane be wrong if the input data is wrong.
if you take a table and make a conevx hull form teh vertices, the hull will be liek wraping tha table in paper.
you nee to make a convex hull of each leg, and one form teh table top, ang add then to c compound collision.
If are you take the vertices of a level and make a single convex hull out of them, that will not work either, you need to add the faces to a collision tree.
That is why debug display will help you see where ther error is.
Every Netwon user uses convex hull as the most popular collison shape in the engine, you need to know where and how to use it.
almost avery demo in the SDK uses convex hull shape.
examples of debug displays are in the demos that come with the sdk, see file DebugDisplay.h and cpp
-
Julio Jerez
- Moderator

-
- Posts: 12426
- Joined: Sun Sep 14, 2003 2:18 pm
- Location: Los Angeles
-
by Carli » Tue Jun 01, 2010 2:31 am
telmopereira wrote:Instead of that, the box is like in a level, i tried out many times and that Labyrinth is treated basically like a box... If i try out a table with four simple legs it also happen be treated basically like a box ! :S
Yes, because you're just building the convex hull around the labyrinth.
http://en.wikipedia.org/wiki/Convex_hull
-
Carli
-
- Posts: 245
- Joined: Fri Oct 02, 2009 5:28 am
by JernejL » Tue Jun 01, 2010 3:30 am
-

JernejL
-
- Posts: 1587
- Joined: Mon Dec 06, 2004 2:00 pm
- Location: Slovenia
-
Return to General Discussion
Who is online
Users browsing this forum: No registered users and 2 guests