can you "unset" a btSliderConstraint?

khoowaikeong
Posts: 43
Joined: Fri Jun 15, 2012 7:11 am

can you "unset" a btSliderConstraint?

Post by khoowaikeong »

like you are dragging a train cart, but then you want to uncouple the cart from the rest of the train.
Dalorin
Posts: 7
Joined: Mon Jun 11, 2012 10:31 am

Re: can you "unset" a btSliderConstraint?

Post by Dalorin »

Store a reference to the constraint and call dynamicsWorld->removeConstraint(constraint) when you're done with it.