platformer
|
Variable Jump. Use to create a Min/Max jump depending on how much time the key is pressed More...
Public Member Functions | |
JumpVariableHeight (Character _character, float timeToJumpApex, float minJumpHeight, float maxJumpHeight, float hangTime) | |
Constructor More... | |
JumpVariableHeight (Character _character, JumpVariableHeightProperties jp) | |
Constructor More... | |
void | Init (float timeToJumpApex, float minJumpHeight, float maxJumpHeight, float hangTime) |
Constructor More... | |
override void | StartJump (ref Vector3 velocity) |
Set initial velocity More... | |
override void | EndJump (ref Vector3 velocity) |
Set final velocity More... | |
override bool | IsBeforeApex () |
Did apex reached? More... | |
override bool | IsHanging () |
Did apex reached? More... | |
override bool | Jumping (ref Vector3 velocity, float delta) |
Set velocity while jumping More... | |
![]() | |
virtual void | Reset () |
Reset jump data for next jump More... | |
Public Attributes | |
float | maxJumpVelocity |
Max jump velocity More... | |
float | minJumpVelocity |
Min jump velocity More... | |
int | hangFrames |
Frame count hanging More... | |
int | apexFrames |
Frame count until apex More... | |
![]() | |
Character | character |
Target Character More... | |
int | ticks |
Ticks since jump start More... | |
Variable Jump. Use to create a Min/Max jump depending on how much time the key is pressed
|
inline |
Constructor
|
inline |
Constructor
|
inlinevirtual |
Set final velocity
Implements UnityPlatformer.Jump.
|
inline |
Constructor
|
inlinevirtual |
Did apex reached?
Implements UnityPlatformer.Jump.
|
inlinevirtual |
Did apex reached?
Implements UnityPlatformer.Jump.
|
inlinevirtual |
Set velocity while jumping
Reimplemented from UnityPlatformer.Jump.
|
inlinevirtual |
Set initial velocity
Implements UnityPlatformer.Jump.
int UnityPlatformer.JumpVariableHeight.apexFrames |
Frame count until apex
int UnityPlatformer.JumpVariableHeight.hangFrames |
Frame count hanging
float UnityPlatformer.JumpVariableHeight.maxJumpVelocity |
Max jump velocity
float UnityPlatformer.JumpVariableHeight.minJumpVelocity |
Min jump velocity