SpringConstraint

Show Deprecated

A SpringConstraint applies a force to its Attachments based on spring and damper behavior. This constraint, along with a CylindricalConstraint, is ideal for building vehicle suspension.

Note that if this constraint attaches one part (A) to another part (B) that is anchored or connected to an anchored part (Z), part A will not be locally simulated when interacting with a player.

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

Free Length

FreeLength defines the natural resting length of the spring. If the attachments are further apart than the free length, they are forced together; if the attachments are closer together than the free length, they are forced apart.

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 strength of the spring. Higher values create a spring that responds with more force when its attachments are closer together or further apart than FreeLength.

Limits

Enabling the LimitsEnabled property exposes the MinLength and MaxLength values for setting the minimum and maximum length of the spring. If the spring's attachments reach these limits, they stop moving apart from one another without restitution.

Summary

Properties

Properties inherited from Constraint

Properties

Properties

Coils

Read Parallel

CurrentLength

Read Only
Not Replicated
Read Parallel

Damping

Read Parallel

FreeLength

Read Parallel

LimitsEnabled

Read Parallel

MaxForce

Read Parallel

MaxLength

Read Parallel

MinLength

Read Parallel

Radius

Read Parallel

Stiffness

Read Parallel

Thickness

Read Parallel

Methods

Events