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

Detailed Description

This script thrusts the object it's attached to in the given direction as soon as the object is created. Used for some projectile movement. Eventually the boulder hazards will also use this script.

Documentation updated 11/13/2024

Author
Stephen Nuttall

Private Member Functions

void Awake ()
 
void Start ()
 

Private Attributes

Rigidbody2D rb
 Reference to the object's rigidbody.
 

Additional Inherited Members

- Public Member Functions inherited from RudimentaryMovement
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 inherited from RudimentaryMovement
Vector2 movementDirection
 Direction the object should move in.
 

Member Function Documentation

◆ Awake()

void InitialThrust.Awake ( )
private

◆ Start()

void InitialThrust.Start ( )
private

Member Data Documentation

◆ rb

Rigidbody2D InitialThrust.rb
private

Reference to the object's rigidbody.


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