Godot Nature of Code
1.2.0
Nature of Code implemented in Godot Engine
|
Attraction behavior. More...
Public Member Functions | |
AttractionBehavior (VerletPoint attractor, float strength, float radius, float jitter=0) | |
Create an attraction behavior. More... | |
void | ApplyBehavior (VerletPoint point, float delta) |
Apply behavior to a verlet point. More... | |
Public Attributes | |
VerletPoint | Attractor |
Attraction point More... | |
float | Jitter |
Jitter value (random coefficient) More... | |
float | Strength |
Attraction strength More... | |
Properties | |
float | Radius [get, set] |
Attraction radius More... | |
Attraction behavior.
Definition at line 6 of file AttractionBehavior.cs.
|
inline |
Create an attraction behavior.
attractor | Attraction point |
strength | Attraction strength |
radius | Attraction radius |
jitter | Random coefficient |
Definition at line 38 of file AttractionBehavior.cs.
|
inline |
Apply behavior to a verlet point.
point | Verlet point |
delta | Delta time |
Implements VerletPhysics.IBehavior.
Definition at line 46 of file AttractionBehavior.cs.
VerletPoint VerletPhysics.AttractionBehavior.Attractor |
Attraction point
Definition at line 9 of file AttractionBehavior.cs.
float VerletPhysics.AttractionBehavior.Jitter |
Jitter value (random coefficient)
Definition at line 12 of file AttractionBehavior.cs.
float VerletPhysics.AttractionBehavior.Strength |
Attraction strength
Definition at line 15 of file AttractionBehavior.cs.
|
getset |
Attraction radius
Definition at line 18 of file AttractionBehavior.cs.