java.lang.Object
physx.NativeObject
physx.physics.PxQueryHit
physx.physics.PxLocationHit
physx.physics.PxGeomRaycastHit
physx.physics.PxRaycastHit
-
Nested Class Summary
Nested classes/interfaces inherited from class physx.NativeObject
NativeObject.Allocator<T> -
Field Summary
FieldsFields inherited from class physx.NativeObject
address, isExternallyAllocated, SIZEOF_BYTE, SIZEOF_DOUBLE, SIZEOF_FLOAT, SIZEOF_INT, SIZEOF_LONG, SIZEOF_POINTER, SIZEOF_SHORT -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic PxRaycastHitarrayGet(long baseAddress, int index) static PxRaycastHitcreateAt(long address) static <T> PxRaycastHitcreateAt(T allocator, NativeObject.Allocator<T> allocate) voiddestroy()getActor()getShape()voidsetActor(PxRigidActor value) voidstatic PxRaycastHitwrapPointer(long address) Methods inherited from class physx.physics.PxGeomRaycastHit
getU, getV, hadInitialOverlap, setU, setVMethods inherited from class physx.physics.PxLocationHit
getDistance, getFlags, getNormal, getPosition, setDistance, setFlags, setNormal, setPositionMethods inherited from class physx.physics.PxQueryHit
getFaceIndex, setFaceIndexMethods inherited from class physx.NativeObject
checkNotNull, equals, getAddress, hashCode
-
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
-
arrayGet
-
createAt
- Parameters:
address- Pre-allocated memory, where the object is created.- Returns:
- Stack allocated object of PxRaycastHit
-
createAt
- 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:
destroyin classPxGeomRaycastHit
-
getActor
- Returns:
- WebIDL type:
PxRigidActor
-
setActor
- Parameters:
value- WebIDL type:PxRigidActor
-
getShape
- Returns:
- WebIDL type:
PxShape
-
setShape
- Parameters:
value- WebIDL type:PxShape
-