SpringConstraint
A constraint that simulates a spring between two attachments.
Properties
| Property | Type | Default |
|---|---|---|
Attachment0 | any | nil |
Attachment1 | any | nil |
Enabled | boolean | true |
Visible | boolean | true |
Color | any | Color3.fromRGB(255, 128, 0) |
Damping | number | 0.5 |
Stiffness | number | 10 |
Frequency | number | 2 |
SpringMode | number | 0 |
LimitsEnabled | boolean | false |
MinLength | number | 0 |
MaxLength | number | 10 |
Coils | number | 4 |
SegmentsPerCoil | number | 24 |
Radius | number | 0.25 |
Thickness | number | 1 |
Functions
`cleanup`
`rebuild`
`instance:UpdateSpringSettings`
`instance:UpdateLimits`
Updates spring limits.
`drawGizmo`
cleanup
Arguments
This function takes no arguments.
Returns
This function returns nothing.
rebuild
Arguments
This function takes no arguments.
Returns
This function returns nothing.
instance:UpdateSpringSettings
Arguments
This function takes no arguments.
Returns
This function returns nothing.
instance:UpdateLimits
Updates spring limits.
Arguments
This function takes no arguments.
Returns
This function returns nothing.
drawGizmo
Arguments
This function takes no arguments.
Returns
This function returns nothing.
API
instance:cleanup()
instance:rebuild()
instance:UpdateSpringSettings()
instance:UpdateLimits()
instance:drawGizmo()