Variable PhysicsPrestepTypeConst
PhysicsPrestepType: { ACTION: 2; DISABLED: 0; TELEPORT: 1 } = ...
Type Declaration
-
ReadonlyACTION: 2 -
ReadonlyDISABLED: 0 -
ReadonlyTELEPORT: 1
ConstReadonlyACTION: 2ReadonlyDISABLED: 0ReadonlyTELEPORT: 1
How a moved transform node is propagated to its physics body before each step.
DISABLEDskips the sync,TELEPORTsnaps the body to the node (HP_Body_SetQTransform), andACTIONsets the body's velocity so it reaches the node (HP_Body_SetTargetQTransform, dragging resting bodies via friction). Values match Babylon.jsPhysicsPrestepType.