This class handles the behaviour of the Albatross non player characters in the Flight of the Albatross demo scene
More...
|
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...
|
|
This class handles the behaviour of the Albatross non player characters in the Flight of the Albatross demo scene
◆ 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
◆ _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:
- Assets/InfiniteRunnerEngine/Demos/FlightOfTheAlbatross/Scripts/AlbatrossNPC.cs