Open Asterune
UniversalConstraint

UniversalConstraint

Connects two attachments with two rotational degrees of freedom.

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

Behavior

UniversalConstraint connects two attachments with two rotational degrees of freedom.

Summary

Members11
Properties10
Methods1

Properties

Active

UniversalConstraint.Active: boolean = false

Whether the constraint is currently active in the physics simulation.

Attachment0

UniversalConstraint.Attachment0: Attachment? = nil

The first attachment used by the constraint or effect.

Attachment1

UniversalConstraint.Attachment1: Attachment? = nil

The second attachment used by the constraint or effect.

Color

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

The color of the constraint visualization.

Enabled

UniversalConstraint.Enabled: boolean = true

Whether the physics solver processes this constraint.

LimitsEnabled

UniversalConstraint.LimitsEnabled: boolean = false

Whether the constraint enforces its positional or angular limits.

MaxAngle

UniversalConstraint.MaxAngle: number = 45

The angular limit of the universal joint.

Radius

UniversalConstraint.Radius: number = 0.15

The radius of the constraint visualization.

Restitution

UniversalConstraint.Restitution: number = 0

The restitution applied when a constraint limit is reached.

Visible

UniversalConstraint.Visible: boolean = false

Whether the constraint visualization is displayed.

Methods

GetExecutionGroup

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