Moving a PlaneConstraint Height using LinearVelocity

I have a PlaneConstraint that regulates the height of a part and I want to know if I can change the height of the PlaneConstraint if I apply a LinearVelocity to the PlaneConstraint’s Attachment0. I’ve been experimenting with this for a bit and I can’t seem to get anything that can change it aside from manually setting the Cframe which is what I’m trying to avoid doing (Reason for this is that the application for this is move an assembly that is also has subassemblies with hingeConstraints and such, and using Cframe to modify the Y position will cause the assembly to fling).

If there’s a better approach or more details are needed, I’ll be happy to provide them. Thanks in advance!

1 Like

If you attach the plane constraint to a part you should be able to move the part with a LinearVelocity unless the parts of the plane assembly are restricted (e.g. anchored, controlled by other constraints, etc).

I think the best way to reword what I want to accomplish is that currently my planeConstraint regulates my assembly so that if if another object is to hit my assembly, then it will maintain its height. I already do use linearVelocity and alignOrientation to move the assembly around the plane, but the issue arises when I want to say for example, elevate my assembly to a higher Y.

From my understanding of planeConstraints:
Attachment0: Controller
Attachment1: Child of assembly to be controlled

The parent of Attachment1 will be able to move anywhere on the plane normal to A1 and A0’s primary axis, and this can be controlled with constraints or movers.

Therefore, if I want to change the Y axis my assembly is on and move it, I need to somehow move attachment0. Updating CFrames won’t work because that will fling my assembly, so my next thought is to use mover; so my issue isn’t really moving the assembly along the plane, its more about how to go about moving the plane the assembly is on.

If you have the attachment0 in a separate assembly you should just be able to move that assembly normally with physics but still have attachment0 “control” the assembly with the attachment1.

1 Like

Oh, I see what you mean. That seems to have worked; in my implementation when testing I also needed to disable force limits on the LinearVelocity for the other part, but other than that it seems to work! Thanks!

1 Like

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