Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface PhysicsHooks

Hierarchy

  • PhysicsHooks

Index

Methods

filterContactPair

  • Function that determines if contacts computation should happen between two colliders, and how the constraints solver should behave for these contacts.

    This will only be executed and taken into account if at least one of the involved colliders contains the ActiveHooks.FILTER_CONTACT_PAIR flag in its active hooks.

    Parameters

    • collider1: ColliderHandle

      − Handle of the first collider involved in the potential contact.

    • collider2: ColliderHandle

      − Handle of the second collider involved in the potential contact.

    • body1: RigidBodyHandle

      − Handle of the first body involved in the potential contact.

    • body2: RigidBodyHandle

      − Handle of the second body involved in the potential contact.

    Returns SolverFlags | null

  • Function that determines if contacts computation should happen between two colliders, and how the constraints solver should behave for these contacts.

    This will only be executed and taken into account if at least one of the involved colliders contains the ActiveHooks.FILTER_CONTACT_PAIR flag in its active hooks.

    Parameters

    • collider1: ColliderHandle

      − Handle of the first collider involved in the potential contact.

    • collider2: ColliderHandle

      − Handle of the second collider involved in the potential contact.

    • body1: RigidBodyHandle

      − Handle of the first body involved in the potential contact.

    • body2: RigidBodyHandle

      − Handle of the second body involved in the potential contact.

    Returns SolverFlags | null

filterIntersectionPair

  • Function that determines if intersection computation should happen between two colliders (where at least one is a sensor).

    This will only be executed and taken into account if one of the involved colliders contains the ActiveHooks.FILTER_INTERSECTION_PAIR` flag in its active hooks.

    Parameters

    • collider1: ColliderHandle

      − Handle of the first collider involved in the potential contact.

    • collider2: ColliderHandle

      − Handle of the second collider involved in the potential contact.

    • body1: RigidBodyHandle

      − Handle of the first body involved in the potential contact.

    • body2: RigidBodyHandle

      − Handle of the second body involved in the potential contact.

    Returns boolean

  • Function that determines if intersection computation should happen between two colliders (where at least one is a sensor).

    This will only be executed and taken into account if one of the involved colliders contains the ActiveHooks.FILTER_INTERSECTION_PAIR` flag in its active hooks.

    Parameters

    • collider1: ColliderHandle

      − Handle of the first collider involved in the potential contact.

    • collider2: ColliderHandle

      − Handle of the second collider involved in the potential contact.

    • body1: RigidBodyHandle

      − Handle of the first body involved in the potential contact.

    • body2: RigidBodyHandle

      − Handle of the second body involved in the potential contact.

    Returns boolean

Generated using TypeDoc