Function
Fast
Cable:SetCableSettings
Set the overall settings for this cable (visuals only)
Syntax
my_cable:SetCableSettings(length, num_segments = 10, solver_iterations = 1, enable_stiffness = true)
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
length
|
float | — | Rest length of the cable. Default is 100. Min is 0 |
num_segments
optional
|
integer | 10 |
How many segments the cable has. Default is 10. Min is 1 |
solver_iterations
optional
|
integer | 1 |
The number of solver iterations controls how 'stiff' the cable is. Default is 1. Max is 16 |
enable_stiffness
optional
|
boolean | true |
Add stiffness constraints to cable. Default is true |