java.lang.Object
physx.NativeObject
physx.physics.PxQueryHit
physx.physics.PxLocationHit
- Direct Known Subclasses:
PxGeomRaycastHit,PxGeomSweepHit
-
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 PxLocationHitarrayGet(long baseAddress, int index) voiddestroy()floatgetFlags()voidsetDistance(float value) voidsetFlags(PxHitFlags value) voidvoidsetPosition(PxVec3 value) static PxLocationHitwrapPointer(long address) Methods 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
-
PxLocationHit
protected PxLocationHit() -
PxLocationHit
protected PxLocationHit(long address)
-
-
Method Details
-
wrapPointer
-
arrayGet
-
destroy
public void destroy()- Overrides:
destroyin classPxQueryHit
-
getFlags
- Returns:
- WebIDL type:
PxHitFlags[Value]
-
setFlags
- Parameters:
value- WebIDL type:PxHitFlags[Value]
-
getPosition
- Returns:
- WebIDL type:
PxVec3[Value]
-
setPosition
- Parameters:
value- WebIDL type:PxVec3[Value]
-
getNormal
- Returns:
- WebIDL type:
PxVec3[Value]
-
setNormal
- Parameters:
value- WebIDL type:PxVec3[Value]
-
getDistance
public float getDistance()- Returns:
- WebIDL type: float
-
setDistance
public void setDistance(float value) - Parameters:
value- WebIDL type: float
-