3 min read

Source: Roblox Creator Hub · CC BY 4.0 · View source · Code samples: MIT Imported 2026-10-03. Formatting adapted for this site.

VelocityConstraintMode

The velocity constraint mode sets how the attachment velocity is constrained. The velocity can be constrained to a line, a plane or a vector. See each mode for more details.

Items

NameValueDescription
Line0The velocity component in the direction of the line is constrained to the specified value. The line direction is based on the RelativeTo property: - Attachment0 - The line direction is the primary axis of Attachment0. - Attachment1 - The line direction is the primary axis of Attachment1. - World - The line direction must be specified.
Plane1The velocity components in the plane are constrained to the specified values. The plane tangents are based on the RelativeTo property: - Attachment0 - The plane tangents are the two axes of Attachment0. - Attachment1 - The plane tangents are the two axes of Attachment1. - World - The two plane tangents must be specified
Vector2The velocity components must be equal to the vector components specified. The coordinate system of the vector is based on the RelativeTo property: - Attachment0 - The vector components are in the coordinate system defined by the axes of Attachment0. - Attachment1 - The vector components are in the coordinate system defined by the axes of Attachment1. - World - The coordinate system is in the world and the vector components must be specified.

Line

The velocity component in the direction of the line is constrained to the specified value. The line direction is based on the RelativeTo property:

FieldValue
value0

Plane

The velocity components in the plane are constrained to the specified values. The plane tangents are based on the RelativeTo property:

FieldValue
value1

Vector

The velocity components must be equal to the vector components specified. The coordinate system of the vector is based on the RelativeTo property:

FieldValue
value2