Eye of the Nile Docs
Everything you need to know to get started!
Loading...
Searching...
No Matches
RudimentaryMovement Class Reference

Detailed Description

An abstract class for simple movement scripts that generally follow the same format. Scripts that inherit from this are typically used for objects with simple movement, typically projectiles.

Documentation updated 11/13/2024

Author
Stephen Nuttall

Public Member Functions

void HorizontalDirectionChange (bool movingLeft)
 If we want the object to move to left, ensure movementDirection.x is negative. Otherwise, ensure it's positive.
 
void VerticalDirectionChange (bool movingDown)
 If we want the object to move to down, ensure movementDirection.y is negative. Otherwise, ensure it's positive.
 

Public Attributes

Vector2 movementDirection
 Direction the object should move in.
 

Member Function Documentation

◆ HorizontalDirectionChange()

void RudimentaryMovement.HorizontalDirectionChange ( bool movingLeft)

If we want the object to move to left, ensure movementDirection.x is negative. Otherwise, ensure it's positive.

◆ VerticalDirectionChange()

void RudimentaryMovement.VerticalDirectionChange ( bool movingDown)

If we want the object to move to down, ensure movementDirection.y is negative. Otherwise, ensure it's positive.

Member Data Documentation

◆ movementDirection

Vector2 RudimentaryMovement.movementDirection

Direction the object should move in.


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