Skip to main content

JumpConfig3D

@zylem/game-lib


@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?​

optional fall?: 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?​

optional fastFallMultiplier?: 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?​

optional maxFallSpeed?: 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?​

optional minTimeBetweenJumpsMs?: 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?​

optional planar?: 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?​

optional airControl?: 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?​

optional launchPlanarSpeed?: number

One-time planar speed applied at takeoff

preservePlanarSpeed?​

optional preservePlanarSpeed?: 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?​

optional resetJumpsOnWall?: 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?​

optional variableJump?: 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?​

optional maxHoldMs?: number

Max hold duration before the cut triggers automatically (ms, optional)