JumpConfig3D
@zylem/game-lib / behavior / JumpConfig3D
Interface: JumpConfig3D
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/components--hjBMTnz.d.ts:16
Properties
coyoteTimeMs
coyoteTimeMs:
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/components--hjBMTnz.d.ts:30
Grace period after leaving ground where first jump is still allowed (ms)
fall?
optionalfall?: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/components--hjBMTnz.d.ts:58
Snappier descent tuning
fallGravityMultiplier
fallGravityMultiplier:
number
Gravity multiplier while falling (e.g. 1.5-2.5)
fastFallMultiplier?
optionalfastFallMultiplier?:number
Additional multiplier when fast-fall input is held
gravity
gravity:
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/components--hjBMTnz.d.ts:20
Gravity magnitude (positive, e.g. 20)
jumpBufferMs
jumpBufferMs:
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/components--hjBMTnz.d.ts:32
Queue a jump press this many ms before landing (ms)
jumpHeight
jumpHeight:
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/components--hjBMTnz.d.ts:18
Desired peak height in world units
maxFallSpeed?
optionalmaxFallSpeed?: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/components--hjBMTnz.d.ts:22
Terminal fall speed magnitude (optional)
maxJumps
maxJumps:
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/components--hjBMTnz.d.ts:24
1 = single jump, 2 = double, etc.
minTimeBetweenJumpsMs?
optionalminTimeBetweenJumpsMs?: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/components--hjBMTnz.d.ts:34
Optional cooldown between consecutive jumps (ms)
planar?
optionalplanar?: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/components--hjBMTnz.d.ts:44
Optional planar (XZ) launch / air-control overrides
airControl?
optionalairControl?:object
airControl.acceleration
acceleration:
number
Acceleration per second while airborne
airControl.deceleration
deceleration:
number
Deceleration per second when no input
airControl.maxPlanarSpeed
maxPlanarSpeed:
number
launchPlanarSpeed?
optionallaunchPlanarSpeed?:number
One-time planar speed applied at takeoff
preservePlanarSpeed?
optionalpreservePlanarSpeed?:boolean
If true, preserve current planar speed instead of replacing it
resetJumpsOnGround
resetJumpsOnGround:
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/components--hjBMTnz.d.ts:26
Reset jump counter when grounded (usually true)
resetJumpsOnWall?
optionalresetJumpsOnWall?: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/components--hjBMTnz.d.ts:28
Reset jump counter on wall contact (future wall-jump support)
variableJump?
optionalvariableJump?: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/components--hjBMTnz.d.ts:36
Variable jump height via early release
cutGravityMultiplier
cutGravityMultiplier:
number
Gravity multiplier applied when jump is released early while ascending
enabled
enabled:
boolean
maxHoldMs?
optionalmaxHoldMs?:number
Max hold duration before the cut triggers automatically (ms, optional)