API

Function setPhysicsBodyPrestepType

  • Sets how a moved transform node is propagated to its physics body before each step. TELEPORT snaps the body to the node, ACTION sets a velocity toward it (so resting bodies are dragged along by friction), and DISABLED skips the pre-step sync entirely. Setting any type other than DISABLED automatically enables prestep syncing for the body (equivalent to setPhysicsBodyPreStep), so STATIC/DYNAMIC bodies are synced without an extra call.

    Parameters

    Returns void