I am using a btPoint2PointConstraint to move a rigidBody around. When moving the mouse, the body doesn't seem to move though. Does the constraint have to be on the RigidBody or touching it? Is pickConstraint->setPivotB(new btVector3) sufficient enough to move the physics body?
Thanks in advance!
btPoint2PointConstraint
-
- Posts: 350
- Joined: Sat Jul 04, 2015 10:33 am
- Location: Bern, Switzerland
Re: btPoint2PointConstraint
Look at the example browser and there the CommonRigidBodyBase.h to get a proper implementation of picking. I am not sure what you mean by adding a new vector3 into pivot B. It might even be an uninitialized vector by the way.