ConvexHullModifier misbehaves when mass=0

A place to discuss everything related to Newton Dynamics.

Moderators: Sascha Willems, walaber

ConvexHullModifier misbehaves when mass=0

Postby agi_shi » Sat Oct 10, 2009 3:22 pm

- create box collision
- create convex hull modifier out of the box collision
- scale the modifier in any axis using NewtonConvexHullModifierSetMatrix()
- create a body using the modifer
- set the mass of the body to 0

This creates some sort of collision bug - other objects behave very strangely when colliding with the modifier body. For example, they can collide with one side of it, but clip into the other side, and the scale is not taken into account (as if the collision is the same size as it originally was), etc. If the body is non-zero mass, then it behaves and collides correctly. Any ideas? :|
agi_shi
 
Posts: 263
Joined: Fri Aug 17, 2007 6:54 pm

Re: ConvexHullModifier misbehaves when mass=0

Postby Julio Jerez » Sat Oct 10, 2009 5:28 pm

No idea why that happens but I can find out.
Julio Jerez
Moderator
Moderator
 
Posts: 12426
Joined: Sun Sep 14, 2003 2:18 pm
Location: Los Angeles


Return to General Discussion

Who is online

Users browsing this forum: No registered users and 3 guests