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

Data class used to move Schmitty Doop to a position/rotation and uses Lerp to do the movement. More...

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

Public Member Functions

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 ()
 

Public Attributes

float rotationOffset
 
float maxRotationTime
 
Vector3 movementOffset
 
float maxMovementTime
 

Detailed Description

Data class used to move Schmitty Doop to a position/rotation and uses Lerp to do the movement.

Member Function Documentation

◆ GetNewPosition()

override Vector3 CoopSchmittyDoopLinearMovement.GetNewPosition ( Vector3  currentPosition,
float  deltaTime 
)
virtual

Get the new position Schmitty Doop should be at.

Parameters
currentPositionThe position Schmitty Doop is at.
deltaTimeTime time since this method was last called.
Returns
The new position Schmitty Should be at.

Implements CoopSchmittyDoopIncrementalMovement.

◆ GetNewRotation()

override float CoopSchmittyDoopLinearMovement.GetNewRotation ( float  currentRotation,
float  deltaTime 
)
virtual

Get the new rotation Schmitty Doop should be at.

Parameters
currentRotationThe rotation Schmitty Doop is at.
deltaTimeTime time since this method was last called.
Returns
The new rotation Schmitty Should be at.

Implements CoopSchmittyDoopIncrementalMovement.

◆ Init()

override void CoopSchmittyDoopLinearMovement.Init ( Vector3  currentPosition,
float  currentRotation 
)
virtual

Initialize the movement object based on Schmitty Doop's current position and rotation.

Parameters
currentPositionCurrent position of Schmitty Doop
currentRotationCurrent rotation of Schmitty Doop

Implements CoopSchmittyDoopIncrementalMovement.

◆ IsFinished()

override bool CoopSchmittyDoopLinearMovement.IsFinished ( )
virtual
Returns
Return true if all movements from this class is finished and Schmitty Doop should move on to the next action.

Implements CoopSchmittyDoopIncrementalMovement.

Member Data Documentation

◆ maxMovementTime

float CoopSchmittyDoopLinearMovement.maxMovementTime

The amount of time it takes to move to the new position.

◆ maxRotationTime

float CoopSchmittyDoopLinearMovement.maxRotationTime

The amount of time it takes to rotate to the new rotation.

◆ movementOffset

Vector3 CoopSchmittyDoopLinearMovement.movementOffset

The new position of Schmitty Doop, moved to by Lerp.

◆ rotationOffset

float CoopSchmittyDoopLinearMovement.rotationOffset

The new rotation of Schmitty Doop, moved to by lerp.


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