Summary
Utilities relating to
Animancer.Direction4
and Animancer.Direction8
.- Assembly
- Animancer
.dll - Namespace
- Animancer
- Base Types
-
- Object
graph BT
Type-->Base0["Object"]
Type["Directions"]
class Type type-node
Syntax
public static class Directions
Remarks
Documentation:
Directional Animation Sets
Fields
Name | Constant Value | Summary |
---|---|---|
OneOverSqrt2 | 0.7071068 |
1 / (Square Root of 2).
static
|
Properties
Name | Value | Summary |
---|---|---|
DownLeft | Vector2 |
A vector with a magnitude of 1 pointing down to the left.
static
|
DownRight | Vector2 |
A vector with a magnitude of 1 pointing down to the right.
static
|
UpLeft | Vector2 |
A vector with a magnitude of 1 pointing up to the left.
static
|
UpRight | Vector2 |
A vector with a magnitude of 1 pointing up to the right.
static
|
Methods
Name | Value | Summary |
---|---|---|
GetOppositeDirection |
Direction2 |
Returns the opposite of the given `direction`.
static
|
GetOppositeDirection |
Direction4 |
Returns the opposite of the given `direction`.
static
|
GetOppositeDirection |
Direction8 |
Returns the opposite of the given `direction`.
static
|
ToVector2 |
Vector2 |
Returns a vector representing the specified `direction`.
static
|