java.lang.Object
physx.NativeObject
physx.physics.PxQueryFilterData
Scene query filtering data.
Whenever the scene query intersects a shape, filtering is performed in the following order:
\li For non-batched queries only:
If the data field is non-zero, and the bitwise-AND value of data AND the shape's
queryFilterData is zero, the shape is skipped
\li If filter callbacks are enabled in flags field (see #PxQueryFlags) they will get invoked accordingly.
\li If neither #PxQueryFlag::ePREFILTER or #PxQueryFlag::ePOSTFILTER is set, the hit defaults
to type #PxQueryHitType::eBLOCK when the value of PxHitCallback::nbTouches provided with the query is zero and to type
#PxQueryHitType::eTOUCH when PxHitCallback::nbTouches is positive.
-
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
ConstructorsModifierConstructorDescriptiondefault constructorprotectedPxQueryFilterData(long address) constructor to set both filter data and filter flagsconstructor to set filter flags only -
Method Summary
Modifier and TypeMethodDescriptionstatic PxQueryFilterDataarrayGet(long baseAddress, int index) static PxQueryFilterDatacreateAt(long address) static PxQueryFilterDatacreateAt(long address, PxFilterData fd, PxQueryFlags f) static PxQueryFilterDatacreateAt(long address, PxQueryFlags f) static <T> PxQueryFilterDatacreateAt(T allocator, NativeObject.Allocator<T> allocate) static <T> PxQueryFilterDatacreateAt(T allocator, NativeObject.Allocator<T> allocate, PxFilterData fd, PxQueryFlags f) static <T> PxQueryFilterDatacreateAt(T allocator, NativeObject.Allocator<T> allocate, PxQueryFlags f) voiddestroy()getData()Filter data associated with the scene querygetFlags()Filter flags (see #PxQueryFlags)voidsetData(PxFilterData value) Filter data associated with the scene queryvoidsetFlags(PxQueryFlags value) Filter flags (see #PxQueryFlags)static PxQueryFilterDatawrapPointer(long address) Methods 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
-
PxQueryFilterData
protected PxQueryFilterData(long address) -
PxQueryFilterData
public PxQueryFilterData()default constructor -
PxQueryFilterData
constructor to set both filter data and filter flags -
PxQueryFilterData
constructor to set filter flags only
-
-
Method Details
-
wrapPointer
-
arrayGet
-
createAt
- Parameters:
address- Pre-allocated memory, where the object is created.- Returns:
- Stack allocated object of PxQueryFilterData
-
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 PxQueryFilterData
-
createAt
- Parameters:
address- Pre-allocated memory, where the object is created.fd- WebIDL type:PxFilterData[Const, Ref]f- WebIDL type:PxQueryFlags[Ref]- Returns:
- Stack allocated object of PxQueryFilterData
-
createAt
public static <T> PxQueryFilterData createAt(T allocator, NativeObject.Allocator<T> allocate, PxFilterData fd, PxQueryFlags f) - 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.fd- WebIDL type:PxFilterData[Const, Ref]f- WebIDL type:PxQueryFlags[Ref]- Returns:
- Stack allocated object of PxQueryFilterData
-
createAt
- Parameters:
address- Pre-allocated memory, where the object is created.f- WebIDL type:PxQueryFlags[Ref]- Returns:
- Stack allocated object of PxQueryFilterData
-
createAt
public static <T> PxQueryFilterData createAt(T allocator, NativeObject.Allocator<T> allocate, PxQueryFlags f) - 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.f- WebIDL type:PxQueryFlags[Ref]- Returns:
- Stack allocated object of PxQueryFilterData
-
destroy
public void destroy() -
getData
Filter data associated with the scene query -
setData
Filter data associated with the scene query -
getFlags
Filter flags (see #PxQueryFlags) -
setFlags
Filter flags (see #PxQueryFlags)
-