Funzione
Veloce
Cable:SetCableSettings
Set the overall settings for this cable (visuals only)
Non ancora tradotto
Sintassi
my_cable:SetCableSettings(length, num_segments = 10, solver_iterations = 1, enable_stiffness = true)
Parametri
| Nome | Tipo | Predefinito | Descrizione |
|---|---|---|---|
length
|
float | — | Rest length of the cable. Default is 100. Min is 0 |
num_segments
facoltativo
|
integer | 10 |
How many segments the cable has. Default is 10. Min is 1 |
solver_iterations
facoltativo
|
integer | 1 |
The number of solver iterations controls how 'stiff' the cable is. Default is 1. Max is 16 |
enable_stiffness
facoltativo
|
boolean | true |
Add stiffness constraints to cable. Default is true |