Infinite Runner Engine v1.9
Public Attributes | Protected Member Functions | Protected Attributes | List of all members
MoreMountains.InfiniteRunnerEngine.AlbatrossNPC Class Reference

This class handles the behaviour of the Albatross non player characters in the Flight of the Albatross demo scene More...

Inheritance diagram for MoreMountains.InfiniteRunnerEngine.AlbatrossNPC:

Public Attributes

float Amplitude = 2f
 how high/low they should fly More...
 

Protected Member Functions

virtual void Start ()
 on start, we get the original position and determine a random offset for their movement More...
 
virtual void Update ()
 On Update, we make our albatross NPC move More...
 
virtual void HandleAlbatrossMovement ()
 Every frame, we move our albatross on a sin wave More...
 

Protected Attributes

float Frequency =2f
 at what frequency do they complete a high > low > high cycle More...
 
Vector3 _newPosition
 
Vector3 _originalPosition
 
float _randomVariation
 

Detailed Description

This class handles the behaviour of the Albatross non player characters in the Flight of the Albatross demo scene

Member Function Documentation

◆ HandleAlbatrossMovement()

virtual void MoreMountains.InfiniteRunnerEngine.AlbatrossNPC.HandleAlbatrossMovement ( )
protectedvirtual

Every frame, we move our albatross on a sin wave

◆ Start()

virtual void MoreMountains.InfiniteRunnerEngine.AlbatrossNPC.Start ( )
protectedvirtual

on start, we get the original position and determine a random offset for their movement

◆ Update()

virtual void MoreMountains.InfiniteRunnerEngine.AlbatrossNPC.Update ( )
protectedvirtual

On Update, we make our albatross NPC move

Member Data Documentation

◆ _newPosition

Vector3 MoreMountains.InfiniteRunnerEngine.AlbatrossNPC._newPosition
protected

◆ _originalPosition

Vector3 MoreMountains.InfiniteRunnerEngine.AlbatrossNPC._originalPosition
protected

◆ _randomVariation

float MoreMountains.InfiniteRunnerEngine.AlbatrossNPC._randomVariation
protected

◆ Amplitude

float MoreMountains.InfiniteRunnerEngine.AlbatrossNPC.Amplitude = 2f

how high/low they should fly

◆ Frequency

float MoreMountains.InfiniteRunnerEngine.AlbatrossNPC.Frequency =2f
protected

at what frequency do they complete a high > low > high cycle


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