Open Asterune
RodConstraint

RodConstraint

Maintains a fixed distance between two attachments.

Creatable
Instance.new("RodConstraint")
Inherits
ConstraintInstance
Replication
Standard

Behavior

RodConstraint maintains a fixed distance between two attachments.

Summary

Members13
Properties12
Methods1

Properties

Active

RodConstraint.Active: boolean = false

Whether the constraint is currently active in the physics simulation.

Attachment0

RodConstraint.Attachment0: Attachment? = nil

The first attachment used by the constraint or effect.

Attachment1

RodConstraint.Attachment1: Attachment? = nil

The second attachment used by the constraint or effect.

Color

RodConstraint.Color: Color3 = Color3.new(1, 0.686, 0)

The color of the constraint visualization.

CurrentDistance

RodConstraint.CurrentDistance: number = 0

The current distance between the constraint's attachments, in studs.

Enabled

RodConstraint.Enabled: boolean = true

Whether the physics solver processes this constraint.

Length

RodConstraint.Length: number = 5

The configured length of the rod or rope, in studs.

LimitAngle0

RodConstraint.LimitAngle0: number = 0

The angular limit at the first rod attachment.

LimitAngle1

RodConstraint.LimitAngle1: number = 0

The angular limit at the second rod attachment.

LimitsEnabled

RodConstraint.LimitsEnabled: boolean = false

Whether the constraint enforces its positional or angular limits.

Thickness

RodConstraint.Thickness: number = 0.15

The thickness of the stroke or shell.

Visible

RodConstraint.Visible: boolean = false

Whether the constraint visualization is displayed.

Methods

GetExecutionGroup

RodConstraint:GetExecutionGroup(): ExecutionGroup?

Returns this instance if it is an ExecutionGroup. Otherwise returns the nearest ancestor ExecutionGroup, or nil when no group contains the instance.

Inherited members

Inherited47

Constraint