1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
|
<html>
<head>
<title>NVIDIA(R) PhysX(R) SDK 3.4 API Reference: PxHitCallback< HitType > Struct Template Reference</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<LINK HREF="NVIDIA.css" REL="stylesheet" TYPE="text/css">
</head>
<body bgcolor="#FFFFFF">
<div id="header">
<hr class="first">
<img alt="" src="images/PhysXlogo.png" align="middle"> <br>
<center>
<a class="qindex" href="main.html">Main Page</a>
<a class="qindex" href="hierarchy.html">Class Hierarchy</a>
<a class="qindex" href="annotated.html">Compound List</a>
<a class="qindex" href="functions.html">Compound Members</a>
</center>
<hr class="second">
</div>
<!-- Generated by Doxygen 1.5.8 -->
<div class="contents">
<h1>PxHitCallback< HitType > Struct Template Reference<br>
<small>
[<a class="el" href="group__scenequery.html">Scenequery</a>]</small>
</h1><!-- doxytag: class="PxHitCallback" -->This callback class facilitates reporting scene query hits (intersections) to the user.
<a href="#_details">More...</a>
<p>
<code>#include <<a class="el" href="PxQueryReport_8h-source.html">PxQueryReport.h</a>></code>
<p>
<div class="dynheader">
Collaboration diagram for PxHitCallback< HitType >:</div>
<div class="dynsection">
<p><center><img src="structPxHitCallback__coll__graph.png" border="0" usemap="#PxHitCallback_3_01HitType_01_4__coll__map" alt="Collaboration graph"></center>
<center><font size="2">[<a target="top" href="graph_legend.html">legend</a>]</font></center></div>
<p>
<a href="structPxHitCallback-members.html">List of all members.</a><table border="0" cellpadding="0" cellspacing="0">
<tr><td></td></tr>
<tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="structPxHitCallback.html#062cff2cdd2dfe1f63d0549758ea2627">PxHitCallback</a> (HitType *aTouches, <a class="el" href="group__foundation.html#gcce5749db3dcfb916e98c253374264ed">PxU32</a> aMaxNbTouches)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Initializes the class with user provided buffer. <a href="#062cff2cdd2dfe1f63d0549758ea2627"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual <a class="el" href="group__scenequery.html#g4d0184965c0a910f5c96cb69c0690f5c">PxAgain</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="structPxHitCallback.html#9c6fc25eb66c22dad2a35d5630d4ec68">processTouches</a> (const HitType *buffer, <a class="el" href="group__foundation.html#gcce5749db3dcfb916e98c253374264ed">PxU32</a> nbHits)=0</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">virtual callback function used to communicate query results to the user. <a href="#9c6fc25eb66c22dad2a35d5630d4ec68"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="structPxHitCallback.html#86b66684b448ec43083edf3aa1983234">finalizeQuery</a> ()</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Query finalization callback, called after the last processTouches callback. <a href="#86b66684b448ec43083edf3aa1983234"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual </td><td class="memItemRight" valign="bottom"><a class="el" href="structPxHitCallback.html#7fbb5959c9fcc98834745644422210c3">~PxHitCallback</a> ()</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">PX_FORCE_INLINE bool </td><td class="memItemRight" valign="bottom"><a class="el" href="structPxHitCallback.html#8ff687b42ac0273e730c714bf66dae49">hasAnyHits</a> ()</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Returns true if any blocking or touching hits were encountered during a query. <a href="#8ff687b42ac0273e730c714bf66dae49"></a><br></td></tr>
<tr><td colspan="2"><br><h2>Public Attributes</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">HitType </td><td class="memItemRight" valign="bottom"><a class="el" href="structPxHitCallback.html#63b2851eaf99b190fc468e00e8d1e55d">block</a></td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Holds the closest blocking hit result for the query. Invalid if hasBlock is false. <a href="#63b2851eaf99b190fc468e00e8d1e55d"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="structPxHitCallback.html#c20c6d1c2dd520d771da9b63f7f4f363">hasBlock</a></td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Set to true if there was a blocking hit during query. <a href="#c20c6d1c2dd520d771da9b63f7f4f363"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">HitType * </td><td class="memItemRight" valign="bottom"><a class="el" href="structPxHitCallback.html#a3fa478af9db3e043a540fca72a2f468">touches</a></td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">User specified buffer for touching hits. <a href="#a3fa478af9db3e043a540fca72a2f468"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="group__foundation.html#gcce5749db3dcfb916e98c253374264ed">PxU32</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="structPxHitCallback.html#0e64f72a5edf7c442ce81e3e4a8c61d1">maxNbTouches</a></td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Size of the user specified touching hits buffer. <a href="#0e64f72a5edf7c442ce81e3e4a8c61d1"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="group__foundation.html#gcce5749db3dcfb916e98c253374264ed">PxU32</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="structPxHitCallback.html#549f6828e98c9aeaee9012defa100f74">nbTouches</a></td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Number of touching hits returned by the query. Used with <a class="el" href="structPxHitBuffer.html" title="Returns scene query hits (intersections) to the user in a preallocated buffer.">PxHitBuffer</a>. <a href="#549f6828e98c9aeaee9012defa100f74"></a><br></td></tr>
</table>
<hr><a name="_details"></a><h2>Detailed Description</h2>
<h3>template<typename HitType><br>
struct PxHitCallback< HitType ></h3>
This callback class facilitates reporting scene query hits (intersections) to the user.
<p>
User overrides the virtual processTouches function to receive hits in (possibly multiple) fixed size blocks.<p>
<dl class="note" compact><dt><b>Note:</b></dt><dd><a class="el" href="structPxHitBuffer.html" title="Returns scene query hits (intersections) to the user in a preallocated buffer.">PxHitBuffer</a> derives from this class and is used to receive touching hits in a fixed size buffer. <p>
Since the compiler doesn't look in template dependent base classes when looking for non-dependent names <p>
with some compilers it will be necessary to use "this->hasBlock" notation to access a parent variable <p>
in a child callback class. <p>
Pre-made typedef shorthands, such as <a class="el" href="group__scenequery.html#g4dbe8142d799492bd8e7c5ec70bfac41" title="Raycast query callback.">PxRaycastCallback</a> can be used for raycast, overlap and sweep queries.</dd></dl>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="structPxHitBuffer.html" title="Returns scene query hits (intersections) to the user in a preallocated buffer.">PxHitBuffer</a> <a class="el" href="structPxRaycastHit.html" title="Stores results of raycast queries.">PxRaycastHit</a> <a class="el" href="structPxSweepHit.html" title="Stores results of sweep queries.">PxSweepHit</a> <a class="el" href="structPxOverlapHit.html" title="Stores results of overlap queries.">PxOverlapHit</a> <a class="el" href="group__scenequery.html#g4dbe8142d799492bd8e7c5ec70bfac41" title="Raycast query callback.">PxRaycastCallback</a> <a class="el" href="group__scenequery.html#g9baa3a8cad31bbb8ef666fe01b3afeb7" title="Overlap query callback.">PxOverlapCallback</a> <a class="el" href="group__scenequery.html#g6f93f556cef747d50f643499928dd865" title="Sweep query callback.">PxSweepCallback</a> </dd></dl>
<hr><h2>Constructor & Destructor Documentation</h2>
<a class="anchor" name="062cff2cdd2dfe1f63d0549758ea2627"></a><!-- doxytag: member="PxHitCallback::PxHitCallback" ref="062cff2cdd2dfe1f63d0549758ea2627" args="(HitType *aTouches, PxU32 aMaxNbTouches)" -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template<typename HitType> </div>
<table class="memname">
<tr>
<td class="memname"><a class="el" href="structPxHitCallback.html">PxHitCallback</a>< HitType >::<a class="el" href="structPxHitCallback.html">PxHitCallback</a> </td>
<td>(</td>
<td class="paramtype">HitType * </td>
<td class="paramname"> <em>aTouches</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="group__foundation.html#gcce5749db3dcfb916e98c253374264ed">PxU32</a> </td>
<td class="paramname"> <em>aMaxNbTouches</em></td><td> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td><code> [inline]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Initializes the class with user provided buffer.
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"><tt>[in]</tt> </td><td valign="top"><em>aTouches</em> </td><td>Optional buffer for recording <a class="el" href="structPxQueryHitType.html#cab1ef408184995d169330ed689b79e3ac7ebce08c20ff88ea4328035daa2498" title="a hit on the shape touches the intersection geometry of the query but does not block...">PxQueryHitType::eTOUCH</a> type hits. </td></tr>
<tr><td valign="top"><tt>[in]</tt> </td><td valign="top"><em>aMaxNbTouches</em> </td><td>Size of touch buffer.</td></tr>
</table>
</dl>
<dl class="note" compact><dt><b>Note:</b></dt><dd>if aTouches is NULL and aMaxNbTouches is 0, only the closest blocking hit will be recorded by the query. <p>
If <a class="el" href="structPxQueryFlag.html#2124ff0cff0a021e01e6880a1bba431f2837a6ac649b29ee72af661b65f4d8ab">PxQueryFlag::eANY_HIT</a> flag is used as a query parameter, hasBlock will be set to true and blockingHit will be used to receive the result. <p>
Both eTOUCH and eBLOCK hits will be registered as hasBlock=true and stored in <a class="el" href="structPxHitCallback.html#63b2851eaf99b190fc468e00e8d1e55d" title="Holds the closest blocking hit result for the query. Invalid if hasBlock is false...">PxHitCallback.block</a> when eANY_HIT flag is used.</dd></dl>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="structPxHitCallback.html#c20c6d1c2dd520d771da9b63f7f4f363" title="Set to true if there was a blocking hit during query.">PxHitCallback.hasBlock</a> <a class="el" href="structPxHitCallback.html#63b2851eaf99b190fc468e00e8d1e55d" title="Holds the closest blocking hit result for the query. Invalid if hasBlock is false...">PxHitCallback.block</a> </dd></dl>
</div>
</div><p>
<a class="anchor" name="7fbb5959c9fcc98834745644422210c3"></a><!-- doxytag: member="PxHitCallback::~PxHitCallback" ref="7fbb5959c9fcc98834745644422210c3" args="()" -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template<typename HitType> </div>
<table class="memname">
<tr>
<td class="memname">virtual <a class="el" href="structPxHitCallback.html">PxHitCallback</a>< HitType >::~<a class="el" href="structPxHitCallback.html">PxHitCallback</a> </td>
<td>(</td>
<td class="paramname"> </td>
<td> ) </td>
<td><code> [inline, virtual]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
</div>
</div><p>
<hr><h2>Member Function Documentation</h2>
<a class="anchor" name="86b66684b448ec43083edf3aa1983234"></a><!-- doxytag: member="PxHitCallback::finalizeQuery" ref="86b66684b448ec43083edf3aa1983234" args="()" -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template<typename HitType> </div>
<table class="memname">
<tr>
<td class="memname">virtual void <a class="el" href="structPxHitCallback.html">PxHitCallback</a>< HitType >::finalizeQuery </td>
<td>(</td>
<td class="paramname"> </td>
<td> ) </td>
<td><code> [inline, virtual]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Query finalization callback, called after the last processTouches callback.
<p>
</div>
</div><p>
<a class="anchor" name="8ff687b42ac0273e730c714bf66dae49"></a><!-- doxytag: member="PxHitCallback::hasAnyHits" ref="8ff687b42ac0273e730c714bf66dae49" args="()" -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template<typename HitType> </div>
<table class="memname">
<tr>
<td class="memname">PX_FORCE_INLINE bool <a class="el" href="structPxHitCallback.html">PxHitCallback</a>< HitType >::hasAnyHits </td>
<td>(</td>
<td class="paramname"> </td>
<td> ) </td>
<td><code> [inline]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Returns true if any blocking or touching hits were encountered during a query.
<p>
</div>
</div><p>
<a class="anchor" name="9c6fc25eb66c22dad2a35d5630d4ec68"></a><!-- doxytag: member="PxHitCallback::processTouches" ref="9c6fc25eb66c22dad2a35d5630d4ec68" args="(const HitType *buffer, PxU32 nbHits)=0" -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template<typename HitType> </div>
<table class="memname">
<tr>
<td class="memname">virtual <a class="el" href="group__scenequery.html#g4d0184965c0a910f5c96cb69c0690f5c">PxAgain</a> <a class="el" href="structPxHitCallback.html">PxHitCallback</a>< HitType >::processTouches </td>
<td>(</td>
<td class="paramtype">const HitType * </td>
<td class="paramname"> <em>buffer</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="group__foundation.html#gcce5749db3dcfb916e98c253374264ed">PxU32</a> </td>
<td class="paramname"> <em>nbHits</em></td><td> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td><code> [pure virtual]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
virtual callback function used to communicate query results to the user.
<p>
This callback will always be invoked with <a class="el" href="structPxHitCallback.html#a3fa478af9db3e043a540fca72a2f468" title="User specified buffer for touching hits.">touches</a> as a buffer if <a class="el" href="structPxHitCallback.html#a3fa478af9db3e043a540fca72a2f468" title="User specified buffer for touching hits.">touches</a> was specified as non-NULL. All reported touch hits are guaranteed to be closer than the closest blocking hit.<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"><tt>[in]</tt> </td><td valign="top"><em>buffer</em> </td><td>Callback will report touch hits to the user in this buffer. This pointer will be the same as <a class="el" href="structPxHitCallback.html#a3fa478af9db3e043a540fca72a2f468" title="User specified buffer for touching hits.">touches</a>. </td></tr>
<tr><td valign="top"><tt>[in]</tt> </td><td valign="top"><em>nbHits</em> </td><td>Number of touch hits reported in buffer. This number will not exceed <a class="el" href="structPxHitCallback.html#0e64f72a5edf7c442ce81e3e4a8c61d1" title="Size of the user specified touching hits buffer.">maxNbTouches</a>.</td></tr>
</table>
</dl>
<dl class="note" compact><dt><b>Note:</b></dt><dd>There is a significant performance penalty in case multiple touch callbacks are issued (up to 2x) <p>
to avoid the penalty use a bigger buffer so that all touching hits can be reported in a single buffer. <p>
If true (again) is returned from the callback, nbTouches will be reset to 0, <p>
If false is returned, nbTouched will remain unchanged. <p>
By the time processTouches is first called, the globally closest blocking hit is already determined, <p>
values of hasBlock and block are final and all touch hits are guaranteed to be closer than the blocking hit. <p>
touches and maxNbTouches can be modified inside of processTouches callback.</dd></dl>
<dl class="return" compact><dt><b>Returns:</b></dt><dd>true to continue receiving callbacks in case there are more hits or false to stop.</dd></dl>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="group__scenequery.html#g4d0184965c0a910f5c96cb69c0690f5c" title="Describes query behavior after returning a partial query result via a callback.">PxAgain</a> <a class="el" href="structPxRaycastHit.html" title="Stores results of raycast queries.">PxRaycastHit</a> <a class="el" href="structPxSweepHit.html" title="Stores results of sweep queries.">PxSweepHit</a> <a class="el" href="structPxOverlapHit.html" title="Stores results of overlap queries.">PxOverlapHit</a> </dd></dl>
<p>Implemented in <a class="el" href="structPxHitBuffer.html#f60ac2d3405c5af467f767f812f3f01d">PxHitBuffer< HitType ></a>, <a class="el" href="structPxHitBuffer.html#f60ac2d3405c5af467f767f812f3f01d">PxHitBuffer< PxOverlapHit ></a>, <a class="el" href="structPxHitBuffer.html#f60ac2d3405c5af467f767f812f3f01d">PxHitBuffer< PxRaycastHit ></a>, and <a class="el" href="structPxHitBuffer.html#f60ac2d3405c5af467f767f812f3f01d">PxHitBuffer< PxSweepHit ></a>.</p>
</div>
</div><p>
<hr><h2>Member Data Documentation</h2>
<a class="anchor" name="63b2851eaf99b190fc468e00e8d1e55d"></a><!-- doxytag: member="PxHitCallback::block" ref="63b2851eaf99b190fc468e00e8d1e55d" args="" -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template<typename HitType> </div>
<table class="memname">
<tr>
<td class="memname">HitType <a class="el" href="structPxHitCallback.html">PxHitCallback</a>< HitType >::<a class="el" href="structPxHitCallback.html#63b2851eaf99b190fc468e00e8d1e55d">block</a> </td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Holds the closest blocking hit result for the query. Invalid if hasBlock is false.
<p>
</div>
</div><p>
<a class="anchor" name="c20c6d1c2dd520d771da9b63f7f4f363"></a><!-- doxytag: member="PxHitCallback::hasBlock" ref="c20c6d1c2dd520d771da9b63f7f4f363" args="" -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template<typename HitType> </div>
<table class="memname">
<tr>
<td class="memname">bool <a class="el" href="structPxHitCallback.html">PxHitCallback</a>< HitType >::<a class="el" href="structPxHitCallback.html#c20c6d1c2dd520d771da9b63f7f4f363">hasBlock</a> </td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Set to true if there was a blocking hit during query.
<p>
</div>
</div><p>
<a class="anchor" name="0e64f72a5edf7c442ce81e3e4a8c61d1"></a><!-- doxytag: member="PxHitCallback::maxNbTouches" ref="0e64f72a5edf7c442ce81e3e4a8c61d1" args="" -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template<typename HitType> </div>
<table class="memname">
<tr>
<td class="memname"><a class="el" href="group__foundation.html#gcce5749db3dcfb916e98c253374264ed">PxU32</a> <a class="el" href="structPxHitCallback.html">PxHitCallback</a>< HitType >::<a class="el" href="structPxHitCallback.html#0e64f72a5edf7c442ce81e3e4a8c61d1">maxNbTouches</a> </td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Size of the user specified touching hits buffer.
<p>
<dl class="note" compact><dt><b>Note:</b></dt><dd>If set to 0 all hits will default to <a class="el" href="structPxQueryHitType.html#cab1ef408184995d169330ed689b79e360dc59a348d85c101747ed45d9b20750" title="a hit on the shape blocks the query (does not block overlap queries)">PxQueryHitType::eBLOCK</a>, otherwise to <a class="el" href="structPxQueryHitType.html#cab1ef408184995d169330ed689b79e3ac7ebce08c20ff88ea4328035daa2498" title="a hit on the shape touches the intersection geometry of the query but does not block...">PxQueryHitType::eTOUCH</a> <p>
Hit type returned from pre-filter overrides this default </dd></dl>
</div>
</div><p>
<a class="anchor" name="549f6828e98c9aeaee9012defa100f74"></a><!-- doxytag: member="PxHitCallback::nbTouches" ref="549f6828e98c9aeaee9012defa100f74" args="" -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template<typename HitType> </div>
<table class="memname">
<tr>
<td class="memname"><a class="el" href="group__foundation.html#gcce5749db3dcfb916e98c253374264ed">PxU32</a> <a class="el" href="structPxHitCallback.html">PxHitCallback</a>< HitType >::<a class="el" href="structPxHitCallback.html#549f6828e98c9aeaee9012defa100f74">nbTouches</a> </td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Number of touching hits returned by the query. Used with <a class="el" href="structPxHitBuffer.html" title="Returns scene query hits (intersections) to the user in a preallocated buffer.">PxHitBuffer</a>.
<p>
<dl class="note" compact><dt><b>Note:</b></dt><dd>If true (PxAgain) is returned from the callback, nbTouches will be reset to 0. </dd></dl>
</div>
</div><p>
<a class="anchor" name="a3fa478af9db3e043a540fca72a2f468"></a><!-- doxytag: member="PxHitCallback::touches" ref="a3fa478af9db3e043a540fca72a2f468" args="" -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template<typename HitType> </div>
<table class="memname">
<tr>
<td class="memname">HitType* <a class="el" href="structPxHitCallback.html">PxHitCallback</a>< HitType >::<a class="el" href="structPxHitCallback.html#a3fa478af9db3e043a540fca72a2f468">touches</a> </td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
User specified buffer for touching hits.
<p>
</div>
</div><p>
<hr>The documentation for this struct was generated from the following file:<ul>
<li><a class="el" href="PxQueryReport_8h-source.html">PxQueryReport.h</a></ul>
</div>
<hr style="width: 100%; height: 2px;"><br>
Copyright © 2008-2018 NVIDIA Corporation, 2701 San Tomas Expressway, Santa Clara, CA 95050 U.S.A. All rights reserved. <a href="http://www.nvidia.com ">www.nvidia.com</a>
</body>
</html>
|