Page 1 of 1

btPoint2PointConstraint

Posted: Wed Jun 08, 2016 7:31 pm
by erbisme4@yahoo.com
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!

Re: btPoint2PointConstraint

Posted: Sat Jun 11, 2016 11:14 pm
by benelot
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.