|
DoopelPonger
|
Data configuration to move a bullet along a square wave. More...


Public Attributes | |
| float | speed |
| float | wavelengthMultiplier |
| float | virticalMovementCutoff |
Protected Member Functions | |
| override void | ChildInit (CoopBall ball) |
| Initialize values needed by the ball movement object. More... | |
| override Vector2 | GetDirectionAndSpeed (float previousAliveTimer, float currentAliveTimer, Vector2 currentDirection) |
| Get the new velocity given information about a ball's current velocity. More... | |
Additional Inherited Members | |
Public Member Functions inherited from CoopBallMovement | |
| void | Awake () |
| Initialize references needed by the ball movement object. More... | |
| void | Init (CoopBall ball) |
| Initialize values needed by the ball movement object. More... | |
| void | ReturnObject () |
| Put this object back in the object pooler for later use. This method should be called when the ball is destroyed. More... | |
| Vector2 | GetVelocity (float previousAliveTimer, float currentAliveTimer, Vector2 currentDirection) |
| Get the new velocity given information about a ball's current velocity. More... | |
Data configuration to move a bullet along a square wave.
|
protectedvirtual |
Initialize values needed by the ball movement object.
| ball | The ball that needs to have the speed/direction initialized. |
Implements CoopBallMovement.
|
protectedvirtual |
Get the new velocity given information about a ball's current velocity.
| previousAliveTimer | The time the ball was alive the previous tick of the game. |
| currentAliveTimer | The time the ball has been alive for the current tick of the game. |
| currentDirection | The normalized direction the ball is moving. |
Implements CoopBallMovement.
| float CoopSquareWaveMovement.speed |
The spped the bullet moves along the wave.
| float CoopSquareWaveMovement.virticalMovementCutoff |
The amplitude of the square wave.
| float CoopSquareWaveMovement.wavelengthMultiplier |
The wavelength of the square wave path.
1.8.14