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
Whether the constraint is currently active in the physics simulation.
The first attachment used by the constraint or effect.
The second attachment used by the constraint or effect.
The color of the constraint visualization.
The current distance between the constraint's attachments, in studs.
Whether the physics solver processes this constraint.
The configured length of the rod or rope, in studs.
The angular limit at the first rod attachment.
The angular limit at the second rod attachment.
Whether the constraint enforces its positional or angular limits.
The thickness of the stroke or shell.
Whether the constraint visualization is displayed.
Returns this instance if it is an ExecutionGroup.
Properties
Active
RodConstraint.Active: boolean = falseWhether the constraint is currently active in the physics simulation.
Attachment0
RodConstraint.Attachment0: Attachment? = nilThe first attachment used by the constraint or effect.
Attachment1
RodConstraint.Attachment1: Attachment? = nilThe 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 = 0The current distance between the constraint's attachments, in studs.
Enabled
RodConstraint.Enabled: boolean = trueWhether the physics solver processes this constraint.
Length
RodConstraint.Length: number = 5The configured length of the rod or rope, in studs.
LimitAngle0
RodConstraint.LimitAngle0: number = 0The angular limit at the first rod attachment.
LimitAngle1
RodConstraint.LimitAngle1: number = 0The angular limit at the second rod attachment.
LimitsEnabled
RodConstraint.LimitsEnabled: boolean = falseWhether the constraint enforces its positional or angular limits.
Thickness
RodConstraint.Thickness: number = 0.15The thickness of the stroke or shell.
Visible
RodConstraint.Visible: boolean = falseWhether 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
- Properties
- ArchivableClassNameNameParent
- Methods
- AddComponent()AddTag()ClearAllChildren()ClearTags()Clone()Destroy()FindFirstAncestor()FindFirstAncestorOfClass()FindFirstAncestorWhichIsA()FindFirstChild()FindFirstChildOfClass()FindFirstChildWhichIsA()FindFirstDescendant()GetAttribute()GetAttributeChangedSignal()GetAttributes()GetChildren()GetComponent()GetComponentChangedSignal()GetComponents()GetDebugId()GetDescendants()GetFullName()GetPropertyChangedSignal()GetReferencing()GetTags()HasComponent()HasTag()IsA()IsAncestorOf()IsDescendantOf()RemoveComponent()RemoveTag()SetAttribute()WaitForChild()
- Events
- AncestryChangedAttributeChangedChangedChildAddedChildRemovedDescendantAddedDescendantRemovingDestroying