Package physx.physics

Class PxSweepHit


public class PxSweepHit extends PxGeomSweepHit
  • Field Details

    • SIZEOF

      public static final int SIZEOF
    • ALIGNOF

      public static final int ALIGNOF
      See Also:
  • Constructor Details

    • PxSweepHit

      protected PxSweepHit(long address)
    • PxSweepHit

      public PxSweepHit()
  • Method Details

    • wrapPointer

      public static PxSweepHit wrapPointer(long address)
    • arrayGet

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

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

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

      public void destroy()
      Overrides:
      destroy in class PxGeomSweepHit
    • getActor

      public PxRigidActor getActor()
      Returns:
      WebIDL type: PxRigidActor
    • setActor

      public void setActor(PxRigidActor value)
      Parameters:
      value - WebIDL type: PxRigidActor
    • getShape

      public PxShape getShape()
      Returns:
      WebIDL type: PxShape
    • setShape

      public void setShape(PxShape value)
      Parameters:
      value - WebIDL type: PxShape