Class PxHullPolygon

java.lang.Object
physx.NativeObject
physx.geometry.PxHullPolygon

public class PxHullPolygon extends NativeObject
Polygon data

Plane format: (mPlane[0],mPlane[1],mPlane[2]).dot(x) + mPlane[3] = 0 With the normal outward-facing from the hull.

  • Field Details

    • SIZEOF

      public static final int SIZEOF
    • ALIGNOF

      public static final int ALIGNOF
      See Also:
  • Constructor Details

    • PxHullPolygon

      protected PxHullPolygon(long address)
    • PxHullPolygon

      public PxHullPolygon()
  • Method Details

    • wrapPointer

      public static PxHullPolygon wrapPointer(long address)
    • arrayGet

      public static PxHullPolygon arrayGet(long baseAddress, int index)
    • createAt

      public static PxHullPolygon createAt(long address)
      Parameters:
      address - Pre-allocated memory, where the object is created.
      Returns:
      Stack allocated object of PxHullPolygon
    • createAt

      public static <T> PxHullPolygon createAt(T allocator, NativeObject.Allocator<T> allocate)
      Type Parameters:
      T - Allocator class, e.g. LWJGL's MemoryStack.
      Parameters:
      allocator - Object to use for allocation, e.g. an instance of LWJGL's MemoryStack.
      allocate - Method to call on allocator to obtain the target address, e.g. MemoryStack::nmalloc.
      Returns:
      Stack allocated object of PxHullPolygon
    • destroy

      public void destroy()
    • getMPlane

      public float getMPlane(int index)
      Parameters:
      index - Array index
      Returns:
      WebIDL type: float
    • setMPlane

      public void setMPlane(int index, float value)
      Parameters:
      index - Array index
      value - WebIDL type: float
    • getMNbVerts

      public short getMNbVerts()
      Number of vertices/edges in the polygon
    • setMNbVerts

      public void setMNbVerts(short value)
      Number of vertices/edges in the polygon
    • getMIndexBase

      public short getMIndexBase()
      Offset in index buffer
    • setMIndexBase

      public void setMIndexBase(short value)
      Offset in index buffer