Data class used to move Schmitty Doop to a position/rotation and uses SmoothSrep to do the movement.
More...
|
override Vector3 | GetNewPosition (Vector3 currentPosition, float deltaTime) |
| Get the new position Schmitty Doop should be at. More...
|
|
override float | GetNewRotation (float currentRotation, float deltaTime) |
| Get the new rotation Schmitty Doop should be at. More...
|
|
override void | Init (Vector3 currentPosition, float currentRotation) |
| Initialize the movement object based on Schmitty Doop's current position and rotation. More...
|
|
override bool | IsFinished () |
|
Data class used to move Schmitty Doop to a position/rotation and uses SmoothSrep to do the movement.
◆ GetNewPosition()
override Vector3 CoopSchmittyDoopSmoothMovement.GetNewPosition |
( |
Vector3 |
currentPosition, |
|
|
float |
deltaTime |
|
) |
| |
|
virtual |
Get the new position Schmitty Doop should be at.
- Parameters
-
currentPosition | The position Schmitty Doop is at. |
deltaTime | Time time since this method was last called. |
- Returns
- The new position Schmitty Should be at.
Implements CoopSchmittyDoopIncrementalMovement.
◆ GetNewRotation()
override float CoopSchmittyDoopSmoothMovement.GetNewRotation |
( |
float |
currentRotation, |
|
|
float |
deltaTime |
|
) |
| |
|
virtual |
Get the new rotation Schmitty Doop should be at.
- Parameters
-
currentRotation | The rotation Schmitty Doop is at. |
deltaTime | Time time since this method was last called. |
- Returns
- The new rotation Schmitty Should be at.
Implements CoopSchmittyDoopIncrementalMovement.
◆ Init()
override void CoopSchmittyDoopSmoothMovement.Init |
( |
Vector3 |
currentPosition, |
|
|
float |
currentRotation |
|
) |
| |
|
virtual |
Initialize the movement object based on Schmitty Doop's current position and rotation.
- Parameters
-
currentPosition | Current position of Schmitty Doop |
currentRotation | Current rotation of Schmitty Doop |
Implements CoopSchmittyDoopIncrementalMovement.
◆ IsFinished()
override bool CoopSchmittyDoopSmoothMovement.IsFinished |
( |
| ) |
|
|
virtual |
◆ maxMovementTime
float CoopSchmittyDoopSmoothMovement.maxMovementTime |
The amount of time it takes to move to the new position.
◆ maxRotationTime
float CoopSchmittyDoopSmoothMovement.maxRotationTime |
The amount of time it takes to rotate to the new rotation.
◆ movementOffset
Vector3 CoopSchmittyDoopSmoothMovement.movementOffset |
The new position of Schmitty Doop, moved to by Lerp.
◆ rotationOffset
float CoopSchmittyDoopSmoothMovement.rotationOffset |
The new rotation of Schmitty Doop, moved to by lerp.
The documentation for this class was generated from the following file: