C# Class UnityPlatformer.JumpConstantSpring

Math behind the Jump
Inheritance: Jump
Show file Open project: llafuente/unity-platformer

Public Properties

Property Type Description
initialVelocity float
minPenetrationSpeed float
penetration float

Public Methods

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

Constructor

JumpConstantSpring ( Character _character, float _initialVelocity, float _penetration, float _minPenetrationSpeed ) : 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

JumpConstantSpring() public method

Constructor
public JumpConstantSpring ( Character _character, JumpConstantSpringProperties jp ) : System
_character Character
jp JumpConstantSpringProperties
return System

JumpConstantSpring() public method

Constructor
public JumpConstantSpring ( Character _character, float _initialVelocity, float _penetration, float _minPenetrationSpeed ) : System
_character Character
_initialVelocity float
_penetration float
_minPenetrationSpeed 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

initialVelocity public property

Initial velocity
public float initialVelocity
return float

minPenetrationSpeed public property

Penetrate if speed is greater than
public float minPenetrationSpeed
return float

penetration public property

Penetration in units
public float penetration
return float