Make part's X axis zero all the time using mechanical constraint

The Building Support sub-category is intended for all development support relating to architecture on the Roblox platform. This includes questions ranging in difficulty from extremely basic to even the most technical issues.

You may present your thread how you choose, but you are required to answer the following questions in your thread;

  • What are you attempting to achieve?

I’m trying to make a part that does not go below or beyond 0 on the X axis while still being able to move freely on the Y and Z axes and rotate freely on all axes, and only using mechanical constraints.

  • What is the issue?

I tried using prismatic constraint BUT it instead locks on the target’s X axis instead of Y and Z, plus; the subject part cannot rotate freely

  • What solutions have you tried so far?

I tried searching this issue in Google but the results are not relevant

You may then include any further details.

2 Likes

Try using two PlaneConstraints. Add two attachments to the target object. One is 90 degrees to the left and the other is 90 degrees to the left and 90 degrees downwards. Then add one attachment to the subject. Use the PlaneConstraints to connect the two attachments in the target object as Attachment0 and the subject’s attaachment to Attachment1. The part should be able to rotate around freely while being locked on the target’s X axis.

1 Like

Wait I read the post incorrectly. Just use one attachment that isn’t rotated on the target object and one PlaneConstraint.

1 Like