Skip to content

marble3 / CollectibleOptions

Interface: CollectibleOptions ​

Defined in: src/collectible.ts:15

Extends ​

Properties ​

castShadow? ​

optional castShadow?: boolean

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

Default true.

Inherited from ​

PhysicEntityOptions.castShadow


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.

Inherited from ​

PhysicEntityOptions.geometry


item ​

item: string

Defined in: src/collectible.ts:17

The item's id, to hand to the inventory on pickup.


material? ​

optional material?: Material

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

Default: a randomly coloured wireframe, as a placeholder.

Inherited from ​

PhysicEntityOptions.material


pickup? ​

optional pickup?: PickupMode

Defined in: src/collectible.ts:19

Default 'both'.


radius? ​

optional radius?: 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? ​

optional receiveShadow?: boolean

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

Default true.

Inherited from ​

PhysicEntityOptions.receiveShadow