platformer
Public Member Functions | List of all members
UnityPlatformer.CharacterActionGroundMovement Class Reference

Movement while on ground and not slipping More...

Inheritance diagram for UnityPlatformer.CharacterActionGroundMovement:
UnityPlatformer.CharacterActionHorizontalMovement UnityPlatformer.CharacterAction

Public Member Functions

override int WantsToUpdate (float delta)
 Execute when collision below. More...
 
- Public Member Functions inherited from UnityPlatformer.CharacterActionHorizontalMovement
override void OnEnable ()
 keep Character.actions in sync More...
 
void OnActionDown (string _action)
 input.onActionDown More...
 
void OnActionUp (string _action)
 input.onActionUp More...
 
void Clear ()
 Reset SmoothDamp More...
 
override void PerformAction (float delta)
 Do horizontal movement More...
 
void Move (float spdy, ref float smoothing, float accTime)
 Horizontal movement based on current input More...
 
override PostUpdateActions GetPostUpdateActions ()
 Return what to do next. More...
 
- Public Member Functions inherited from UnityPlatformer.CharacterAction
void Reset ()
 Try to set character & input from parent nodes More...
 
virtual void OnDisable ()
 keep Character.actions in sync More...
 
virtual void GainControl (float delta)
 Called (once) when this action is going to be 'PerformAction' for first time More...
 
virtual void LoseControl (float delta)
 Called (once) when other action 'WantsToUpdate' or this action don't anymore More...
 

Additional Inherited Members

- Public Attributes inherited from UnityPlatformer.CharacterActionHorizontalMovement
float speed = 3
 (Walking) Movement speed More...
 
float accelerationTime = .1f
 (Walking) Time to reach max speed More...
 
float runSpeed = 6
 (Running) Movement speed More...
 
float runAccelerationTime = .1f
 (Running) Time to reach max speed More...
 
bool alwaysRun = true
 Do not walk? More...
 
string runAction = "Run"
 Input action name for start running (not used if alwaysRun=true) More...
 
- Public Attributes inherited from UnityPlatformer.CharacterAction
Character character
 Target character that will be affected by this movement More...
 
PlatformerInput input
 Input to listen More...
 
Action onGrainControl
 Callback when this movement WantsToUpdate and has highest priority. More...
 
Action onLoseControl
 Callback when this movement don't WantsToUpdate or another movement has higher priority More...
 

Detailed Description

Movement while on ground and not slipping

Member Function Documentation

◆ WantsToUpdate()

override int UnityPlatformer.CharacterActionGroundMovement.WantsToUpdate ( float  delta)
inlinevirtual

Execute when collision below.

Implements UnityPlatformer.CharacterAction.


The documentation for this class was generated from the following file: