public class PxSweepHit extends PxLocationHit
NativeObject.Allocator<T>| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF |
static int |
SIZEOF |
address, isExternallyAllocated| Modifier | Constructor and Description |
|---|---|
|
PxSweepHit() |
protected |
PxSweepHit(long address) |
| Modifier and Type | Method and Description |
|---|---|
static PxSweepHit |
createAt(long address) |
static <T> PxSweepHit |
createAt(T allocator,
NativeObject.Allocator<T> allocate) |
void |
destroy() |
static PxSweepHit |
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
public static PxSweepHit wrapPointer(long address)
public static PxSweepHit createAt(long address)
address - Pre-allocated memory, where the object is created.public static <T> PxSweepHit 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 PxLocationHit