Aerodynamic Objects Core 2.0.0
Loading...
Searching...
No Matches
AerodynamicObjects.Demos.FrisbeeLauncher Class Reference

Used to periodically launch frisbees with some random variation to launch conditions. More...

Inheritance diagram for AerodynamicObjects.Demos.FrisbeeLauncher:
AerodynamicObjects.Utility.ObjectSpawner

Public Member Functions

override void Spawn ()
 Define the logic for creating/spawning the object. More...
 
- Public Member Functions inherited from AerodynamicObjects.Utility.ObjectSpawner
virtual void FixedUpdate ()
 When overriding this fixed update make sure to call base.FixedUpdate() so that the spawn timer still works. More...
 
abstract void Spawn ()
 Define the logic for creating/spawning the object. More...
 

Public Attributes

GameObject frisbeePrefab
 
Transform launchPosition
 
float life = 2.5f
 How long the frisbee exists before it is destoryed. More...
 
float launchVariability = 0.1f
 Relative magnitude of variability between each launch More...
 
float launchPitchAngle = 25
 Launch elevation angle, positive up. More...
 
float launchRollAngle = 25
 Bank angle of disc at launch. More...
 
float advanceRatio = 1
 Ratio of the disc rim speed due to its spin rate to the forward velocity of the disc. More...
 
float launchSpeed = 11
 Speed in m/s. More...
 
float stabilityMargin
 All discs are unstable in pitch, however good discs are less unstable than bad discs. More...
 
- Public Attributes inherited from AerodynamicObjects.Utility.ObjectSpawner
float spawnRate
 The frequency at which objects are spawned (number of objects per second). More...
 

Detailed Description

Used to periodically launch frisbees with some random variation to launch conditions.

Member Function Documentation

◆ Spawn()

override void AerodynamicObjects.Demos.FrisbeeLauncher.Spawn ( )
virtual

Define the logic for creating/spawning the object.

Implements AerodynamicObjects.Utility.ObjectSpawner.

Member Data Documentation

◆ advanceRatio

float AerodynamicObjects.Demos.FrisbeeLauncher.advanceRatio = 1

Ratio of the disc rim speed due to its spin rate to the forward velocity of the disc.

For a normal frisbee throw the advance ratio is 1, and the spin rate is equivalent to the rate of rotation of the disc if were rolling along the ground at the speed thrown.

◆ frisbeePrefab

GameObject AerodynamicObjects.Demos.FrisbeeLauncher.frisbeePrefab

◆ launchPitchAngle

float AerodynamicObjects.Demos.FrisbeeLauncher.launchPitchAngle = 25

Launch elevation angle, positive up.

(degrees)

◆ launchPosition

Transform AerodynamicObjects.Demos.FrisbeeLauncher.launchPosition

◆ launchRollAngle

float AerodynamicObjects.Demos.FrisbeeLauncher.launchRollAngle = 25

Bank angle of disc at launch.

Positive is right hand down. (degrees)

◆ launchSpeed

float AerodynamicObjects.Demos.FrisbeeLauncher.launchSpeed = 11

Speed in m/s.

◆ launchVariability

float AerodynamicObjects.Demos.FrisbeeLauncher.launchVariability = 0.1f

Relative magnitude of variability between each launch

◆ life

float AerodynamicObjects.Demos.FrisbeeLauncher.life = 2.5f

How long the frisbee exists before it is destoryed.

(s)

◆ stabilityMargin

float AerodynamicObjects.Demos.FrisbeeLauncher.stabilityMargin

All discs are unstable in pitch, however good discs are less unstable than bad discs.

A stability margin of 0 represents an ideal disc in which the aerodynamic centre is located at the centre of the disc. For practical discs, the aerodynamic centre will be some distance forward of the centre of the disc. The stability margin is the radial distance between the disc aerodynamic centre and the centre of the disc as a fraction of the disc diameter. It is a negative quantity recognising the disc is always unstable in pitch (the aerodynamic centre is ahead of the centre of mass). Instability in pitch causes the disc to roll during flight due to gyroscopic effects.


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