Godot Nature of Code
1.2.0
Nature of Code implemented in Godot Engine
|
Simple wave. More...
Inherits Node2D.
Public Member Functions | |
SimpleWave () | |
Create a default wave. More... | |
Public Attributes | |
float | Radius = 30 |
Component radius More... | |
int | Separation = 24 |
Component separation More... | |
float | AngularVelocity = 0.1f |
Wave angular velocity More... | |
float | StartAngle |
Wave start angle More... | |
float | StartAngleFactor = 1 |
Wave start angle update factor More... | |
float | Length = 300 |
Wave length More... | |
float | Amplitude = 100 |
Wave amplitude More... | |
Protected Member Functions | |
virtual float | ComputeY (float angle) |
Compute Y coordinate from angle. More... | |
Simple wave.
Definition at line 10 of file SimpleWave.cs.
|
inline |
Create a default wave.
Definition at line 47 of file SimpleWave.cs.
|
inlineprotectedvirtual |
Compute Y coordinate from angle.
angle | Angle in radians |
Definition at line 57 of file SimpleWave.cs.
float Oscillation.SimpleWave.Amplitude = 100 |
Wave amplitude
Definition at line 40 of file SimpleWave.cs.
float Oscillation.SimpleWave.AngularVelocity = 0.1f |
Wave angular velocity
Definition at line 28 of file SimpleWave.cs.
float Oscillation.SimpleWave.Length = 300 |
Wave length
Definition at line 37 of file SimpleWave.cs.
float Oscillation.SimpleWave.Radius = 30 |
Component radius
Definition at line 22 of file SimpleWave.cs.
int Oscillation.SimpleWave.Separation = 24 |
Component separation
Definition at line 25 of file SimpleWave.cs.
float Oscillation.SimpleWave.StartAngle |
Wave start angle
Definition at line 31 of file SimpleWave.cs.
float Oscillation.SimpleWave.StartAngleFactor = 1 |
Wave start angle update factor
Definition at line 34 of file SimpleWave.cs.