RodConstraint

Show Deprecated

A RodConstraint constrains two Attachments to remain separated by the value specified by RodConstraint.Length. While the attachments remain at a set distance from one another, they can both rotate freely.

By default, RodConstraints do not have angle constraints and allow each part to rotate without angular constraint. However, setting LimitsEnabled reveal the LimitAngle0 and LimitAngle1 properties, which control the maximum angle that either end of the rod may have against the respective attachment. In the image below, the two parts are joined by a RodConstraint with 45 degree limits on each end. The red part is not Anchored.

Note that if this constraint attaches one part (A) to another part (B) that is anchored or connected to an anchored part (Z), part A will not be locally simulated when interacting with a player.

Summary

Properties

The current distance between the RodConstraint's two Attachment.

READ ONLY
NOT REPLICATED

The distance apart the RodConstraint attempts to keep its Attachment at. Measured in studs.

The maximum angle between the rod and Attachment0 when LimitsEnabled is true.

The maximum angle between the rod and Attachment1 when LimitsEnabled is true.

Determines whether LimitAngle0 and LimitAngle1 control the angles between the rod and the respective attachments.

The visualized thickness of the RodConstraint.

Methods

Events

Properties

CurrentDistance

Read Only
Not Replicated

The current distance between the RodConstraint's two Attachment.

Length

The distance apart the RodConstraint attempts to keep its Attachment at. Measured in studs.

LimitAngle0

LimitAngle0 determines the maximum angle between the rod and Attachment0 when LimitsEnabled is true. Otherwise, this property is hidden in the Properties window and does nothing.

In the image below, the two parts are joined by a RodConstraint with 45 degree limits on each end. The red part is not Anchored.

See also:

LimitAngle1

LimitAngle1 determines the maximum angle between the rod and Attachment1 when LimitsEnabled is true. Otherwise, this property is hidden in the Properties window and does nothing.

In the image below, the two parts are joined by a RodConstraint with 45 degree limits on each end. The red part is not Anchored.

See also:

LimitsEnabled

LimitsEnabled determines whether the LimitAngle0 and LimitAngle1 properties control the angles between the rod and the respective attachments, as well as whether those properties are visible in the Properties window in Studio.

In the image below, the two parts are joined by a RodConstraint with 45 degree limits on each end. The red part is not Anchored.

See also:

Thickness

The visualized thickness of the RodConstraint.

Methods

Events