marble3 / CharacterEntityOptions
Interface: CharacterEntityOptions
Defined in: src/entity/character.ts:13
mass (default 1) and the visual options are those of PhysicEntityOptions.
Extends
Omit<PhysicEntityOptions,"shape">
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
jumpSpeed?
optionaljumpSpeed?:number
Defined in: src/entity/character.ts:19
Take-off speed of a jump, in units per second. Default 6.
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.
Inherited from
material?
optionalmaterial?:Material
Defined in: src/entity/physic.ts:32
Default: a randomly coloured wireframe, as a placeholder.
Inherited from
receiveShadow?
optionalreceiveShadow?:boolean
Defined in: src/entity/physic.ts:36
Default true.
Inherited from
PhysicEntityOptions.receiveShadow
shape?
optionalshape?:btCollisionShape
Defined in: src/entity/character.ts:15
Any convex shape. Default: a sphere of radius 0.5.
walkSpeed?
optionalwalkSpeed?:number
Defined in: src/entity/character.ts:17
Units per second. Default 6.