Property | Type | Description | |
---|---|---|---|
currentFlapTime | float | ||
isFlapping | bool |
Method | Description | |
---|---|---|
CreatureFlightPhysics ( |
||
directionalInput ( float bank, float pitch, float sensitivity ) : void | ||
execute ( CreatureFlightPhysics controller ) : void | ||
flap ( float minFlapTime, float regFlapTime, float flapStrength, float downBeatStrength, bool regFlap, bool quickFlap ) : void |
Try to execute a flap. A regular flap can only happen in regular intervals determined by regFlapTime. A quickFlap is faster, and can happen in minFlapTime intervals or regular flaptime intervals. If we are not flapping, and the wings are open, we are guaranteed a flap.
|
|
thrust ( float forceNewtons ) : void | ||
wingFold ( float left, float right ) : void |
Method | Description | |
---|---|---|
getAOAForZeroLCOF ( ) : float |
public CreatureFlightPhysics ( |
||
rb | ||
return | System.Collections |
public directionalInput ( float bank, float pitch, float sensitivity ) : void | ||
bank | float | |
pitch | float | |
sensitivity | float | |
return | void |
public execute ( CreatureFlightPhysics controller ) : void | ||
controller | CreatureFlightPhysics | |
return | void |
public flap ( float minFlapTime, float regFlapTime, float flapStrength, float downBeatStrength, bool regFlap, bool quickFlap ) : void | ||
minFlapTime | float | Minimum flap time. |
regFlapTime | float | Reg flap time. |
flapStrength | float | Flap strength. |
downBeatStrength | float | |
regFlap | bool | |
quickFlap | bool | If set to |
return | void |
public wingFold ( float left, float right ) : void | ||
left | float | |
right | float | |
return | void |