Corgi Engine  v9.1
MoreMountains.CorgiEngine.PathedProjectile Class Reference

This class handles the movement of a pathed projectile More...

Inheritance diagram for MoreMountains.CorgiEngine.PathedProjectile:
MoreMountains.CorgiEngine.CorgiMonoBehaviour

Public Member Functions

virtual void Initialize (Transform destination, float speed)
 Initializes the specified destination and speed. More...
 

Public Attributes

MMFeedbacks DestroyFeedbacks
 the MMFeedbacks to play when the object gets destroyed More...
 

Protected Member Functions

virtual void Update ()
 Every frame, me move the projectile's position to its destination More...
 

Protected Attributes

Transform _destination
 the destination of the projectile More...
 
float _speed
 the movement speed More...
 

Detailed Description

This class handles the movement of a pathed projectile

Member Function Documentation

◆ Initialize()

virtual void MoreMountains.CorgiEngine.PathedProjectile.Initialize ( Transform  destination,
float  speed 
)
virtual

Initializes the specified destination and speed.

Parameters
destinationDestination.
speedSpeed.

◆ Update()

virtual void MoreMountains.CorgiEngine.PathedProjectile.Update ( )
protectedvirtual

Every frame, me move the projectile's position to its destination

Member Data Documentation

◆ _destination

Transform MoreMountains.CorgiEngine.PathedProjectile._destination
protected

the destination of the projectile

◆ _speed

float MoreMountains.CorgiEngine.PathedProjectile._speed
protected

the movement speed

◆ DestroyFeedbacks

MMFeedbacks MoreMountains.CorgiEngine.PathedProjectile.DestroyFeedbacks

the MMFeedbacks to play when the object gets destroyed


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