Source: Roblox Creator Hub · CC BY 4.0 · View source · Code samples: MIT Imported 2026-10-03. Formatting adapted for this site.
Plane
Note
For an overview on creating, visualizing, and simulating mechanical constraints, including PlaneConstraint, see Mechanical constraints. Also see Roblox units to understand how Roblox units compare to metric units.
A PlaneConstraint moves its Attachment0 and Attachment1 into a position/orientation along a plane whose normal vector is the primary axis of Attachment0. Both parent assemblies remain free to translate and rotate unless otherwise constrained.
Compare the following examples for how the orientation of Attachment0 defines the plane, while the orientation of Attachment1 has no bearing.
Orientation = (0, 0, 90)
<img src="https://prod.docsiteassets.roblox.com/assets/physics/constraints/Plane-Attachment0-1.jpg" width="672" height="378" alt="Attachment0 oriented to (0, 0, 90)" /> Orientation = (-45, 0, 90)
<img src="https://prod.docsiteassets.roblox.com/assets/physics/constraints/Plane-Attachment0-2.jpg" width="672" height="378" alt="Attachment0 oriented to (-45, 0, 90)" />