Skip to content

Class: _Physics

Physics Engine

Not Exported

Constructors

Properties

Accessors

Methods

Constructors

constructor

new _Physics(): _Physics

Returns

_Physics

Defined in

packages/physics/Physics.ts:40

Properties

TEMP_TRANSFORM

TEMP_TRANSFORM: btTransform

Defined in

packages/physics/Physics.ts:38

Accessors

maxSubSteps

get maxSubSteps(): number

Returns

number

Defined in

packages/physics/Physics.ts:59

set maxSubSteps(value): void

Parameters

NameType
valuenumber

Returns

void

Defined in

packages/physics/Physics.ts:62


fixedTimeStep

get fixedTimeStep(): number

Returns

number

Defined in

packages/physics/Physics.ts:66

set fixedTimeStep(value): void

Parameters

NameType
valuenumber

Returns

void

Defined in

packages/physics/Physics.ts:69


isStop

get isStop(): boolean

Returns

boolean

Defined in

packages/physics/Physics.ts:73

set isStop(value): void

Parameters

NameType
valueboolean

Returns

void

Defined in

packages/physics/Physics.ts:77


gravity

get gravity(): Vector3

Returns

Vector3

Defined in

packages/physics/Physics.ts:85

set gravity(gravity): void

Parameters

NameType
gravityVector3

Returns

void

Defined in

packages/physics/Physics.ts:81


world

get world(): btDiscreteDynamicsWorld

Returns

btDiscreteDynamicsWorld

Defined in

packages/physics/Physics.ts:89


isInited

get isInited(): boolean

Returns

boolean

Defined in

packages/physics/Physics.ts:116

Methods

init

init(): Promise<void>

Init Physics Engine

Returns

Promise<void>

Defined in

packages/physics/Physics.ts:45


update

update(): void

Returns

void

Defined in

packages/physics/Physics.ts:133


addRigidbody

addRigidbody(rigidBody): void

Parameters

NameType
rigidBodyRigidbody

Returns

void

Defined in

packages/physics/Physics.ts:145


removeRigidbody

removeRigidbody(rigidBody): void

Parameters

NameType
rigidBodyRigidbody

Returns

void

Defined in

packages/physics/Physics.ts:149


checkBound

checkBound(body): void

Parameters

NameType
bodyRigidbody

Returns

void

Defined in

packages/physics/Physics.ts:153