DoopelPonger
Public Member Functions | Public Attributes | List of all members
CoopSchmittyDoopSmallMovementController Class Reference

Handles any movement of Schmitty Doop that does not involve action patterns. More...

Inheritance diagram for CoopSchmittyDoopSmallMovementController:
Inheritance graph
[legend]
Collaboration diagram for CoopSchmittyDoopSmallMovementController:
Collaboration graph
[legend]

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
 

Detailed Description

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.

Member Function Documentation

◆ ApplyHitDirection()

void CoopSchmittyDoopSmallMovementController.ApplyHitDirection ( float  displacementPercent,
Vector2  pushDirection 
)

Make Schmitty Doop move as its been hit by a ball fired by the player.

Parameters
displacementPercentThe amount of maxHitDisplacement that should be moved.
pushDirectionThe direction to move Schmittyo Doop.

◆ Awake()

void CoopSchmittyDoopSmallMovementController.Awake ( )

Initialize references and variables needed by the class.

◆ FixedUpdate()

void CoopSchmittyDoopSmallMovementController.FixedUpdate ( )

Move Schmitty Doop if necessary.

Member Data Documentation

◆ jitterMovementRate

float CoopSchmittyDoopSmallMovementController.jitterMovementRate

How long it takes to move across the jitter range.

◆ jitterRange

float CoopSchmittyDoopSmallMovementController.jitterRange

The offset on the y axis that Schmitty Doop moves while being idle.

◆ maxHitDisplacement

float CoopSchmittyDoopSmallMovementController.maxHitDisplacement

The max positional displacement of Schmitty Doop when hit.

◆ moveToDisplacementSpeed

float CoopSchmittyDoopSmallMovementController.moveToDisplacementSpeed

How fast Schmitty Doop moves to the position of displacement.

◆ moveToOriginSpeed

float CoopSchmittyDoopSmallMovementController.moveToOriginSpeed

How fast Schmitty Doop will return to the position it should be after getting pushed away.


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