Skip to content

Class: DebugDrawer

Ammo.DebugDrawer

Constructors

Methods

Constructors

constructor

new DebugDrawer(): DebugDrawer

Returns

DebugDrawer

Defined in

packages/ammo/ammo.d.ts:35

Methods

drawLine

drawLine(from, to, color): void

Parameters

NameType
frombtVector3
tobtVector3
colorbtVector3

Returns

void

Defined in

packages/ammo/ammo.d.ts:36


drawContactPoint

drawContactPoint(pointOnB, normalOnB, distance, lifeTime, color): void

Parameters

NameType
pointOnBbtVector3
normalOnBbtVector3
distancenumber
lifeTimenumber
colorbtVector3

Returns

void

Defined in

packages/ammo/ammo.d.ts:37


reportErrorWarning

reportErrorWarning(warningString): void

Parameters

NameType
warningStringstring

Returns

void

Defined in

packages/ammo/ammo.d.ts:38


draw3dText

draw3dText(location, textString): void

Parameters

NameType
locationbtVector3
textStringstring

Returns

void

Defined in

packages/ammo/ammo.d.ts:39


setDebugMode

setDebugMode(debugMode): void

Parameters

NameType
debugModenumber

Returns

void

Defined in

packages/ammo/ammo.d.ts:40


getDebugMode

getDebugMode(): number

Returns

number

Defined in

packages/ammo/ammo.d.ts:41