1. Contact and Slider constraints sound straightforward, but is that really the case? I have seen next to nothing on these forums about them, do they have any good use cases?
2. What is the Hinge2Constraint? What does it do? What is a good usage for it?
3. All constraints have these functions:
Code: Select all
virtual void setParam (int num, btScalar value, int axis=-1)Code: Select all
virtual btScalar getParam (int num, int axis=-1) const4. The constructor for the Point2Point constraint takes two vector3's cooresponding to the position in the objects local space the constraint should be anchored to. This makes complete sense to me. Most other constraints expect a btTransform though. Even looking at the examples I see some slightly more complicated math going on to get the numbers being passed into the constructor, and I really don't know what to make of it. If they aren't supposed to be a position in the objects local space, what exactly are the transforms being passed into the constraint?
Thanks in advance.