DoopelPonger
|
Handles any movement of Schmitty Doop that does not involve action patterns. More...
Public Member Functions | |
void | Awake () |
Initialize references and variables needed by the class. More... | |
void | FixedUpdate () |
Move Schmitty Doop if necessary. More... | |
void | ApplyHitDirection (float displacementPercent, Vector2 pushDirection) |
Make Schmitty Doop move as its been hit by a ball fired by the player. More... | |
Public Attributes | |
float | jitterRange |
float | jitterMovementRate |
float | maxHitDisplacement |
float | moveToDisplacementSpeed |
float | moveToOriginSpeed |
Handles any movement of Schmitty Doop that does not involve action patterns.
There are two situations where Schmitty Doop moves independently of attack patterns: when in idles and when it gets hit by a player fired bullet. When Schmitty Doop is in the idle state it will move up and down. When Schmitty Doop gets hit by a player's bullet, it gets pushed in the direction the bullet was moving.
void CoopSchmittyDoopSmallMovementController.ApplyHitDirection | ( | float | displacementPercent, |
Vector2 | pushDirection | ||
) |
Make Schmitty Doop move as its been hit by a ball fired by the player.
displacementPercent | The amount of maxHitDisplacement that should be moved. |
pushDirection | The direction to move Schmittyo Doop. |
void CoopSchmittyDoopSmallMovementController.Awake | ( | ) |
Initialize references and variables needed by the class.
void CoopSchmittyDoopSmallMovementController.FixedUpdate | ( | ) |
Move Schmitty Doop if necessary.
float CoopSchmittyDoopSmallMovementController.jitterMovementRate |
How long it takes to move across the jitter range.
float CoopSchmittyDoopSmallMovementController.jitterRange |
The offset on the y axis that Schmitty Doop moves while being idle.
float CoopSchmittyDoopSmallMovementController.maxHitDisplacement |
The max positional displacement of Schmitty Doop when hit.
float CoopSchmittyDoopSmallMovementController.moveToDisplacementSpeed |
How fast Schmitty Doop moves to the position of displacement.
float CoopSchmittyDoopSmallMovementController.moveToOriginSpeed |
How fast Schmitty Doop will return to the position it should be after getting pushed away.