platformer
|
Force character to slip down slope, when slopeAngle > maxClimbAngle More...
Public Member Functions | |
override int | WantsToUpdate (float delta) |
Not in a liquid. OnGround and slopeAngle > maxClimbAngle More... | |
override void | GainControl (float delta) |
Reset SmoothDamp More... | |
override void | LoseControl (float delta) |
Exit state More... | |
override void | PerformAction (float delta) |
Slipping down slope! More... | |
override PostUpdateActions | GetPostUpdateActions () |
default actions More... | |
![]() | |
void | Reset () |
Try to set character & input from parent nodes More... | |
virtual void | OnEnable () |
keep Character.actions in sync More... | |
virtual void | OnDisable () |
keep Character.actions in sync More... | |
Public Attributes | |
float | minSpeed = 4 |
Minimum speed More... | |
float | maxSpeed = 12 |
Maximum speed More... | |
float | accelerationTime = .20f |
Time to reach maxSpeed More... | |
int | priority = 3 |
Action priority More... | |
![]() | |
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... | |
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
|
inlinevirtual |
Reset SmoothDamp
Reimplemented from UnityPlatformer.CharacterAction.
|
inlinevirtual |
default actions
Implements UnityPlatformer.CharacterAction.
|
inlinevirtual |
Exit state
Reimplemented from UnityPlatformer.CharacterAction.
|
inlinevirtual |
Slipping down slope!
Implements UnityPlatformer.CharacterAction.
|
inlinevirtual |
Not in a liquid. OnGround and slopeAngle > maxClimbAngle
Implements UnityPlatformer.CharacterAction.
float UnityPlatformer.CharacterActionSlipping.accelerationTime = .20f |
Time to reach maxSpeed
float UnityPlatformer.CharacterActionSlipping.maxSpeed = 12 |
Maximum speed
float UnityPlatformer.CharacterActionSlipping.minSpeed = 4 |
Minimum speed
int UnityPlatformer.CharacterActionSlipping.priority = 3 |
Action priority