This project has moved and is read-only. For the latest updates, please go here.

Features questions

Topics: Developer Forum, Project Management Forum, User Forum
Oct 5, 2007 at 10:44 PM

Awesome lib!

Couple of questions:
1. If I wanted to "dumb down" some of the objects in my scene and make it so they won't rotate (i.e. torque is always zero, clamp angularVelocity to 0, etc), how do I do that?
2. How would I achieve a "clamp" collision response. For example I have a moving body hitting a static "ground". I want that object to just stop wherever it hits, no bounce and no sliding on the ground. Obviously I can tweak the restitution and friction coefficients, but is there a way to modify the behavior directly?

Oct 6, 2007 at 4:02 PM
1. you could add an AngleJoint and set it's target angle to zero.

2. I think you would have to create a collision collback for that geometry, then when you detected a collions set the bodies Linear and Angular Velocity to zero... Not sure if that will work or not..