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

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

Inheritance diagram for CoopSchmittyDoopSmoothMovement:
Inheritance graph
[legend]
Collaboration diagram for CoopSchmittyDoopSmoothMovement:
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 SmoothSrep to do the movement.

Member Function Documentation

◆ GetNewPosition()

override Vector3 CoopSchmittyDoopSmoothMovement.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 CoopSchmittyDoopSmoothMovement.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 CoopSchmittyDoopSmoothMovement.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 CoopSchmittyDoopSmoothMovement.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 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: