Skip to content

marble3 / PhysicEntityOptions

Interface: PhysicEntityOptions ​

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

Properties ​

castShadow? ​

optional castShadow?: boolean

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

Default true.


geometry? ​

optional geometry?: BufferGeometry<NormalBufferAttributes>

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

Geometry of a mesh for the entity to build. Leave it out to add your own visuals to three.


mass? ​

optional mass?: number

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

Above 0 the body is dynamic; at 0 it is static and never moves. Default 1.


material? ​

optional material?: Material

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

Default: a randomly coloured wireframe, as a placeholder.


receiveShadow? ​

optional receiveShadow?: boolean

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

Default true.


shape ​

shape: btCollisionShape

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

The collision shape. The entity owns it from here on and destroys it on dispose.