How do I constrain a part's orientation to one axis?

  • What are you attempting to achieve?
    I want to constrain a part’s orientation so that they may only rotate on the X axis smoothly. (Like in the game People Playground, but with 3D objects.)
  • What is the issue?
    I cannot find a physics constraint that does this, and everything I have tried doesn’t go well.
  • What solutions have you tried so far?
    I have tried using BodyGyro and AlignOrientation, none of which have worked as I’ve wanted them to.
1 Like

Now, I’ve done this before, but only with BodyGyro’s (which are now deprecated, boooo!), you can try use the AlignOrientation but it’s more stinky and harder to use.

3 Likes

BodyGyros are very spazzy, but I’ll try using them again.

1 Like

It turns out that multiple BodyGyros will not work on a single part. This is unfortunate, because I need multiple for different purposes.
1 for the ragdoll to get up, and the other for the ragdoll to be locked onto an axis.
I’m going to try using a script for this.

1 Like

Use CylindricalConstraint.

This allows position as well so you should restrict that with limits if you don’t want the position aspect.

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.