Open Asterune
RopeConstraint

RopeConstraint

Limits the distance between two attachments and optionally drives a winch.

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

Behavior

RopeConstraint limits the distance between two attachments and optionally drives a winch.

Summary

Members15
Properties14
Methods1

Properties

Active

RopeConstraint.Active: boolean = false

Whether the constraint is currently active in the physics simulation.

Attachment0

RopeConstraint.Attachment0: Attachment? = nil

The first attachment used by the constraint or effect.

Attachment1

RopeConstraint.Attachment1: Attachment? = nil

The second attachment used by the constraint or effect.

Color

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

The color of the constraint visualization.

CurrentDistance

RopeConstraint.CurrentDistance: number = 0

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

Enabled

RopeConstraint.Enabled: boolean = true

Whether the physics solver processes this constraint.

Length

RopeConstraint.Length: number = 5

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

Restitution

RopeConstraint.Restitution: number = 0

The restitution applied when a constraint limit is reached.

Thickness

RopeConstraint.Thickness: number = 0.05

The thickness of the stroke or shell.

Visible

RopeConstraint.Visible: boolean = false

Whether the constraint visualization is displayed.

WinchEnabled

RopeConstraint.WinchEnabled: boolean = false

Whether the rope's winch actuator is enabled.

WinchForce

RopeConstraint.WinchForce: number = 0

The maximum force applied by the winch.

WinchSpeed

RopeConstraint.WinchSpeed: number = 0

The speed at which the winch approaches its target length.

WinchTarget

RopeConstraint.WinchTarget: number = 0

The target rope length for the winch, in studs.

Methods

GetExecutionGroup

RopeConstraint: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