Class PxPlaneGeometry


public class PxPlaneGeometry extends PxGeometry
Class describing a plane geometry.

The plane geometry specifies the half-space volume x<=0. As with other geometry types, when used in a PxShape the collision volume is obtained by transforming the halfspace by the shape local pose and the actor global pose.

To generate a PxPlane from a PxTransform, transform PxPlane(1,0,0,0).

To generate a PxTransform from a PxPlane, use PxTransformFromPlaneEquation.

See Also:
  • Field Details

    • SIZEOF

      public static final int SIZEOF
    • ALIGNOF

      public static final int ALIGNOF
      See Also:
  • Constructor Details

    • PxPlaneGeometry

      protected PxPlaneGeometry(long address)
    • PxPlaneGeometry

      public PxPlaneGeometry()
      Constructor.
  • Method Details

    • wrapPointer

      public static PxPlaneGeometry wrapPointer(long address)
    • arrayGet

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

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

      public static <T> PxPlaneGeometry 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 PxPlaneGeometry
    • destroy

      public void destroy()
      Overrides:
      destroy in class PxGeometry