Skip to content

PhysicsBase

Extended by

Implements

Constructors

new PhysicsBase()

new PhysicsBase(app): PhysicsBase

Parameters

app: Application<any>

Returns

PhysicsBase

Source

src/physics/PhysicsBase.ts:13

Properties

_factory

_factory: IPhysicsFactory

Source

src/physics/PhysicsBase.ts:7

Accessors

add

get add(): IPhysicsAddFactory

Returns

IPhysicsAddFactory

Source

src/physics/PhysicsBase.ts:40


container

set container(value): void

Parameters

value: Container<Application<any>>

Source

src/physics/PhysicsBase.ts:44


debug

get debug(): boolean

set debug(value): void

Parameters

value: boolean

Returns

boolean

Source

src/physics/PhysicsBase.ts:36


factory

get factory(): IPhysicsFactory

Returns

IPhysicsFactory

Source

src/physics/PhysicsBase.ts:15

Methods

addToWorld()

addToWorld(body): void

Parameters

body: any

Returns

void

Source

src/physics/PhysicsBase.ts:76


destroy()

destroy(): void

Returns

void

Source

src/physics/PhysicsBase.ts:59


init()

init(_autoStart, _debug, _autoCreateBounds?, _engineOptions?): void

Initializes the physics engine

Parameters

_autoStart: boolean

_debug: boolean

_autoCreateBounds?: boolean

_engineOptions?: any

Returns

void

Implementation of

IPhysicsBase.init

Source

src/physics/PhysicsBase.ts:55


removeFromWorld()

removeFromWorld(body): void

Parameters

body: any

Returns

void

Source

src/physics/PhysicsBase.ts:80


update()

update(pDeltaTime): void

Parameters

pDeltaTime: number

Returns

void

Implementation of

IPhysicsBase.update

Source

src/physics/PhysicsBase.ts:72