TorsionSpringConstraint

Show Deprecated

A TorsionSpringConstraint applies a torque based on a relative angle and a relative angular velocity. Specifically, torsion springs try to bring two axes from two parts together in a compliant way.

Correct orientation of a torsion spring's attachments is important. The constraint will attempt to bring the SecondaryAxis of each attachment into alignment. When building mechanisms like swinging doors, ensure that the secondary axes are perpendicular to the intended axis of rotation.

When configuring this constraint, it may be helpful to study Roblox Units to understand how Roblox units compare to metric units.

Damping

The Damping value controls how fast the spring's oscillation dies down. A value of 0 allows the spring to oscillate endlessly, while higher values bring the spring to a rest more quickly.

Stiffness

Stiffness sets the torsional strength of the spring. Higher values create a spring that responds with more force.

Limits

Enabling the LimitsEnabled property exposes the MaxAngle value to restrict the spring's range within a cone; it also exposes the Restitution value which defines the elasticity of the attachments when they reach their limit.

Summary

Properties

Properties inherited from Constraint

Properties

Properties

Coils

Read Parallel

CurrentAngle

Read Only
Not Replicated
Read Parallel

Damping

Read Parallel

LimitEnabled

Hidden
Deprecated
Read Parallel

LimitsEnabled

Read Parallel

MaxAngle

Read Parallel

MaxTorque

Read Parallel

Radius

Read Parallel

Restitution

Read Parallel

Stiffness

Read Parallel

Methods

Events