C# Class UnityPlatformer.JumpVariableHeight

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

Méthodes publiques

Свойство Type Description
apexFrames int
hangFrames int
maxJumpVelocity float
minJumpVelocity float

Méthodes publiques

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

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

Init() public méthode

Constructor
public Init ( float timeToJumpApex, float minJumpHeight, float maxJumpHeight, float hangTime ) : void
timeToJumpApex float
minJumpHeight float
maxJumpHeight float
hangTime float
Résultat void

IsBeforeApex() public méthode

public IsBeforeApex ( ) : bool
Résultat bool

IsHanging() public méthode

public IsHanging ( ) : bool
Résultat bool

JumpVariableHeight() public méthode

Constructor
public JumpVariableHeight ( Character _character, JumpVariableHeightProperties jp ) : System
_character Character
jp JumpVariableHeightProperties
Résultat System

JumpVariableHeight() public méthode

Constructor
public JumpVariableHeight ( Character _character, float timeToJumpApex, float minJumpHeight, float maxJumpHeight, float hangTime ) : System
_character Character
timeToJumpApex float
minJumpHeight float
maxJumpHeight float
hangTime 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

apexFrames public_oe property

Frame count until apex
public int apexFrames
Résultat int

hangFrames public_oe property

Frame count hanging
public int hangFrames
Résultat int

maxJumpVelocity public_oe property

Max jump velocity
public float maxJumpVelocity
Résultat float

minJumpVelocity public_oe property

Min jump velocity
public float minJumpVelocity
Résultat float