CharacterOpts
Defined in: packages/threeplay/src/plugins/physics/types.ts:120
Options of character().
Properties
Section titled “Properties”gravityScale?
Section titled “gravityScale?”
optionalgravityScale?:number
Defined in: packages/threeplay/src/plugins/physics/types.ts:128
Multiplies world gravity (default 1).
jumpForce?
Section titled “jumpForce?”
optionaljumpForce?:number
Defined in: packages/threeplay/src/plugins/physics/types.ts:130
Default jump speed for jump() (default 8).
maxSlope?
Section titled “maxSlope?”
optionalmaxSlope?:number
Defined in: packages/threeplay/src/plugins/physics/types.ts:124
Steepest walkable slope in degrees (default 45).
snapToGround?
Section titled “snapToGround?”
optionalsnapToGround?:number
Defined in: packages/threeplay/src/plugins/physics/types.ts:126
Snaps down to the ground on slopes and stairs (default 0.3).
stepHeight?
Section titled “stepHeight?”
optionalstepHeight?:number
Defined in: packages/threeplay/src/plugins/physics/types.ts:122
Highest step it climbs automatically (default 0.3).