Next: , Up: Motion   [Contents][Index]


12.1 Airbrakes

Component: Airbrakes

This component allows a physics object to slow down in midair using drag based on the state of a key, or by receiving Messages.

Field of Airbrakes: Rigidbody myRigidbody

Which rigidbody are we affecting?

Field of Airbrakes: float brakingDrag

What should the drag be changed to while air braking?

Default value: 10.0f

Available Messages

Message on Airbrakes: ApplyBrakes ()

Causes the drag on this Rigidbody to increase to ’Braking Drag’

Message on Airbrakes: ReleaseBrakes ()

Causes the drag on this Rigidbody to return to the value set on the Rigidbody

Field of Airbrakes: Rigidbody myRigidbody

Which rigidbody are we affecting?

Field of Airbrakes: float brakingDrag

What should the drag be changed to while air braking?

Default value: 10.0f

Available Messages

Message on Airbrakes: ApplyBrakes ()

Causes the drag on this Rigidbody to increase to ’Braking Drag’

Message on Airbrakes: ReleaseBrakes ()

Causes the drag on this Rigidbody to return to the value set on the Rigidbody