Game (functions)/Direction
From PMDOWiki
VectorToDirection
Returns either an integer or a vector as an 8-directional direction.
Context 1
Takes in an integer.
| Name | Type | Technical Type | Purpose |
|---|---|---|---|
| num | Integer | System.Int32
|
The integer to convert to a direction. |
Context 2
Takes in two doubles and finds the closest direction to that vector.
| Name | Type | Technical Type | Purpose |
|---|---|---|---|
| x | Double | (undocumented)
|
The X value of the vector |
| y | Double | (undocumented)
|
The Y value of the vector |
RandomDirection
Generates a random direction. Returns an 8-directional direction.
