Package physx.physics

Class PxRaycastHit


public class PxRaycastHit extends PxGeomRaycastHit
  • Field Details

    • SIZEOF

      public static final int SIZEOF
    • ALIGNOF

      public static final int ALIGNOF
      See Also:
  • Constructor Details

    • PxRaycastHit

      protected PxRaycastHit(long address)
    • PxRaycastHit

      public PxRaycastHit()
  • Method Details

    • wrapPointer

      public static PxRaycastHit wrapPointer(long address)
    • arrayGet

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

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

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

      public void destroy()
      Overrides:
      destroy in class PxGeomRaycastHit
    • 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