API

Variable PhysicsPrestepTypeConst

PhysicsPrestepType: { ACTION: 2; DISABLED: 0; TELEPORT: 1 } = ...

How a moved transform node is propagated to its physics body before each step. DISABLED skips the sync, TELEPORT snaps the body to the node (HP_Body_SetQTransform), and ACTION sets the body's velocity so it reaches the node (HP_Body_SetTargetQTransform, dragging resting bodies via friction). Values match Babylon.js PhysicsPrestepType.

Type Declaration

  • ReadonlyACTION: 2
  • ReadonlyDISABLED: 0
  • ReadonlyTELEPORT: 1