Skip to content

marble3 / CharacterEntityOptions

Interface: CharacterEntityOptions ​

Defined in: src/entity/character.ts:13

mass (default 1) and the visual options are those of PhysicEntityOptions.

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


jumpSpeed? ​

optional jumpSpeed?: number

Defined in: src/entity/character.ts:19

Take-off speed of a jump, in units per second. Default 6.


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


shape? ​

optional shape?: btCollisionShape

Defined in: src/entity/character.ts:15

Any convex shape. Default: a sphere of radius 0.5.


walkSpeed? ​

optional walkSpeed?: number

Defined in: src/entity/character.ts:17

Units per second. Default 6.