PxDynamicArrayReportCallback
Defined in include/geometry/PxReportCallback.h
Inheritance Relationships
Base Type
public PxReportCallback< T >
(PxReportCallback)
-
template<class T>
class PxDynamicArrayReportCallback : public PxReportCallback<T> Dynamic array report callback.
This callback emulates the behavior of pushing results to a (user-provided) dynamic array.
This customized callback does not actually call users back during the query, results are available afterwards in the provided dynamic array. This would be the same as having a PxArray directly in the query interface.
See also
Public Functions
-
inline virtual bool flushResults(PxU32 nbItems, const T*)
Reports query results to users.
This will be called by the system as many times as necessary to report all results.
- Parameters
nbItems – [in] Number of reported items
items – [in] array of reported items
- Returns
true to continue the query, false to abort the query
-
inline virtual bool flushResults(PxU32 nbItems, const T*)