btPoint2PointConstraint

Post Reply
erbisme4@yahoo.com
Posts: 41
Joined: Fri Apr 29, 2016 2:41 pm

btPoint2PointConstraint

Post 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!
benelot
Posts: 350
Joined: Sat Jul 04, 2015 10:33 am
Location: Bern, Switzerland
Contact:

Re: btPoint2PointConstraint

Post 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.
Post Reply