TorsionSpringConstraint
Applies angular spring and damping torque between two attachments.
- Creatable
Instance.new("TorsionSpringConstraint")- Inherits
- ConstraintInstance
- Replication
- Standard
Behavior
TorsionSpringConstraint applies angular spring and damping torque 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 number of coils used to visualize the spring.
The color of the constraint visualization.
The current relative rotation angle of the attachments, in degrees.
The spring's damping coefficient.
Whether the physics solver processes this constraint.
The maximum angular acceleration permitted by the torsion spring.
The maximum torque the actuator can apply.
The radius of the constraint visualization.
The restitution applied when a constraint limit is reached.
The spring's restoring-force coefficient.
Whether the constraint visualization is displayed.
Returns this instance if it is an ExecutionGroup.
Properties
Active
TorsionSpringConstraint.Active: boolean = falseWhether the constraint is currently active in the physics simulation.
Attachment0
TorsionSpringConstraint.Attachment0: Attachment? = nilThe first attachment used by the constraint or effect.
Attachment1
TorsionSpringConstraint.Attachment1: Attachment? = nilThe second attachment used by the constraint or effect.
Coils
TorsionSpringConstraint.Coils: number = 4The number of coils used to visualize the spring.
Color
TorsionSpringConstraint.Color: Color3 = Color3.new(1, 0.686, 0)The color of the constraint visualization.
CurrentAngle
TorsionSpringConstraint.CurrentAngle: number = 0The current relative rotation angle of the attachments, in degrees.
Damping
TorsionSpringConstraint.Damping: number = 50The spring's damping coefficient.
Enabled
TorsionSpringConstraint.Enabled: boolean = trueWhether the physics solver processes this constraint.
MaxAngularAcceleration
TorsionSpringConstraint.MaxAngularAcceleration: number = infThe maximum angular acceleration permitted by the torsion spring.
MaxTorque
TorsionSpringConstraint.MaxTorque: number = infThe maximum torque the actuator can apply.
Radius
TorsionSpringConstraint.Radius: number = 0.2The radius of the constraint visualization.
Restitution
TorsionSpringConstraint.Restitution: number = 0The restitution applied when a constraint limit is reached.
Stiffness
TorsionSpringConstraint.Stiffness: number = 200The spring's restoring-force coefficient.
Visible
TorsionSpringConstraint.Visible: boolean = falseWhether the constraint visualization is displayed.
Methods
GetExecutionGroup
TorsionSpringConstraint: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