C# Class UnityPlatformer.JumpConstantSpring

Math behind the Jump
Inheritance: Jump
Afficher le fichier Open project: llafuente/unity-platformer

Méthodes publiques

Свойство Type Description
initialVelocity float
minPenetrationSpeed float
penetration float

Méthodes publiques

Méthode 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 méthode

public EndJump ( Vector3 &velocity ) : void
velocity Vector3
Résultat void

IsBeforeApex() public méthode

public IsBeforeApex ( ) : bool
Résultat bool

IsHanging() public méthode

public IsHanging ( ) : bool
Résultat bool

JumpConstantSpring() public méthode

Constructor
public JumpConstantSpring ( Character _character, JumpConstantSpringProperties jp ) : System
_character Character
jp JumpConstantSpringProperties
Résultat System

JumpConstantSpring() public méthode

Constructor
public JumpConstantSpring ( Character _character, float _initialVelocity, float _penetration, float _minPenetrationSpeed ) : System
_character Character
_initialVelocity float
_penetration float
_minPenetrationSpeed float
Résultat System

Jumping() public méthode

public Jumping ( Vector3 &velocity, float delta ) : bool
velocity Vector3
delta float
Résultat bool

StartJump() public méthode

public StartJump ( Vector3 &velocity ) : void
velocity Vector3
Résultat void

Property Details

initialVelocity public_oe property

Initial velocity
public float initialVelocity
Résultat float

minPenetrationSpeed public_oe property

Penetrate if speed is greater than
public float minPenetrationSpeed
Résultat float

penetration public_oe property

Penetration in units
public float penetration
Résultat float