Options
All
  • Public
  • Public/Protected
  • All
Menu

Calculates buoyancy forces for fluids in the form of a half plane.

Hierarchy

Index

Constructors

Properties

angularDrag: number

Linear drag co-efficient.

default

= 1

density: number

The fluid density.

default

= 0

gravity: b2Vec2

Gravity vector, if the world's gravity is not used.

default

= null

linearDrag: number

Linear drag co-efficient.

default

= 2

m_bodyCount: number

Body count.

m_bodyList: b2ControllerEdge

List of bodies.

normal: b2Vec2

The outer surface normal.

offset: number

The height of the fluid surface along the normal.

default

= 0

useDensity: boolean

If false, bodies are assumed to be uniformly dense, otherwise use the shapes densities.

default

= false.

useWorldGravity: boolean

If true, gravity is taken from the world instead of the gravity parameter.

default

= true.

velocity: b2Vec2

Fluid velocity, for drag calculations.

Methods

  • Clear(): void
  • RemoveBody(body: b2Body): void
  • Step(step: any): void

Generated using TypeDoc