public class PxRaycastHit extends PxLocationHit
NativeObject.Allocator<T>| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF |
static int |
SIZEOF |
address, isExternallyAllocated| Modifier | Constructor and Description |
|---|---|
|
PxRaycastHit() |
protected |
PxRaycastHit(long address) |
| Modifier and Type | Method and Description |
|---|---|
static PxRaycastHit |
createAt(long address) |
static <T> PxRaycastHit |
createAt(T allocator,
NativeObject.Allocator<T> allocate) |
void |
destroy() |
float |
getU() |
float |
getV() |
void |
setU(float value) |
void |
setV(float value) |
static PxRaycastHit |
wrapPointer(long address) |
getDistance, getFlags, getNormal, getPosition, setDistance, setFlags, setNormal, setPositiongetFaceIndex, setFaceIndexgetActor, getShape, setActor, setShapecheckNotNull, equals, getAddress, hashCodepublic static final int SIZEOF
public static final int ALIGNOF
protected PxRaycastHit(long address)
public PxRaycastHit()
public static PxRaycastHit wrapPointer(long address)
public static PxRaycastHit createAt(long address)
address - Pre-allocated memory, where the object is created.public static <T> PxRaycastHit createAt(T allocator, NativeObject.Allocator<T> allocate)
T - Allocator class, e.g. LWJGL's MemoryStack.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.public void destroy()
destroy in class PxLocationHitpublic float getU()
public void setU(float value)
value - WebIDL type: floatpublic float getV()
public void setV(float value)
value - WebIDL type: float