marble3 / PhysicEntityOptions
Interface: PhysicEntityOptions
Defined in: src/entity/physic.ts:24
Properties
castShadow?
optionalcastShadow?:boolean
Defined in: src/entity/physic.ts:34
Default true.
geometry?
optionalgeometry?: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?
optionalmass?: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?
optionalmaterial?:Material
Defined in: src/entity/physic.ts:32
Default: a randomly coloured wireframe, as a placeholder.
receiveShadow?
optionalreceiveShadow?: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.