C# Class UnityPlatformer.CharacterActionSlipping

Force character to slip down slope, when slopeAngle > maxClimbAngle NOTE do not apply gravity. Handle the velocity manually so the character is always colliding below
Inheritance: CharacterAction
Mostrar archivo Open project: llafuente/unity-platformer

Public Properties

Property Type Description
minSpeed float

Public Methods

Method Description
GainControl ( float delta ) : void

Reset SmoothDamp

GetPostUpdateActions ( ) : PostUpdateActions

default actions

LoseControl ( float delta ) : void

Exit state

PerformAction ( float delta ) : void

Slipping down slope!

WantsToUpdate ( float delta ) : int

Not in a liquid. OnGround and slopeAngle > maxClimbAngle

Method Details

GainControl() public method

Reset SmoothDamp
public GainControl ( float delta ) : void
delta float
return void

GetPostUpdateActions() public method

default actions
public GetPostUpdateActions ( ) : PostUpdateActions
return PostUpdateActions

LoseControl() public method

Exit state
public LoseControl ( float delta ) : void
delta float
return void

PerformAction() public method

Slipping down slope!
public PerformAction ( float delta ) : void
delta float
return void

WantsToUpdate() public method

Not in a liquid. OnGround and slopeAngle > maxClimbAngle
public WantsToUpdate ( float delta ) : int
delta float
return int

Property Details

minSpeed public_oe property

Minimum speed
public float minSpeed
return float