C# Class UnityPlatformer.JumpConstant

Math behind the Jump
Inheritance: Jump
Mostrar archivo Open project: llafuente/unity-platformer Class Usage Examples

Public Properties

Property Type Description
initialVelocity Vector2

Public Methods

Method Description
EndJump ( Vector3 &velocity ) : void
IsBeforeApex ( ) : bool
IsHanging ( ) : bool
JumpConstant ( Character _character, JumpConstantProperties jp ) : System

Constructor

JumpConstant ( Character _character, Vector2 _initialVelocity ) : 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

IsBeforeApex() public method

public IsBeforeApex ( ) : bool
return bool

IsHanging() public method

public IsHanging ( ) : bool
return bool

JumpConstant() public method

Constructor
public JumpConstant ( Character _character, JumpConstantProperties jp ) : System
_character Character
jp JumpConstantProperties
return System

JumpConstant() public method

Constructor
public JumpConstant ( Character _character, Vector2 _initialVelocity ) : System
_character Character
_initialVelocity Vector2
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

initialVelocity public_oe property

Initial velocity
public Vector2 initialVelocity
return Vector2