crashcat docs
    Preparing search index...

    Function update

    • Main update function - moves character with full collision handling.

      This is the recommended function for updating character movement. It includes:

      1. Contact tracking (added/persisted/removed callbacks)
      2. Velocity cancellation toward steep slopes
      3. Core movement with collision resolution (via move())
      4. Floor sticking when leaving slopes
      5. Stair walking when blocked by steep surfaces

      Parameters

      • world: World

        the physics world

      • character: KCC

        the character controller

      • deltaTime: number

        time step in seconds

      • gravity: Vec3

        gravity vector

      • settings: UpdateSettings

        update settings (stair walking, floor sticking)

      • listener: CharacterListener | undefined

        optional listener for callbacks

      • filter: filter.Filter

        collision filter

      Returns void