Simple random walker.
More...
Inherits Node2D.
Simple random walker.
Definition at line 8 of file SimpleWalker.cs.
◆ SimpleWalker()
Drawing.SimpleWalker.SimpleWalker |
( |
| ) |
|
|
inline |
Create a default walker.
Definition at line 34 of file SimpleWalker.cs.
45 noise =
new OpenSimplexNoise();
OpenSimplexNoise noise
Noise
RandomNumberGenerator generator
Random number generator
◆ GetStepRect()
Rect2 Drawing.SimpleWalker.GetStepRect |
( |
| ) |
|
|
inline |
◆ SetXY() [1/2]
void Drawing.SimpleWalker.SetXY |
( |
float |
tx, |
|
|
float |
ty |
|
) |
| |
|
inline |
Update X and Y position from x and y cooordinates.
- Parameters
-
tx | New X position |
ty | New Y position |
Definition at line 65 of file SimpleWalker.cs.
◆ SetXY() [2/2]
void Drawing.SimpleWalker.SetXY |
( |
Vector2 |
position | ) |
|
|
inline |
Update X and Y position from vector.
- Parameters
-
Definition at line 54 of file SimpleWalker.cs.
◆ Step()
virtual void Drawing.SimpleWalker.Step |
( |
| ) |
|
|
inlineprotectedvirtual |
◆ generator
RandomNumberGenerator Drawing.SimpleWalker.generator |
|
protected |
◆ noise
OpenSimplexNoise Drawing.SimpleWalker.noise |
|
protected |
◆ StepSize
float Drawing.SimpleWalker.StepSize |
◆ tx
float Drawing.SimpleWalker.tx |
|
protected |
◆ ty
float Drawing.SimpleWalker.ty |
|
protected |
float Drawing.SimpleWalker.x |
float Drawing.SimpleWalker.y |
The documentation for this class was generated from the following file: