crashcat docs
    Preparing search index...

    Function refreshContacts

    • Refreshes the contacts for a character at its current position.

      Call this after teleporting the character or making other changes that may affect which contacts are active. This performs full collision detection and updates the ground state and active contacts.

      Parameters

      • world: World

        the physics world

      • character: KCC

        the character controller

      • filter: filter.Filter

        collision filter

      • Optionallistener: CharacterListener

        optional listener for callbacks (will receive onContactRemoved for contacts that are no longer active)

      Returns void