marble3 / CollectibleOptions
Interface: CollectibleOptions
Defined in: src/collectible.ts:15
Extends
Omit<PhysicEntityOptions,"shape"|"mass">
Properties
castShadow?
optionalcastShadow?:boolean
Defined in: src/entity/physic.ts:34
Default true.
Inherited from
PhysicEntityOptions.castShadow
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.
Inherited from
item
item:
string
Defined in: src/collectible.ts:17
The item's id, to hand to the inventory on pickup.
material?
optionalmaterial?:Material
Defined in: src/entity/physic.ts:32
Default: a randomly coloured wireframe, as a placeholder.
Inherited from
pickup?
optionalpickup?:PickupMode
Defined in: src/collectible.ts:19
Default 'both'.
radius?
optionalradius?:number
Defined in: src/collectible.ts:21
Radius of the default icosahedron; the walk pickup reaches 1.2 units beyond it. Default 0.5.
receiveShadow?
optionalreceiveShadow?:boolean
Defined in: src/entity/physic.ts:36
Default true.