Class PxContactBuffer

java.lang.Object
physx.NativeObject
physx.geometry.PxContactBuffer

public class PxContactBuffer extends NativeObject
  • Field Details

    • SIZEOF

      public static final int SIZEOF
    • ALIGNOF

      public static final int ALIGNOF
      See Also:
  • Constructor Details

    • PxContactBuffer

      protected PxContactBuffer()
    • PxContactBuffer

      protected PxContactBuffer(long address)
  • Method Details

    • wrapPointer

      public static PxContactBuffer wrapPointer(long address)
    • arrayGet

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

      public void destroy()
    • getContacts

      public PxContactPoint getContacts(int index)
      Parameters:
      index - Array index
      Returns:
      WebIDL type: PxContactPoint [Value]
    • setContacts

      public void setContacts(int index, PxContactPoint value)
      Parameters:
      index - Array index
      value - WebIDL type: PxContactPoint [Value]
    • getCount

      public int getCount()
    • setCount

      public void setCount(int value)
    • getPad

      public int getPad()
    • setPad

      public void setPad(int value)
    • getMAX_CONTACTS

      public static int getMAX_CONTACTS()
      Returns:
      WebIDL type: unsigned long
    • reset

      public void reset()
    • contact

      public boolean contact(PxVec3 worldPoint, PxVec3 worldNormalIn, float separation)
      Parameters:
      worldPoint - WebIDL type: PxVec3 [Const, Ref]
      worldNormalIn - WebIDL type: PxVec3 [Const, Ref]
      separation - WebIDL type: float
      Returns:
      WebIDL type: boolean
    • contact

      public boolean contact(PxVec3 worldPoint, PxVec3 worldNormalIn, float separation, int faceIndex1)
      Parameters:
      worldPoint - WebIDL type: PxVec3 [Const, Ref]
      worldNormalIn - WebIDL type: PxVec3 [Const, Ref]
      separation - WebIDL type: float
      faceIndex1 - WebIDL type: unsigned long
      Returns:
      WebIDL type: boolean
    • contact

      public boolean contact(PxContactPoint pt)
      Parameters:
      pt - WebIDL type: PxContactPoint [Const, Ref]
      Returns:
      WebIDL type: boolean
    • contact

      public PxContactPoint contact()
      Returns:
      WebIDL type: PxContactPoint [Platforms=windows;linux;macos]