C# Class UnityPlatformer.JumpVariableHeight

Variable Jump. Use to create a Min/Max jump depending on how much time the key is pressed
Inheritance: Jump
Exibir arquivo Open project: llafuente/unity-platformer

Public Properties

Property Type Description
apexFrames int
hangFrames int
maxJumpVelocity float
minJumpVelocity float

Public Methods

Method Description
EndJump ( Vector3 &velocity ) : void
Init ( float timeToJumpApex, float minJumpHeight, float maxJumpHeight, float hangTime ) : void

Constructor

IsBeforeApex ( ) : bool
IsHanging ( ) : bool
JumpVariableHeight ( Character _character, JumpVariableHeightProperties jp ) : System

Constructor

JumpVariableHeight ( Character _character, float timeToJumpApex, float minJumpHeight, float maxJumpHeight, float hangTime ) : System

Constructor

Jumping ( Vector3 &velocity, float delta ) : bool
StartJump ( Vector3 &velocity ) : void

Method Details

EndJump() public method

public EndJump ( Vector3 &velocity ) : void
velocity Vector3
return void

Init() public method

Constructor
public Init ( float timeToJumpApex, float minJumpHeight, float maxJumpHeight, float hangTime ) : void
timeToJumpApex float
minJumpHeight float
maxJumpHeight float
hangTime float
return void

IsBeforeApex() public method

public IsBeforeApex ( ) : bool
return bool

IsHanging() public method

public IsHanging ( ) : bool
return bool

JumpVariableHeight() public method

Constructor
public JumpVariableHeight ( Character _character, JumpVariableHeightProperties jp ) : System
_character Character
jp JumpVariableHeightProperties
return System

JumpVariableHeight() public method

Constructor
public JumpVariableHeight ( Character _character, float timeToJumpApex, float minJumpHeight, float maxJumpHeight, float hangTime ) : System
_character Character
timeToJumpApex float
minJumpHeight float
maxJumpHeight float
hangTime float
return System

Jumping() public method

public Jumping ( Vector3 &velocity, float delta ) : bool
velocity Vector3
delta float
return bool

StartJump() public method

public StartJump ( Vector3 &velocity ) : void
velocity Vector3
return void

Property Details

apexFrames public_oe property

Frame count until apex
public int apexFrames
return int

hangFrames public_oe property

Frame count hanging
public int hangFrames
return int

maxJumpVelocity public_oe property

Max jump velocity
public float maxJumpVelocity
return float

minJumpVelocity public_oe property

Min jump velocity
public float minJumpVelocity
return float