Property | Type | Description | |
---|---|---|---|
dragEnabled | bool | ||
gravityEnabled | bool | ||
liftEnabled | bool |
Property | Type | Description | |
---|---|---|---|
rigidbody |
Method | Description | |
---|---|---|
FreeFlightPhysics ( |
||
doStandardPhysics ( ) : void |
Apply the regular flight physics to the flight object. Precondition: This must be called at regular intervals to have a smooth effect on the physics object (use FixedUpdate).
|
|
getAngleOfAttack ( Quaternion theCurrentRotation, Vector3 theCurrentVelocity ) : float | ||
getBankedTurnRotation ( Quaternion theCurrentRotation ) : Quaternion | ||
getDirectionalVelocity ( Quaternion theCurrentRotation, Vector3 theCurrentVelocity ) : Vector3 | ||
getDrag ( float velocity, float pressure, float area, float dragCoff, float lift, float aspectR ) : float |
Get the current drag force on the object based on the parameters. All dimensions must be in metric.
|
|
getDragCoefficient ( float angleDegrees ) : float | ||
getLift ( float velocity, float pressure, float area, float liftCoff ) : float |
Get the current lift force on the object based on the paramaters. All dimensions must be in metric.
|
|
getLiftCoefficient ( float angleDegrees ) : float | ||
getStallRotation ( Quaternion curRot, float velocity ) : Quaternion |
public FreeFlightPhysics ( |
||
rb | ||
return | System.Collections |
public getAngleOfAttack ( Quaternion theCurrentRotation, Vector3 theCurrentVelocity ) : float | ||
theCurrentRotation | Quaternion | |
theCurrentVelocity | Vector3 | |
return | float |
public getBankedTurnRotation ( Quaternion theCurrentRotation ) : Quaternion | ||
theCurrentRotation | Quaternion | |
return | Quaternion |
public getDirectionalVelocity ( Quaternion theCurrentRotation, Vector3 theCurrentVelocity ) : Vector3 | ||
theCurrentRotation | Quaternion | |
theCurrentVelocity | Vector3 | |
return | Vector3 |
public getDrag ( float velocity, float pressure, float area, float dragCoff, float lift, float aspectR ) : float | ||
velocity | float | Velocity Meters/Second |
pressure | float | Pressure (something) |
area | float | Area Meters^2 |
dragCoff | float | Drag coff (dimensionless) |
lift | float | Lift Newtons |
aspectR | float | Aspect r. (dimensionless) |
return | float |
public getDragCoefficient ( float angleDegrees ) : float | ||
angleDegrees | float | |
return | float |
public getLift ( float velocity, float pressure, float area, float liftCoff ) : float | ||
velocity | float | Velocity Meters/Second |
pressure | float | Pressure (something) |
area | float | Area Meters^2 |
liftCoff | float | Lift coff. (dimensionless) |
return | float |
public getLiftCoefficient ( float angleDegrees ) : float | ||
angleDegrees | float | |
return | float |
public getStallRotation ( Quaternion curRot, float velocity ) : Quaternion | ||
curRot | Quaternion | |
velocity | float | |
return | Quaternion |