C# Class UnityPlatformer.CharacterActionLiquidMovement

Movement while below water surface (buoyancy) TODO slopeAccelerationFactor/slopeDeccelerationFactor
Inheritance: CharacterAction
ファイルを表示 Open project: llafuente/unity-platformer

Public Properties

Property Type Description
liquidMinHeight float
terminalYDown float
terminalYUP float

Public Methods

Method Description
GetPostUpdateActions ( ) : PostUpdateActions
OnEnable ( ) : void
OnEnterState ( States before, States after ) : void
PerformAction ( float delta ) : void
WantsToUpdate ( float delta ) : int

Execute when collision below.

Method Details

GetPostUpdateActions() public method

public GetPostUpdateActions ( ) : PostUpdateActions
return PostUpdateActions

OnEnable() public method

public OnEnable ( ) : void
return void

OnEnterState() public method

public OnEnterState ( States before, States after ) : void
before States
after States
return void

PerformAction() public method

public PerformAction ( float delta ) : void
delta float
return void

WantsToUpdate() public method

Execute when collision below.
public WantsToUpdate ( float delta ) : int
delta float
return int

Property Details

liquidMinHeight public_oe property

Ignore liquids under liquidMinHeight
public float liquidMinHeight
return float

terminalYDown public_oe property

Terminal velocity going down
public float terminalYDown
return float

terminalYUP public_oe property

Terminal velocity going up
public float terminalYUP
return float