Skip to content

@maomi/sge / Box

Class: Box ​

Defined in: src/object.ts:15

Extends ​

Constructors ​

Constructor ​

new Box(__namedParameters?): Box

Defined in: src/object.ts:16

Parameters ​

__namedParameters? ​

BoxOptions = {}

Returns ​

Box

Overrides ​

PhysicEntity.constructor

Properties ​

body ​

body: btRigidBody

Defined in: src/entity/physic.ts:46

Inherited from ​

PhysicEntity.body


disposed ​

protected disposed: boolean = false

Defined in: src/entity/graphic.ts:13

Inherited from ​

PhysicEntity.disposed


id ​

id: string

Defined in: src/entity/graphic.ts:11

Inherited from ​

PhysicEntity.id


mass ​

mass: number

Defined in: src/entity/physic.ts:48

Inherited from ​

PhysicEntity.mass


mesh? ​

protected optional mesh?: Mesh<BufferGeometry<NormalBufferAttributes>, Material | Material[], Object3DEventMap>

Defined in: src/entity/physic.ts:52

Inherited from ​

PhysicEntity.mesh


shape ​

shape: btCollisionShape

Defined in: src/entity/physic.ts:47

Inherited from ​

PhysicEntity.shape


three ​

three: Group

Defined in: src/entity/graphic.ts:12

Inherited from ​

PhysicEntity.three

Accessors ​

position ​

Get Signature ​

get position(): Vector3

Defined in: src/entity/physic.ts:127

Returns ​

Vector3

Set Signature ​

set position(position): void

Defined in: src/entity/physic.ts:133

Parameters ​
position ​

Vector3

Returns ​

void

Inherited from ​

StaticMesh.position

Methods ​

dispose() ​

dispose(): void

Defined in: src/entity/physic.ts:118

Returns ​

void

Inherited from ​

PhysicEntity.dispose


registerPhysics() ​

registerPhysics(world): void

Defined in: src/entity/physic.ts:107

Parameters ​

world ​

btDiscreteDynamicsWorld

Returns ​

void

Inherited from ​

PhysicEntity.registerPhysics


unregisterPhysics() ​

unregisterPhysics(world): void

Defined in: src/entity/physic.ts:111

Parameters ​

world ​

btDiscreteDynamicsWorld

Returns ​

void

Inherited from ​

PhysicEntity.unregisterPhysics


update() ​

update(_delta?, _engine?): void

Defined in: src/entity/physic.ts:141

Parameters ​

_delta? ​

number = 0

_engine? ​

FPS

Returns ​

void

Inherited from ​

PhysicEntity.update