Push objects (Box)
More...
◆ GainControl()
override void UnityPlatformer.CharacterActionPush.GainControl |
( |
float |
delta | ) |
|
|
inlinevirtual |
◆ GetPostUpdateActions()
override PostUpdateActions UnityPlatformer.CharacterActionPush.GetPostUpdateActions |
( |
| ) |
|
|
inlinevirtual |
◆ LoseControl()
override void UnityPlatformer.CharacterActionPush.LoseControl |
( |
float |
delta | ) |
|
|
inlinevirtual |
◆ OnBeforeMove()
void UnityPlatformer.CharacterActionPush.OnBeforeMove |
( |
Character |
ch, |
|
|
float |
delta |
|
) |
| |
|
inline |
Move the Box before moving the character so there is a gap between them
◆ OnEnable()
override void UnityPlatformer.CharacterActionPush.OnEnable |
( |
| ) |
|
|
inlinevirtual |
◆ PerformAction()
override void UnityPlatformer.CharacterActionPush.PerformAction |
( |
float |
delta | ) |
|
|
inlinevirtual |
◆ PushBox()
void UnityPlatformer.CharacterActionPush.PushBox |
( |
Vector3 |
velocity, |
|
|
Directions |
dir, |
|
|
float |
delta |
|
) |
| |
|
inline |
◆ WantsToUpdate()
override int UnityPlatformer.CharacterActionPush.WantsToUpdate |
( |
float |
delta | ) |
|
|
inlinevirtual |
◆ accelerationTime
float UnityPlatformer.CharacterActionPush.accelerationTime = .1f |
◆ forbidVerticalMovement
bool UnityPlatformer.CharacterActionPush.forbidVerticalMovement = true |
Limit Push to X
if false, you will see problems while on slopes, but maybe it's desired...
◆ priority
int UnityPlatformer.CharacterActionPush.priority = 20 |
◆ pushingStartTime
float UnityPlatformer.CharacterActionPush.pushingStartTime = 0.5f |
Time to pushing before start moving the object
◆ speed
float UnityPlatformer.CharacterActionPush.speed = 3 |
The documentation for this class was generated from the following file:
- Assets/UnityPlatformer/Scripts/Characters/Actions/CharacterActionPush.cs