UNPKG

@awayfl/awayfl-player

Version:

Flash Player emulator for executing SWF files (published for FP versions 6 and up) in javascript

48 lines 1.26 kB
import { b2Vec2 } from "../../Common/Math"; import { b2DebugDraw } from "../b2DebugDraw"; import { b2TimeStep } from "../b2TimeStep"; import { b2Controller } from "./b2Controller"; /** * Calculates buoyancy forces for fluids in the form of a half plane */ export declare class b2BuoyancyController extends b2Controller { /** * The outer surface normal */ normal: b2Vec2; /** * The height of the fluid surface along the normal */ offset: number; /** * The fluid density */ density: number; /** * Fluid velocity, for drag calculations */ velocity: b2Vec2; /** * Linear drag co-efficient */ linearDrag: number; /** * Linear drag co-efficient */ angularDrag: number; /** * If false, bodies are assumed to be uniformly dense, otherwise use the shapes densities */ useDensity: Boolean; /** * If true, gravity is taken from the world instead of the gravity parameter. */ useWorldGravity: Boolean; /** * Gravity vector, if the world's gravity is not used */ gravity: b2Vec2; Step(step: b2TimeStep): void; Draw(debugDraw: b2DebugDraw): void; } //# sourceMappingURL=b2BuoyancyController.d.ts.map