I am trying to allow two seperate components to be able to snap together and connect using a slider.
I have several objects that fall with gravity and are able to collide and react to each other. I cant work out how to get them to join together using a slider. I have not been able to find much information on the subject.
I am setting up a joint using
Code: Select all
sliderTest = new btSliderConstraint(*classTest.rigidBody2,*classTest.rigidBody3,classTest.transformation2,classTest.transformation3,true);
I then add the constraint to the world using
Code: Select all
initilisePhysics.dynamicsWorld->addConstraint(sliderTest,true);
Many thanks