Closed MiloHX closed 5 years ago
Hello, thanks for using the library!
As you say, I haven't implemented setLinearFactor
yet so there is no equivalent function in release 1.2.0. But there are a few ways to lock a specific axis of an object, and I recommend the following one:
GenericJoint
that connects the static rigid body and the object. By default, two objects are completely stuck and they cannot move or rotate along each otherPlease note that simply assigning a constant to the object's location and velocity every frame will not work correctly, as it does not perform as a "physical constraint."
I hope this helps :)
I think I got the answer, case closed & thank you!
Hi! Thanks for the wonderful physics engine! I got a question: if I want to lock a specific axis of an object, in bullet I can use setLinearFactor() and set that axis to 0.0. In Oimo I found that there is setRotationFactor() for rotation, but I didn't find the equivalent for location. May I know what is the best way to achieve this?
Regards Milo