Package physx.physics

Class PxContactPairPoint

java.lang.Object
physx.NativeObject
physx.physics.PxContactPairPoint

public class PxContactPairPoint extends NativeObject
A contact point as used by contact notification
  • Field Details

    • SIZEOF

      public static final int SIZEOF
    • ALIGNOF

      public static final int ALIGNOF
      See Also:
  • Constructor Details

    • PxContactPairPoint

      protected PxContactPairPoint()
    • PxContactPairPoint

      protected PxContactPairPoint(long address)
  • Method Details

    • wrapPointer

      public static PxContactPairPoint wrapPointer(long address)
    • arrayGet

      public static PxContactPairPoint arrayGet(long baseAddress, int index)
    • destroy

      public void destroy()
    • getPosition

      public PxVec3 getPosition()
      The position of the contact point between the shapes, in world space.
    • setPosition

      public void setPosition(PxVec3 value)
      The position of the contact point between the shapes, in world space.
    • getSeparation

      public float getSeparation()
      The separation of the shapes at the contact point. A negative separation denotes a penetration.
    • setSeparation

      public void setSeparation(float value)
      The separation of the shapes at the contact point. A negative separation denotes a penetration.
    • getNormal

      public PxVec3 getNormal()
      The normal of the contacting surfaces at the contact point. The normal direction points from the second shape to the first shape.
    • setNormal

      public void setNormal(PxVec3 value)
      The normal of the contacting surfaces at the contact point. The normal direction points from the second shape to the first shape.
    • getInternalFaceIndex0

      public int getInternalFaceIndex0()
      The surface index of shape 0 at the contact point. This is used to identify the surface material.
    • setInternalFaceIndex0

      public void setInternalFaceIndex0(int value)
      The surface index of shape 0 at the contact point. This is used to identify the surface material.
    • getImpulse

      public PxVec3 getImpulse()
      The impulse applied at the contact point, in world space. Divide by the simulation time step to get a force value.
    • setImpulse

      public void setImpulse(PxVec3 value)
      The impulse applied at the contact point, in world space. Divide by the simulation time step to get a force value.
    • getInternalFaceIndex1

      public int getInternalFaceIndex1()
      The surface index of shape 1 at the contact point. This is used to identify the surface material.
    • setInternalFaceIndex1

      public void setInternalFaceIndex1(int value)
      The surface index of shape 1 at the contact point. This is used to identify the surface material.