Skip to content

CharacterOpts

Defined in: packages/threeplay/src/plugins/physics/types.ts:120

Options of character().

optional gravityScale?: number

Defined in: packages/threeplay/src/plugins/physics/types.ts:128

Multiplies world gravity (default 1).


optional jumpForce?: number

Defined in: packages/threeplay/src/plugins/physics/types.ts:130

Default jump speed for jump() (default 8).


optional maxSlope?: number

Defined in: packages/threeplay/src/plugins/physics/types.ts:124

Steepest walkable slope in degrees (default 45).


optional snapToGround?: number

Defined in: packages/threeplay/src/plugins/physics/types.ts:126

Snaps down to the ground on slopes and stairs (default 0.3).


optional stepHeight?: number

Defined in: packages/threeplay/src/plugins/physics/types.ts:122

Highest step it climbs automatically (default 0.3).