BallSocketConstraint
Joins two attachments while allowing rotation within optional angular limits.
- Creatable
Instance.new("BallSocketConstraint")- Inherits
- ConstraintInstance
- Replication
- Standard
Behavior
BallSocketConstraint joins two attachments while allowing rotation within optional angular limits.
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.
Whether the physics solver processes this constraint.
Whether the constraint enforces its positional or angular limits.
The radius of the constraint visualization.
The restitution applied when a constraint limit is reached.
Whether the ball socket restricts twist around its primary axis.
The minimum permitted twist angle, in degrees.
The maximum permitted twist angle, in degrees.
The maximum permitted angular deviation from the socket axis, in degrees.
Whether the constraint visualization is displayed.
Returns this instance if it is an ExecutionGroup.
Properties
Active
BallSocketConstraint.Active: boolean = falseWhether the constraint is currently active in the physics simulation.
Attachment0
BallSocketConstraint.Attachment0: Attachment? = nilThe first attachment used by the constraint or effect.
Attachment1
BallSocketConstraint.Attachment1: Attachment? = nilThe second attachment used by the constraint or effect.
Color
BallSocketConstraint.Color: Color3 = Color3.new(1, 0.686, 0)The color of the constraint visualization.
Enabled
BallSocketConstraint.Enabled: boolean = trueWhether the physics solver processes this constraint.
LimitsEnabled
BallSocketConstraint.LimitsEnabled: boolean = falseWhether the constraint enforces its positional or angular limits.
Radius
BallSocketConstraint.Radius: number = 0.15The radius of the constraint visualization.
Restitution
BallSocketConstraint.Restitution: number = 0The restitution applied when a constraint limit is reached.
TwistLimitsEnabled
BallSocketConstraint.TwistLimitsEnabled: boolean = falseWhether the ball socket restricts twist around its primary axis.
TwistLowerAngle
BallSocketConstraint.TwistLowerAngle: number = -45The minimum permitted twist angle, in degrees.
TwistUpperAngle
BallSocketConstraint.TwistUpperAngle: number = 45The maximum permitted twist angle, in degrees.
UpperAngle
BallSocketConstraint.UpperAngle: number = 45The maximum permitted angular deviation from the socket axis, in degrees.
Visible
BallSocketConstraint.Visible: boolean = falseWhether the constraint visualization is displayed.
Methods
GetExecutionGroup
BallSocketConstraint: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