Tanoda
|
This script keeps a GameObject in front of the ship, off to the side a bit. The skybox cannot provide a frame of reference for the linear motion of the ship, so the spawned object provides one instead. More...
Public Member Functions | |
void | Respawn () |
Public Attributes | |
Spaceship | spaceship |
GameObject | toSpawn |
float | forwardSpawnMultiplier = 1F |
Vector3 | spawnOffset = Vector3.left * 1.5F |
This script keeps a GameObject in front of the ship, off to the side a bit. The skybox cannot provide a frame of reference for the linear motion of the ship, so the spawned object provides one instead.
This script assumes the ship is moving along the world forward axis.
Definition at line 23 of file LinearReferenceSpawner.cs.
void Leap.Unity.Examples.LinearReferenceSpawner.Respawn | ( | ) |
Definition at line 54 of file LinearReferenceSpawner.cs.
float Leap.Unity.Examples.LinearReferenceSpawner.forwardSpawnMultiplier = 1F |
Definition at line 28 of file LinearReferenceSpawner.cs.
Spaceship Leap.Unity.Examples.LinearReferenceSpawner.spaceship |
Definition at line 25 of file LinearReferenceSpawner.cs.
Vector3 Leap.Unity.Examples.LinearReferenceSpawner.spawnOffset = Vector3.left * 1.5F |
Definition at line 29 of file LinearReferenceSpawner.cs.
GameObject Leap.Unity.Examples.LinearReferenceSpawner.toSpawn |
Definition at line 26 of file LinearReferenceSpawner.cs.