API

Class PhysicsViewer

Used to show the physics impostor around the specific mesh

Index
  • Hides a body from the physics engine.

    Parameters

    Returns boolean

    true if body actually removed

    This function is useful for hiding a body from the physics engine. It removes the body from the utility layer scene and disposes the mesh associated with it. It also unregisters the render function if the number of bodies is 0. This is useful for hiding a body from the physics engine without deleting it.

  • Hides an impostor from the scene.

    Parameters

    • impostor: Nullable<PhysicsImpostor>

      The impostor to hide.

      This method is useful for hiding an impostor from the scene. It removes the impostor from the utility layer scene, disposes the mesh, and removes the impostor from the list of impostors. If the impostor is the last one in the list, it also unregisters the render function.

    Returns void