Class TempContactManifold

Constructors

Properties

bodies: RigidBodySet

The bodies the manifold's solver contacts are anchored to.

raw: RawContactManifold

Methods

  • Parameters

    • i: number

    Returns number

  • Parameters

    • i: number

    Returns number

  • Parameters

    • i: number

    Returns number

  • Parameters

    • i: number

    Returns number

  • Parameters

    • i: number

    Returns number

  • Parameters

    • i: number

    Returns number

  • Returns void

  • The friction coefficient applied to this manifold's solver contacts. It is combined once per manifold, so every solver contact of this manifold shares it.

    Returns number

  • The local-space contact point on the first shape, for the i-th contact.

    Parameters

    • i: number

      The index of the contact to read.

    • Optional target: Vector

      The object to be populated. If provided, the function returns this object instead of creating a new one.

    Returns Vector

  • The local-space contact point on the second shape, for the i-th contact.

    Parameters

    • i: number

      The index of the contact to read.

    • Optional target: Vector

      The object to be populated. If provided, the function returns this object instead of creating a new one.

    Returns Vector

  • The contact normal of the manifold, expressed in the local-space of the first shape.

    Parameters

    • Optional target: Vector

      The object to be populated. If provided, the function returns this object instead of creating a new one.

    Returns Vector

  • The contact normal of the manifold, expressed in the local-space of the second shape.

    Parameters

    • Optional target: Vector

      The object to be populated. If provided, the function returns this object instead of creating a new one.

    Returns Vector

  • The contact normal of the manifold, expressed in world-space.

    Parameters

    • Optional target: Vector

      The object to be populated. If provided, the function returns this object instead of creating a new one.

    Returns Vector

  • Returns number

  • Returns number

  • The restitution coefficient applied to this manifold's solver contacts. It is combined once per manifold, so every solver contact of this manifold shares it.

    Returns number

  • Parameters

    • i: number

    Returns number

  • The world-space position of the i-th solver contact point.

    Parameters

    • i: number

      The index of the solver contact to read.

    • Optional target: Vector

      The object to be populated. If provided, the function returns this object instead of creating a new one.

    Returns Vector

  • The tangent (surface) velocity of the i-th solver contact point.

    Parameters

    • i: number

      The index of the solver contact to read.

    • Optional target: Vector

      The object to be populated. If provided, the function returns this object instead of creating a new one.

    Returns Vector

  • Returns number

  • Returns number