Skip to content

marble3 / BoxOptions

Interface: BoxOptions ​

Defined in: src/object.ts:8

Dimensions default to 1. mass, material and shadows are those of PhysicEntityOptions.

Extends ​

Properties ​

castShadow? ​

optional castShadow?: boolean

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

Default true.

Inherited from ​

PhysicEntityOptions.castShadow


depth? ​

optional depth?: number

Defined in: src/object.ts:11


height? ​

optional height?: number

Defined in: src/object.ts:10


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.

Inherited from ​

PhysicEntityOptions.mass


material? ​

optional material?: Material

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

Default: a randomly coloured wireframe, as a placeholder.

Inherited from ​

PhysicEntityOptions.material


receiveShadow? ​

optional receiveShadow?: boolean

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

Default true.

Inherited from ​

PhysicEntityOptions.receiveShadow


width? ​

optional width?: number

Defined in: src/object.ts:9