PrismaticConstraint working backwards?

I’m trying to make a moving platform
Shown in the video, the grey part is meant to be still while the red part moves away from it
However, the opposite happens

I genuinely have no idea what I’m doing wrong
I’ve tried:

  • Anchoring the base (nothing moves)
  • Swapping attachment 0 and 1 (grey part still moves away from red)
  • Checking Orientation of both Attachments

I feel like I’m missing a slight detail or doing this completely wrong, help would be greatly appreciated
(apologies for bad crop)

2 Likes

Try swapping the attachments around again, maybe you made a mistake when you last swapped them around

Another thing you could do, is modify the grey part to be the same as the red part and modify the red part to be the grey part.

i just deleted everything and did it from square one and it just worked
idk whats going on bro
i appreciate the help

i am so tired

You probably just needed to switch the attachments around. I think Attachment 1 is the base part and Attachment2 is the part you want to have the behavior

That’s strange, probably you may need to reverse the attachments so the constraint operates in the correct direction

Attachments are the fundamental parts of a constraint. The constraint will manipulate the attachments in 2 ways (motion and rotation)
HingeConstraint rotates attachments around an axis.
PrismaticConstraint does the opposite of a hinge constraint. Instead of rotation you get movement.
And of course, for some constraints you can limit their ranges of movement.

I use HingeConstraints for most of my work where some rotation is needed. I don’t know CFrame yet. so until then I’ll use HingeConstraints & PrismaticConstraints.

Also i found a brand new one called UniversalConstraints. They’re basically CV joints.

If you don’t use Attachments, the constraint will not work.

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