rojo/.cursor/rules/roblox/en-us/physics/constraints/plane.md
2026-02-02 14:05:11 -06:00

1.6 KiB

title description
Plane PlaneConstraint moves two attachments into a position/orientation along a plane, and both attachments remain free to translate and rotate unless otherwise constrained.
For an overview on creating, visualizing, and simulating mechanical constraints, including `Class.PlaneConstraint`, see [Mechanical constraints](../../physics/mechanical-constraints.md). Also see [Roblox units](../../physics/units.md) to understand how Roblox units compare to metric units.

A Class.PlaneConstraint moves its Class.Constraint.Attachment0|Attachment0 and Class.Constraint.Attachment1|Attachment1 into a position/orientation along a plane whose normal vector is the primary axis of Class.Constraint.Attachment0|Attachment0. Both parent assemblies remain free to translate and rotate unless otherwise constrained.

Compare the following examples for how the orientation of Class.Constraint.Attachment0|Attachment0 defines the plane, while the orientation of Class.Constraint.Attachment1|Attachment1 has no bearing.

Attachment0 oriented to (0, 0, 90) Attachment0 oriented to (-45, 0, 90)