◆ SetSpring() [1/2]
| proto external void SetSpring |
( |
int |
axis, |
|
|
float |
stiffness, |
|
|
float |
damping |
|
) |
| |
|
private |
Sets spring parameters on a particular axis. When stiffness == -1 && damping == -1, spring is disabled.
- Parameters
-
| axis | Axis to be modified |
| stiffness | Value of the spring stiffness (Hooke's Law) |
| damping | Value of the spring damping. Between 0 and 1 (1 == no damping) |
◆ SetSpring() [2/2]
| proto external void SetSpring |
( |
int |
axis, |
|
|
float |
stiffness, |
|
|
float |
damping |
|
) |
| |
|
private |
Sets spring parameters on a particular axis. When stiffness == -1 && damping == -1, spring is disabled.
- Parameters
-
| axis | Axis to be modified |
| stiffness | Value of the spring stiffness (Hooke's Law) |
| damping | Value of the spring damping. Between 0 and 1 (1 == no damping) |
The documentation for this class was generated from the following file: