Rope climb
More...
◆ GainControl()
override void UnityPlatformer.CharacterActionRope.GainControl |
( |
float |
delta | ) |
|
|
inlinevirtual |
EnterState and start centering and listen rope breakage
TODO set positionOfSection = 0.5f, we should calc the closest...
Reimplemented from UnityPlatformer.CharacterAction.
◆ GetPostUpdateActions()
override PostUpdateActions UnityPlatformer.CharacterActionRope.GetPostUpdateActions |
( |
| ) |
|
|
inlinevirtual |
◆ LoseControl()
override void UnityPlatformer.CharacterActionRope.LoseControl |
( |
float |
delta | ) |
|
|
inlinevirtual |
◆ OnEnable()
override void UnityPlatformer.CharacterActionRope.OnEnable |
( |
| ) |
|
|
inlinevirtual |
◆ PerformAction()
override void UnityPlatformer.CharacterActionRope.PerformAction |
( |
float |
delta | ) |
|
|
inlinevirtual |
◆ WantsToUpdate()
override int UnityPlatformer.CharacterActionRope.WantsToUpdate |
( |
float |
delta | ) |
|
|
inlinevirtual |
Tells the character we want to take control
- Positive numbers fight: Higher number wins
- Negative numbers are used to ignore fight and force Character to call PerformAction, but! because it doesn't win the fight onLoseControl, onGrainControl and GetPostUpdateActions are ignored.
NOTE can be used as a replace for UpdateManager.PlatformerUpdate
Implements UnityPlatformer.CharacterAction.
◆ climbSpeed
float UnityPlatformer.CharacterActionRope.climbSpeed = 6 |
◆ dismountJumping
bool UnityPlatformer.CharacterActionRope.dismountJumping = true |
◆ grabAgainCooldown
float UnityPlatformer.CharacterActionRope.grabAgainCooldown = 0.25f |
Time to wait before grab again a Rope, should be enough to let the player leave the Rope Area
◆ grabbingOffset
Vector3 UnityPlatformer.CharacterActionRope.grabbingOffset = new Vector3(0, 0, 0) |
◆ jumpOff
◆ moveToCenter
bool UnityPlatformer.CharacterActionRope.moveToCenter = false |
Move character to the center of the Rope
◆ priority
int UnityPlatformer.CharacterActionRope.priority = 20 |
◆ towardsSpeed
float UnityPlatformer.CharacterActionRope.towardsSpeed = 32 |
Max speed to snap to the center.
◆ towardsTime
float UnityPlatformer.CharacterActionRope.towardsTime = 0.1f |
Time to reach the center (if towardsSpeed is fast enough).
The documentation for this class was generated from the following file:
- Assets/UnityPlatformer/Scripts/Characters/Actions/CharacterActionRope.cs