T - Type of vector, either 2D or 3D, implementing the Vector interfacepublic static class Jump.JumpDescriptor<T extends com.badlogic.gdx.math.Vector<T>>
extends java.lang.Object
JumpDescriptor contains jump information like the take-off and the landing position.| Modifier and Type | Field and Description |
|---|---|
T |
delta
The change in position from takeoff to landing.
|
T |
landingPosition
The position of the landing pad
|
T |
takeoffPosition
The position of the takeoff pad
|
| Constructor and Description |
|---|
JumpDescriptor(T takeoffPosition,
T landingPosition)
Creates a
JumpDescriptor with the given takeoff and landing positions. |
| Modifier and Type | Method and Description |
|---|---|
void |
set(T takeoffPosition,
T landingPosition)
Sets this
JumpDescriptor from the given takeoff and landing positions. |