JumpContext3D
@zylem/game-lib / behavior / JumpContext3D
Interface: JumpContext3D
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:79
Properties
dt
dt:
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:81
Frame delta in seconds
groundNormal?
optionalgroundNormal?:Vec3Like
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:94
Surface normal at ground contact (optional)
horizontalVelocity
horizontalVelocity:
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:87
Current horizontal velocity of the entity (read from body)
x
x:
number
z
z:
number
isGrounded
isGrounded:
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:92
Whether the entity is on the ground
timeSinceGroundedMs
timeSinceGroundedMs:
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:96
Time since entity was last grounded (ms)
up
up:
Vec3Like
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:83
World up direction (usually 0,1,0)
velocityY
velocityY:
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:85
Current vertical (Y) velocity of the entity
Methods
setHorizontalVelocity()
setHorizontalVelocity(
x,z):void
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:100
Set only the horizontal (X/Z) components of velocity
Parameters
x
number
z
number
Returns
void
setVerticalVelocity()
setVerticalVelocity(
y):void
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:98
Set only the vertical (Y) component of velocity
Parameters
y
number
Returns
void