|
Godot Nature of Code
1.2.0
Nature of Code implemented in Godot Engine
|
Simple spring. Spring anchor is the node position. Manage children as targets. More...
Inherits Node2D.
Public Member Functions | |
| SimpleSpring () | |
| Create a default spring. More... | |
| void | SetMover (SimpleMover mover, Vector2 initialPosition) |
| Set mover at initial position. More... | |
Public Attributes | |
| float | Length = 100 |
| Spring length More... | |
| float | K = 0.2f |
| K coefficient More... | |
| float | MinLength = 50 |
| Minimal length More... | |
| float | MaxLength = 150 |
| Maximal length More... | |
Simple spring. Spring anchor is the node position. Manage children as targets.
Definition at line 12 of file SimpleSpring.cs.
|
inline |
Create a default spring.
Definition at line 34 of file SimpleSpring.cs.
|
inline |
Set mover at initial position.
| mover | Mover |
| initialPosition | Initial position |
Definition at line 44 of file SimpleSpring.cs.
| float Oscillation.SimpleSpring.K = 0.2f |
K coefficient
Definition at line 18 of file SimpleSpring.cs.
| float Oscillation.SimpleSpring.Length = 100 |
Spring length
Definition at line 15 of file SimpleSpring.cs.
| float Oscillation.SimpleSpring.MaxLength = 150 |
Maximal length
Definition at line 24 of file SimpleSpring.cs.
| float Oscillation.SimpleSpring.MinLength = 50 |
Minimal length
Definition at line 21 of file SimpleSpring.cs.