Platformer3DBehaviorOptions
@zylem/game-lib / behavior / Platformer3DBehaviorOptions
Interface: Platformer3DBehaviorOptions
Defined in: node_modules/.pnpm/@zylem+behaviors@0.8.9_@types+react@19.3.0_react@19.3.0_three@0.185.1/node_modules/@zylem/behaviors/dist/platformer-3d.d.ts:194
Platformer behavior options (typed for entity.use() autocomplete)
Properties
autostep?
optionalautostep?:false| \{maxHeight:number;minWidth:number; \}
Defined in: node_modules/.pnpm/@zylem+behaviors@0.8.9_@types+react@19.3.0_react@19.3.0_three@0.185.1/node_modules/@zylem/behaviors/dist/platformer-3d.d.ts:210
Autostep over small ledges, or false to disable (default: { maxHeight: 0.3, minWidth: 0.1 })
characterOffset?
optionalcharacterOffset?:number
Defined in: node_modules/.pnpm/@zylem+behaviors@0.8.9_@types+react@19.3.0_react@19.3.0_three@0.185.1/node_modules/@zylem/behaviors/dist/platformer-3d.d.ts:217
Character controller collision offset (default: 0.05)
gravity?
optionalgravity?:number
Defined in: node_modules/.pnpm/@zylem+behaviors@0.8.9_@types+react@19.3.0_react@19.3.0_three@0.185.1/node_modules/@zylem/behaviors/dist/platformer-3d.d.ts:204
Gravity force (default: 9.82)
jumpForce?
optionaljumpForce?:number
Defined in: node_modules/.pnpm/@zylem+behaviors@0.8.9_@types+react@19.3.0_react@19.3.0_three@0.185.1/node_modules/@zylem/behaviors/dist/platformer-3d.d.ts:200
Initial jump force (default: 12)
maxJumps?
optionalmaxJumps?:number
Defined in: node_modules/.pnpm/@zylem+behaviors@0.8.9_@types+react@19.3.0_react@19.3.0_three@0.185.1/node_modules/@zylem/behaviors/dist/platformer-3d.d.ts:202
Maximum number of jumps (default: 1)
runSpeed?
optionalrunSpeed?:number
Defined in: node_modules/.pnpm/@zylem+behaviors@0.8.9_@types+react@19.3.0_react@19.3.0_three@0.185.1/node_modules/@zylem/behaviors/dist/platformer-3d.d.ts:198
Sprint/run speed (default: 24)
shape?
optionalshape?:object
Defined in: node_modules/.pnpm/@zylem+behaviors@0.8.9_@types+react@19.3.0_react@19.3.0_three@0.185.1/node_modules/@zylem/behaviors/dist/platformer-3d.d.ts:219
Explicit KCC capsule override (requires useAttachedCollider: false).
halfHeight
halfHeight:
number
offset?
optionaloffset?: [number,number,number]
radius
radius:
number
slopeClimbAngle?
optionalslopeClimbAngle?:number
Defined in: node_modules/.pnpm/@zylem+behaviors@0.8.9_@types+react@19.3.0_react@19.3.0_three@0.185.1/node_modules/@zylem/behaviors/dist/platformer-3d.d.ts:206
Maximum slope angle in degrees the character can walk up (default: 50)
slopeSlideAngle?
optionalslopeSlideAngle?:number
Defined in: node_modules/.pnpm/@zylem+behaviors@0.8.9_@types+react@19.3.0_react@19.3.0_three@0.185.1/node_modules/@zylem/behaviors/dist/platformer-3d.d.ts:208
Slope angle in degrees past which the character slides (default: 40)
snapToGroundDistance?
optionalsnapToGroundDistance?:number
Defined in: node_modules/.pnpm/@zylem+behaviors@0.8.9_@types+react@19.3.0_react@19.3.0_three@0.185.1/node_modules/@zylem/behaviors/dist/platformer-3d.d.ts:215
Snap-to-ground distance for downhill/step-down stability (default: 0.3)
useAttachedCollider?
optionaluseAttachedCollider?:boolean
Defined in: node_modules/.pnpm/@zylem+behaviors@0.8.9_@types+react@19.3.0_react@19.3.0_three@0.185.1/node_modules/@zylem/behaviors/dist/platformer-3d.d.ts:225
When true (default), KCC reads shape + offset from the attached Rapier collider.
walkSpeed?
optionalwalkSpeed?:number
Defined in: node_modules/.pnpm/@zylem+behaviors@0.8.9_@types+react@19.3.0_react@19.3.0_three@0.185.1/node_modules/@zylem/behaviors/dist/platformer-3d.d.ts:196
Base walking speed (default: 12)