| Package | Box2D.Dynamics.Controllers |
| Class | public class b2BuoyancyController |
| Inheritance | b2BuoyancyController b2Controller |
| Source | b2BuoyancyController.as |
| Property | Defined by | ||
|---|---|---|---|
| angularDrag : Number = 1
Linear drag co-efficient
| b2BuoyancyController | ||
| density : Number = 0
The fluid density
| b2BuoyancyController | ||
| gravity : b2Vec2 = null
Gravity vector, if the world's gravity is not used
| b2BuoyancyController | ||
| linearDrag : Number = 2
Linear drag co-efficient
| b2BuoyancyController | ||
| normal : b2Vec2
The outer surface normal
| b2BuoyancyController | ||
| offset : Number = 0
The height of the fluid surface along the normal
| b2BuoyancyController | ||
| useDensity : Boolean = false
If false, bodies are assumed to be uniformly dense, otherwise use the shapes densities
| b2BuoyancyController | ||
| useWorldGravity : Boolean = true
If true, gravity is taken from the world instead of the gravity parameter.
| b2BuoyancyController | ||
| velocity : b2Vec2
Fluid velocity, for drag calculations
| b2BuoyancyController | ||
| Method | Defined by | ||
|---|---|---|---|
![]() | b2Controller | ||
![]() |
Clear():void
| b2Controller | |
|
Draw(debugDraw:b2DebugDraw):void
| b2BuoyancyController | ||
![]() | b2Controller | ||
![]() | b2Controller | ||
![]() | b2Controller | ||
![]() |
RemoveBody(body:b2Body):void
| b2Controller | |
|
Step(step:b2TimeStep):void
| b2BuoyancyController | ||
| angularDrag | property |
public var angularDrag:Number = 1Linear drag co-efficient
| density | property |
public var density:Number = 0The fluid density
| gravity | property |
public var gravity:b2Vec2 = nullGravity vector, if the world's gravity is not used
| linearDrag | property |
public var linearDrag:Number = 2Linear drag co-efficient
| normal | property |
public var normal:b2Vec2The outer surface normal
| offset | property |
public var offset:Number = 0The height of the fluid surface along the normal
| useDensity | property |
public var useDensity:Boolean = falseIf false, bodies are assumed to be uniformly dense, otherwise use the shapes densities
| useWorldGravity | property |
public var useWorldGravity:Boolean = trueIf true, gravity is taken from the world instead of the gravity parameter.
| velocity | property |
public var velocity:b2Vec2Fluid velocity, for drag calculations
| Draw | () | method |
| Step | () | method |
public override function Step(step:b2TimeStep):voidParameters
step:b2TimeStep |