Class used for tracking an X and Y speed of an object. Speed also has an XMax and YMax that can be used to clamp the X and Y values automatically.
More...
|
| Speed (float x, float y, float maxX, float maxY, bool hardClamp) |
| Create a new Speed object. More...
|
|
| Speed (float x, float y, float maxX, float maxY) |
| Create a new Speed object. More...
|
|
| Speed (float maxX, float maxY) |
| Create a new Speed object. More...
|
|
| Speed (float maxX, float maxY, bool hardClamp) |
| Create a new Speed object. More...
|
|
| Speed (float max, bool hardClamp) |
| Create a new Speed object. More...
|
|
| Speed (float max) |
| Create a new Speed object. More...
|
|
override string | ToString () |
| Returns a String that represents this instance. More...
|
|
|
float | MaxX |
| The maximum X speed. More...
|
|
float | MaxY |
| The maximum Y speed. More...
|
|
bool | HardClamp |
| Determines if the maximum values will be hard clamped. If true, values will never exceed the maximums. More...
|
|
|
float | X [get, set] |
| The current X value of the speed. More...
|
|
float | Y [get, set] |
| The current Y value of the speed. More...
|
|
float | Max [set] |
| Shortcut to set both MaxX and MaxY. More...
|
|
float | Length [get] |
| The length of the speed object. More...
|
|
Class used for tracking an X and Y speed of an object. Speed also has an XMax and YMax that can be used to clamp the X and Y values automatically.
Otter.Speed.Speed |
( |
float |
x, |
|
|
float |
y, |
|
|
float |
maxX, |
|
|
float |
maxY, |
|
|
bool |
hardClamp |
|
) |
| |
Create a new Speed object.
- Parameters
-
x | The initial X value. |
y | The initial Y value. |
maxX | The maximum X value. |
maxY | The maximum Y value. |
hardClamp | Determines if the value can exceed the maximum. |
Otter.Speed.Speed |
( |
float |
x, |
|
|
float |
y, |
|
|
float |
maxX, |
|
|
float |
maxY |
|
) |
| |
Create a new Speed object.
- Parameters
-
x | The initial X value. |
y | The initial Y value. |
maxX | The maximum X value. |
maxY | The maximum Y value. |
Otter.Speed.Speed |
( |
float |
maxX, |
|
|
float |
maxY |
|
) |
| |
Create a new Speed object.
- Parameters
-
maxX | The maximum X value. |
maxY | The maximum Y value. |
Otter.Speed.Speed |
( |
float |
maxX, |
|
|
float |
maxY, |
|
|
bool |
hardClamp |
|
) |
| |
Create a new Speed object.
- Parameters
-
maxX | The maximum X value. |
maxY | The maximum Y value. |
hardClamp | Determines if the value can exceed the maximum. |
Otter.Speed.Speed |
( |
float |
max, |
|
|
bool |
hardClamp |
|
) |
| |
Create a new Speed object.
- Parameters
-
max | The maximum X and Y values. |
hardClamp | Determines if the value can exceed the maximum. |
Otter.Speed.Speed |
( |
float |
max | ) |
|
Create a new Speed object.
- Parameters
-
max | The maximum X and Y values. |
override string Otter.Speed.ToString |
( |
| ) |
|
Returns a String that represents this instance.
- Returns
- A String that represents this instance.
bool Otter.Speed.HardClamp |
Determines if the maximum values will be hard clamped. If true, values will never exceed the maximums.
The length of the speed object.
Shortcut to set both MaxX and MaxY.
The current X value of the speed.
The current Y value of the speed.
The documentation for this class was generated from the following file: