C# Class AirCraft, WorldMaker

Inheritance: MonoBehaviour
Show file Open project: SvenFrankson/WorldMaker Class Usage Examples

Public Properties

Property Type Description
CamTarget Transform
TargetMotherShip MotherShip,
UISkin UnityEngine.GUISkin
YawAndPitchInput Action,
cForward float
cRight float
cUp float
engineBoost bool
engineBoostPow float
engineInc float
enginePow float
enginePowMax float
enginePowMin float
hangar MotherShipHangar,
land GravitationalObject,
lift float
pilot Player,
pilotMode PilotAirCraftState
pitchSpeed float
rollSpeed float
yawSpeed float

Private Properties

Property Type Description
Land void

Public Methods

Method Description
ComputePlanetGravity ( ) : Vector3
FixedUpdate ( ) : void
OnCollisionEnter ( Collision c ) : void
OnCollisionExit ( Collision c ) : void
OnGUI ( ) : void
OnTriggerEnter ( Collider c ) : void
OnTriggerExit ( Collider c ) : void
SetKinematic ( bool k ) : void
Start ( ) : void
SwitchModeTo ( PilotAirCraftState newPilotMode ) : void
TakeOff ( Player, p ) : void
TryLand ( ) : void
Update ( ) : void
YawAndPitchPlayerInput ( ) : void

Private Methods

Method Description
Land ( ) : void

Method Details

ComputePlanetGravity() public method

public ComputePlanetGravity ( ) : Vector3
return Vector3

FixedUpdate() public method

public FixedUpdate ( ) : void
return void

OnCollisionEnter() public method

public OnCollisionEnter ( Collision c ) : void
c Collision
return void

OnCollisionExit() public method

public OnCollisionExit ( Collision c ) : void
c Collision
return void

OnGUI() public method

public OnGUI ( ) : void
return void

OnTriggerEnter() public method

public OnTriggerEnter ( Collider c ) : void
c Collider
return void

OnTriggerExit() public method

public OnTriggerExit ( Collider c ) : void
c Collider
return void

SetKinematic() public method

public SetKinematic ( bool k ) : void
k bool
return void

Start() public method

public Start ( ) : void
return void

SwitchModeTo() public method

public SwitchModeTo ( PilotAirCraftState newPilotMode ) : void
newPilotMode PilotAirCraftState
return void

TakeOff() public method

public TakeOff ( Player, p ) : void
p Player,
return void

TryLand() public method

public TryLand ( ) : void
return void

Update() public method

public Update ( ) : void
return void

YawAndPitchPlayerInput() public method

public YawAndPitchPlayerInput ( ) : void
return void

Property Details

CamTarget public property

public Transform CamTarget
return Transform

TargetMotherShip public property

public MotherShip, TargetMotherShip
return MotherShip,

UISkin public property

public GUISkin,UnityEngine UISkin
return UnityEngine.GUISkin

YawAndPitchInput public property

public Action, YawAndPitchInput
return Action,

cForward public property

public float cForward
return float

cRight public property

public float cRight
return float

cUp public property

public float cUp
return float

engineBoost public property

public bool engineBoost
return bool

engineBoostPow public property

public float engineBoostPow
return float

engineInc public property

public float engineInc
return float

enginePow public property

public float enginePow
return float

enginePowMax public property

public float enginePowMax
return float

enginePowMin public property

public float enginePowMin
return float

hangar public property

public MotherShipHangar, hangar
return MotherShipHangar,

land public property

public GravitationalObject, land
return GravitationalObject,

lift public property

public float lift
return float

pilot public property

public Player, pilot
return Player,

pilotMode public property

public PilotAirCraftState pilotMode
return PilotAirCraftState

pitchSpeed public property

public float pitchSpeed
return float

rollSpeed public property

public float rollSpeed
return float

yawSpeed public property

public float yawSpeed
return float