프로퍼티 | 타입 | 설명 | |
---|---|---|---|
currentFlapTime | float | ||
isFlapping | bool |
메소드 | 설명 | |
---|---|---|
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 |
메소드 | 설명 | |
---|---|---|
getAOAForZeroLCOF ( ) : float |
public CreatureFlightPhysics ( |
||
rb | ||
리턴 | System.Collections |
public directionalInput ( float bank, float pitch, float sensitivity ) : void | ||
bank | float | |
pitch | float | |
sensitivity | float | |
리턴 | void |
public execute ( CreatureFlightPhysics controller ) : void | ||
controller | CreatureFlightPhysics | |
리턴 | 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 |
리턴 | void |