I want the box to be fixed to the floor and rotate

I want to use the physical method setAngularVelocity to rotate the box, but it will slowly deviate from its original position. Which constraint method should I use to constrain it to be fixed to the floor?
Hinge?
6 Degrees Of Freedom?
Slider?
I can’t seem to understand their parameters~

cc @Cedric, but it does not seem to deviate from its original position when I test your PG(?)

If there is a slight slope it will deviate

Do you want to keep the position from moving when rotating?

Yeah, so I need a hinge constraint to connect it to the floor.

hinge

3 Likes

Thai cool spicy! :grinning:

1 Like