aboutsummaryrefslogtreecommitdiff
path: root/PhysX_3.4/Documentation/PhysXAPI/files/PxSimulationStatistics_8h-source.html
blob: f6340e8a487faa82ef08888b5f3f9f3eb1914019 (plain) (blame)
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
<html>
	<head>
		<title>NVIDIA(R) PhysX(R) SDK 3.4 API Reference: PxSimulationStatistics.h Source File</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> &nbsp; 
				<a class="qindex" href="hierarchy.html">Class Hierarchy</a> &nbsp; 
				<a class="qindex" href="annotated.html">Compound List</a> &nbsp; 
				<a class="qindex" href="functions.html">Compound Members</a> &nbsp;  
			</center>
			<hr class="second">
		</div>
<!-- Generated by Doxygen 1.5.8 -->
<h1>PxSimulationStatistics.h</h1><a href="PxSimulationStatistics_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">//</span>
<a name="l00002"></a>00002 <span class="comment">// Redistribution and use in source and binary forms, with or without</span>
<a name="l00003"></a>00003 <span class="comment">// modification, are permitted provided that the following conditions</span>
<a name="l00004"></a>00004 <span class="comment">// are met:</span>
<a name="l00005"></a>00005 <span class="comment">//  * Redistributions of source code must retain the above copyright</span>
<a name="l00006"></a>00006 <span class="comment">//    notice, this list of conditions and the following disclaimer.</span>
<a name="l00007"></a>00007 <span class="comment">//  * Redistributions in binary form must reproduce the above copyright</span>
<a name="l00008"></a>00008 <span class="comment">//    notice, this list of conditions and the following disclaimer in the</span>
<a name="l00009"></a>00009 <span class="comment">//    documentation and/or other materials provided with the distribution.</span>
<a name="l00010"></a>00010 <span class="comment">//  * Neither the name of NVIDIA CORPORATION nor the names of its</span>
<a name="l00011"></a>00011 <span class="comment">//    contributors may be used to endorse or promote products derived</span>
<a name="l00012"></a>00012 <span class="comment">//    from this software without specific prior written permission.</span>
<a name="l00013"></a>00013 <span class="comment">//</span>
<a name="l00014"></a>00014 <span class="comment">// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS ``AS IS'' AND ANY</span>
<a name="l00015"></a>00015 <span class="comment">// EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE</span>
<a name="l00016"></a>00016 <span class="comment">// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR</span>
<a name="l00017"></a>00017 <span class="comment">// PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE COPYRIGHT OWNER OR</span>
<a name="l00018"></a>00018 <span class="comment">// CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,</span>
<a name="l00019"></a>00019 <span class="comment">// EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,</span>
<a name="l00020"></a>00020 <span class="comment">// PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR</span>
<a name="l00021"></a>00021 <span class="comment">// PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY</span>
<a name="l00022"></a>00022 <span class="comment">// OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT</span>
<a name="l00023"></a>00023 <span class="comment">// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE</span>
<a name="l00024"></a>00024 <span class="comment">// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.</span>
<a name="l00025"></a>00025 <span class="comment">//</span>
<a name="l00026"></a>00026 <span class="comment">// Copyright (c) 2008-2018 NVIDIA Corporation. All rights reserved.</span>
<a name="l00027"></a>00027 <span class="comment">// Copyright (c) 2004-2008 AGEIA Technologies, Inc. All rights reserved.</span>
<a name="l00028"></a>00028 <span class="comment">// Copyright (c) 2001-2004 NovodeX AG. All rights reserved.  </span>
<a name="l00029"></a>00029 
<a name="l00030"></a>00030 
<a name="l00031"></a>00031 <span class="preprocessor">#ifndef PX_SIMULATION_STATISTICS</span>
<a name="l00032"></a>00032 <span class="preprocessor"></span><span class="preprocessor">#define PX_SIMULATION_STATISTICS</span>
<a name="l00033"></a>00033 <span class="preprocessor"></span>
<a name="l00037"></a>00037 <span class="preprocessor">#include "<a class="code" href="PxPhysXConfig_8h.html">PxPhysXConfig.h</a>"</span>
<a name="l00038"></a>00038 <span class="preprocessor">#include "<a class="code" href="PxAssert_8h.html">foundation/PxAssert.h</a>"</span>
<a name="l00039"></a>00039 <span class="preprocessor">#include "<a class="code" href="PxGeometry_8h.html">geometry/PxGeometry.h</a>"</span>
<a name="l00040"></a>00040 
<a name="l00041"></a>00041 <span class="preprocessor">#if !PX_DOXYGEN</span>
<a name="l00042"></a>00042 <span class="preprocessor"></span><span class="keyword">namespace </span>physx
<a name="l00043"></a>00043 {
<a name="l00044"></a>00044 <span class="preprocessor">#endif</span>
<a name="l00045"></a>00045 <span class="preprocessor"></span>
<a name="l00051"></a><a class="code" href="classPxSimulationStatistics.html">00051</a> <span class="keyword">class </span><a class="code" href="classPxSimulationStatistics.html" title="Class used to retrieve statistics for a simulation step.">PxSimulationStatistics</a>
<a name="l00052"></a>00052 {
<a name="l00053"></a>00053 <span class="keyword">public</span>:
<a name="l00058"></a><a class="code" href="classPxSimulationStatistics.html#996a480bf74af73637d277c454dce87c">00058</a>     <span class="keyword">enum</span> <a class="code" href="classPxSimulationStatistics.html#996a480bf74af73637d277c454dce87c" title="Identifies each type of broadphase volume.">VolumeType</a>
<a name="l00059"></a>00059     {
<a name="l00064"></a><a class="code" href="classPxSimulationStatistics.html#996a480bf74af73637d277c454dce87c72731d6b28d539f63127cbce5115c415">00064</a>         eRIGID_BODY,
<a name="l00065"></a>00065 
<a name="l00066"></a>00066 <span class="preprocessor">#if PX_USE_PARTICLE_SYSTEM_API</span>
<a name="l00067"></a>00067 <span class="preprocessor"></span>
<a name="l00072"></a><a class="code" href="classPxSimulationStatistics.html#996a480bf74af73637d277c454dce87c1e1bd6604862aa41bb644ae0efa33d20">00072</a>         ePARTICLE_SYSTEM <a class="code" href="group__foundation.html#gfd8f8779793627061774cfcfa1b9fbd7">PX_DEPRECATED</a>,
<a name="l00073"></a>00073 <span class="preprocessor">#endif</span>
<a name="l00074"></a>00074 <span class="preprocessor"></span>
<a name="l00075"></a>00075 <span class="preprocessor">#if PX_USE_CLOTH_API</span>
<a name="l00076"></a>00076 <span class="preprocessor"></span>
<a name="l00081"></a>00081         eCLOTH PX_DEPRECATED,
<a name="l00082"></a>00082 <span class="preprocessor">#endif</span>
<a name="l00083"></a>00083 <span class="preprocessor"></span>
<a name="l00084"></a><a class="code" href="classPxSimulationStatistics.html#996a480bf74af73637d277c454dce87c51b709ed2ba14b443d7e0eb83aa846c6">00084</a>         eVOLUME_COUNT
<a name="l00085"></a>00085     };
<a name="l00086"></a>00086 
<a name="l00091"></a><a class="code" href="classPxSimulationStatistics.html#56865c878c5d74dd30a7ab81e2728c36">00091</a>     <span class="keyword">enum</span> <a class="code" href="classPxSimulationStatistics.html#56865c878c5d74dd30a7ab81e2728c36" title="Different types of rigid body collision pair statistics.">RbPairStatsType</a>
<a name="l00092"></a>00092     {
<a name="l00096"></a><a class="code" href="classPxSimulationStatistics.html#56865c878c5d74dd30a7ab81e2728c36366eae507d69961741d28c3b6c04d576">00096</a>         eDISCRETE_CONTACT_PAIRS,
<a name="l00097"></a>00097 
<a name="l00106"></a><a class="code" href="classPxSimulationStatistics.html#56865c878c5d74dd30a7ab81e2728c3613b4e0a4ca71ad756078820ab928c1b3">00106</a>         eCCD_PAIRS,
<a name="l00107"></a>00107 
<a name="l00113"></a><a class="code" href="classPxSimulationStatistics.html#56865c878c5d74dd30a7ab81e2728c36e1d23646a3bd6d7cfef7986a92afe270">00113</a>         eMODIFIED_CONTACT_PAIRS,
<a name="l00114"></a>00114 
<a name="l00120"></a><a class="code" href="classPxSimulationStatistics.html#56865c878c5d74dd30a7ab81e2728c369b0bca86a9a15f66d11b191efbcfb65b">00120</a>         eTRIGGER_PAIRS
<a name="l00121"></a>00121     };
<a name="l00122"></a>00122 
<a name="l00123"></a>00123 
<a name="l00124"></a>00124 <span class="comment">//objects:</span>
<a name="l00128"></a><a class="code" href="classPxSimulationStatistics.html#3ba1901c4ac662c535daa1ac58987aba">00128</a> <span class="comment"></span>    <a class="code" href="namespacephysx.html#9b7fbd746d18bf5b6545713a8d818f41">PxU32</a>   nbActiveConstraints;
<a name="l00129"></a>00129 
<a name="l00135"></a><a class="code" href="classPxSimulationStatistics.html#db8e7d0a9d70b16a4b7309c4d47685e2">00135</a>     <a class="code" href="namespacephysx.html#9b7fbd746d18bf5b6545713a8d818f41">PxU32</a>   nbActiveDynamicBodies;
<a name="l00136"></a>00136 
<a name="l00143"></a><a class="code" href="classPxSimulationStatistics.html#f783cd541d93f5f72b64f07cebbbe71a">00143</a>     <a class="code" href="namespacephysx.html#9b7fbd746d18bf5b6545713a8d818f41">PxU32</a>   nbActiveKinematicBodies;
<a name="l00144"></a>00144 
<a name="l00148"></a><a class="code" href="classPxSimulationStatistics.html#8aebb151f3f50cd831f2a42165ef9409">00148</a>     <a class="code" href="namespacephysx.html#9b7fbd746d18bf5b6545713a8d818f41">PxU32</a>   nbStaticBodies;
<a name="l00149"></a>00149 
<a name="l00155"></a><a class="code" href="classPxSimulationStatistics.html#1d5feb904597a5a98d02f39707e6c349">00155</a>     <a class="code" href="namespacephysx.html#9b7fbd746d18bf5b6545713a8d818f41">PxU32</a>   nbDynamicBodies;
<a name="l00156"></a>00156 
<a name="l00161"></a><a class="code" href="classPxSimulationStatistics.html#2385b3afe6fc6237f7fcbb4712e4ad57">00161</a>     <a class="code" href="namespacephysx.html#9b7fbd746d18bf5b6545713a8d818f41">PxU32</a>   nbShapes[<a class="code" href="structPxGeometryType.html#efc79f72c4c479192ac19d41a6f30ed5fa28e3dbd2e28f7c0948c35723f42105" title="internal use only!">PxGeometryType::eGEOMETRY_COUNT</a>];
<a name="l00162"></a>00162 
<a name="l00166"></a><a class="code" href="classPxSimulationStatistics.html#4903606cb701b7237a92a6a43f8d60ea">00166</a>     <a class="code" href="namespacephysx.html#9b7fbd746d18bf5b6545713a8d818f41">PxU32</a>   nbAggregates;
<a name="l00167"></a>00167     
<a name="l00171"></a><a class="code" href="classPxSimulationStatistics.html#bfd24df0bcef58fccc82cd06423aeff2">00171</a>     <a class="code" href="namespacephysx.html#9b7fbd746d18bf5b6545713a8d818f41">PxU32</a>   nbArticulations;
<a name="l00172"></a>00172 
<a name="l00173"></a>00173 <span class="comment">//solver:</span>
<a name="l00177"></a><a class="code" href="classPxSimulationStatistics.html#9b03e0dc11df05eea8ded2e95d01fdcf">00177</a> <span class="comment"></span>    <a class="code" href="namespacephysx.html#9b7fbd746d18bf5b6545713a8d818f41">PxU32</a>   nbAxisSolverConstraints;
<a name="l00178"></a>00178 
<a name="l00182"></a><a class="code" href="classPxSimulationStatistics.html#bfacb597d8b72b1d86961dfdb8e768e3">00182</a>     <a class="code" href="namespacephysx.html#9b7fbd746d18bf5b6545713a8d818f41">PxU32</a>   compressedContactSize;
<a name="l00183"></a>00183 
<a name="l00187"></a><a class="code" href="classPxSimulationStatistics.html#a1e487295538b16ec29c359082d12976">00187</a>     <a class="code" href="namespacephysx.html#9b7fbd746d18bf5b6545713a8d818f41">PxU32</a>   requiredContactConstraintMemory;
<a name="l00188"></a>00188 
<a name="l00192"></a><a class="code" href="classPxSimulationStatistics.html#b56ac5aa68f31b68a0852c87817ff026">00192</a>     <a class="code" href="namespacephysx.html#9b7fbd746d18bf5b6545713a8d818f41">PxU32</a>   peakConstraintMemory;
<a name="l00193"></a>00193 
<a name="l00194"></a>00194 <span class="comment">//broadphase:</span>
<a name="l00203"></a><a class="code" href="classPxSimulationStatistics.html#4e7028fdf11d3b1fd849cf5bf8e10081">00203</a> <span class="comment"></span>    <a class="code" href="namespacephysx.html#9b7fbd746d18bf5b6545713a8d818f41">PxU32</a> getNbBroadPhaseAdds(<a class="code" href="classPxSimulationStatistics.html#996a480bf74af73637d277c454dce87c" title="Identifies each type of broadphase volume.">VolumeType</a> type)<span class="keyword"> const</span>
<a name="l00204"></a>00204 <span class="keyword">    </span>{
<a name="l00205"></a>00205         <span class="keywordflow">if</span> (type != eVOLUME_COUNT)
<a name="l00206"></a>00206             <span class="keywordflow">return</span> nbBroadPhaseAdds[type];
<a name="l00207"></a>00207         <span class="keywordflow">else</span>
<a name="l00208"></a>00208         {
<a name="l00209"></a>00209             <a class="code" href="group__foundation.html#g4a83a657390b324a460f14684e5accee">PX_ASSERT</a>(<span class="keyword">false</span>);
<a name="l00210"></a>00210             <span class="keywordflow">return</span> 0;
<a name="l00211"></a>00211         }
<a name="l00212"></a>00212     }
<a name="l00213"></a>00213 
<a name="l00222"></a><a class="code" href="classPxSimulationStatistics.html#7db95116b2241e89d3bc17934d801979">00222</a>     <a class="code" href="namespacephysx.html#9b7fbd746d18bf5b6545713a8d818f41">PxU32</a> getNbBroadPhaseRemoves(<a class="code" href="classPxSimulationStatistics.html#996a480bf74af73637d277c454dce87c" title="Identifies each type of broadphase volume.">VolumeType</a> type)<span class="keyword"> const</span>
<a name="l00223"></a>00223 <span class="keyword">    </span>{
<a name="l00224"></a>00224         <span class="keywordflow">if</span> (type != eVOLUME_COUNT)
<a name="l00225"></a>00225             <span class="keywordflow">return</span> nbBroadPhaseRemoves[type];
<a name="l00226"></a>00226         <span class="keywordflow">else</span>
<a name="l00227"></a>00227         {
<a name="l00228"></a>00228             <a class="code" href="group__foundation.html#g4a83a657390b324a460f14684e5accee">PX_ASSERT</a>(<span class="keyword">false</span>);
<a name="l00229"></a>00229             <span class="keywordflow">return</span> 0;
<a name="l00230"></a>00230         }
<a name="l00231"></a>00231     }
<a name="l00232"></a>00232 
<a name="l00233"></a>00233 <span class="comment">//collisions:</span>
<a name="l00247"></a><a class="code" href="classPxSimulationStatistics.html#86afb18c5a1cb6b290b350361c425545">00247</a> <span class="comment"></span>    <a class="code" href="namespacephysx.html#9b7fbd746d18bf5b6545713a8d818f41">PxU32</a> getRbPairStats(<a class="code" href="classPxSimulationStatistics.html#56865c878c5d74dd30a7ab81e2728c36" title="Different types of rigid body collision pair statistics.">RbPairStatsType</a> pairType, <a class="code" href="structPxGeometryType.html#efc79f72c4c479192ac19d41a6f30ed5">PxGeometryType::Enum</a> g0, <a class="code" href="structPxGeometryType.html#efc79f72c4c479192ac19d41a6f30ed5">PxGeometryType::Enum</a> g1)<span class="keyword"> const</span>
<a name="l00248"></a>00248 <span class="keyword">    </span>{
<a name="l00249"></a>00249         <a class="code" href="group__foundation.html#g09414aeb1a283b875edb1fa83e551aca">PX_ASSERT_WITH_MESSAGE</a>( (pairType &gt;= eDISCRETE_CONTACT_PAIRS) &amp;&amp;
<a name="l00250"></a>00250                                 (pairType &lt;= eTRIGGER_PAIRS),
<a name="l00251"></a>00251                                 <span class="stringliteral">"Invalid pairType in PxSimulationStatistics::getRbPairStats"</span>);
<a name="l00252"></a>00252 
<a name="l00253"></a>00253         <span class="keywordflow">if</span> (g0 &gt;= <a class="code" href="structPxGeometryType.html#efc79f72c4c479192ac19d41a6f30ed5fa28e3dbd2e28f7c0948c35723f42105" title="internal use only!">PxGeometryType::eGEOMETRY_COUNT</a> || g1 &gt;= <a class="code" href="structPxGeometryType.html#efc79f72c4c479192ac19d41a6f30ed5fa28e3dbd2e28f7c0948c35723f42105" title="internal use only!">PxGeometryType::eGEOMETRY_COUNT</a>)
<a name="l00254"></a>00254         {
<a name="l00255"></a>00255             <a class="code" href="group__foundation.html#g4a83a657390b324a460f14684e5accee">PX_ASSERT</a>(<span class="keyword">false</span>);
<a name="l00256"></a>00256             <span class="keywordflow">return</span> 0;
<a name="l00257"></a>00257         }
<a name="l00258"></a>00258 
<a name="l00259"></a>00259         <a class="code" href="namespacephysx.html#9b7fbd746d18bf5b6545713a8d818f41">PxU32</a> nbPairs = 0;
<a name="l00260"></a>00260         <span class="keywordflow">switch</span>(pairType)
<a name="l00261"></a>00261         {
<a name="l00262"></a>00262             <span class="keywordflow">case</span> eDISCRETE_CONTACT_PAIRS:
<a name="l00263"></a>00263                 nbPairs = nbDiscreteContactPairs[g0][g1];
<a name="l00264"></a>00264                 <span class="keywordflow">break</span>;
<a name="l00265"></a>00265             <span class="keywordflow">case</span> eCCD_PAIRS:
<a name="l00266"></a>00266                 nbPairs = nbCCDPairs[g0][g1];
<a name="l00267"></a>00267                 <span class="keywordflow">break</span>;
<a name="l00268"></a>00268             <span class="keywordflow">case</span> eMODIFIED_CONTACT_PAIRS:
<a name="l00269"></a>00269                 nbPairs = nbModifiedContactPairs[g0][g1];
<a name="l00270"></a>00270                 <span class="keywordflow">break</span>;
<a name="l00271"></a>00271             <span class="keywordflow">case</span> eTRIGGER_PAIRS:
<a name="l00272"></a>00272                 nbPairs = nbTriggerPairs[g0][g1];
<a name="l00273"></a>00273                 <span class="keywordflow">break</span>;
<a name="l00274"></a>00274         }
<a name="l00275"></a>00275         <span class="keywordflow">return</span> nbPairs;
<a name="l00276"></a>00276     }
<a name="l00277"></a>00277 
<a name="l00281"></a><a class="code" href="classPxSimulationStatistics.html#6310732fffde7fa5013aada6ca2434c1">00281</a>     <a class="code" href="namespacephysx.html#9b7fbd746d18bf5b6545713a8d818f41">PxU32</a>   nbDiscreteContactPairsTotal;
<a name="l00282"></a>00282 
<a name="l00287"></a><a class="code" href="classPxSimulationStatistics.html#fc4203ee9a309b63e0a9638595d28867">00287</a>     <a class="code" href="namespacephysx.html#9b7fbd746d18bf5b6545713a8d818f41">PxU32</a>   nbDiscreteContactPairsWithCacheHits;
<a name="l00288"></a>00288 
<a name="l00292"></a><a class="code" href="classPxSimulationStatistics.html#897bc3a4b6dc809b1f04059fe4b4a2af">00292</a>     <a class="code" href="namespacephysx.html#9b7fbd746d18bf5b6545713a8d818f41">PxU32</a>   nbDiscreteContactPairsWithContacts;
<a name="l00293"></a>00293 
<a name="l00297"></a><a class="code" href="classPxSimulationStatistics.html#717bce9ff3da25dd9250c1746008e52b">00297</a>     <a class="code" href="namespacephysx.html#9b7fbd746d18bf5b6545713a8d818f41">PxU32</a>   nbNewPairs;
<a name="l00298"></a>00298 
<a name="l00302"></a><a class="code" href="classPxSimulationStatistics.html#84b14e904af17d9c86d158ecea5fb9d1">00302</a>     <a class="code" href="namespacephysx.html#9b7fbd746d18bf5b6545713a8d818f41">PxU32</a>   nbLostPairs;
<a name="l00303"></a>00303 
<a name="l00307"></a><a class="code" href="classPxSimulationStatistics.html#612d72aad0d4e7adab3bbb5f14135bf1">00307</a>     <a class="code" href="namespacephysx.html#9b7fbd746d18bf5b6545713a8d818f41">PxU32</a>   nbNewTouches;
<a name="l00308"></a>00308 
<a name="l00312"></a><a class="code" href="classPxSimulationStatistics.html#e20e0fabfd1e8dfdec622a496bfbaf83">00312</a>     <a class="code" href="namespacephysx.html#9b7fbd746d18bf5b6545713a8d818f41">PxU32</a>   nbLostTouches;
<a name="l00313"></a>00313 
<a name="l00317"></a><a class="code" href="classPxSimulationStatistics.html#ab9b2646eb89d7fb3bb707256be46cf0">00317</a>     <a class="code" href="namespacephysx.html#9b7fbd746d18bf5b6545713a8d818f41">PxU32</a>   nbPartitions;
<a name="l00318"></a>00318 
<a name="l00319"></a><a class="code" href="classPxSimulationStatistics.html#910e1921a55acda66f5c22ee173eda32">00319</a>     <a class="code" href="classPxSimulationStatistics.html" title="Class used to retrieve statistics for a simulation step.">PxSimulationStatistics</a>() :
<a name="l00320"></a>00320         nbActiveConstraints                 (0),
<a name="l00321"></a>00321         nbActiveDynamicBodies               (0),
<a name="l00322"></a>00322         nbActiveKinematicBodies             (0),
<a name="l00323"></a>00323         nbStaticBodies                      (0),
<a name="l00324"></a>00324         nbDynamicBodies                     (0),
<a name="l00325"></a>00325         nbAggregates                        (0),
<a name="l00326"></a>00326         nbArticulations                     (0),
<a name="l00327"></a>00327         nbAxisSolverConstraints             (0),
<a name="l00328"></a>00328         compressedContactSize               (0),
<a name="l00329"></a>00329         requiredContactConstraintMemory     (0),
<a name="l00330"></a>00330         peakConstraintMemory                (0),
<a name="l00331"></a>00331         nbDiscreteContactPairsTotal         (0),
<a name="l00332"></a>00332         nbDiscreteContactPairsWithCacheHits (0),
<a name="l00333"></a>00333         nbDiscreteContactPairsWithContacts  (0),
<a name="l00334"></a>00334         nbNewPairs                          (0),
<a name="l00335"></a>00335         nbLostPairs                         (0),
<a name="l00336"></a>00336         nbNewTouches                        (0),
<a name="l00337"></a>00337         nbLostTouches                       (0),
<a name="l00338"></a>00338         nbPartitions                        (0),
<a name="l00339"></a>00339         particlesGpuMeshCacheSize           (0),
<a name="l00340"></a>00340         particlesGpuMeshCacheUsed           (0),
<a name="l00341"></a>00341         particlesGpuMeshCacheHitrate        (0.0f)
<a name="l00342"></a>00342     {
<a name="l00343"></a>00343         <span class="keywordflow">for</span>(<a class="code" href="namespacephysx.html#9b7fbd746d18bf5b6545713a8d818f41">PxU32</a> i=0; i &lt; eVOLUME_COUNT; i++)
<a name="l00344"></a>00344         {
<a name="l00345"></a>00345             nbBroadPhaseAdds[i] = 0;
<a name="l00346"></a>00346             nbBroadPhaseRemoves[i] = 0;
<a name="l00347"></a>00347         }
<a name="l00348"></a>00348 
<a name="l00349"></a>00349         <span class="keywordflow">for</span>(<a class="code" href="namespacephysx.html#9b7fbd746d18bf5b6545713a8d818f41">PxU32</a> i=0; i &lt; <a class="code" href="structPxGeometryType.html#efc79f72c4c479192ac19d41a6f30ed5fa28e3dbd2e28f7c0948c35723f42105" title="internal use only!">PxGeometryType::eGEOMETRY_COUNT</a>; i++)
<a name="l00350"></a>00350         {
<a name="l00351"></a>00351             <span class="keywordflow">for</span>(<a class="code" href="namespacephysx.html#9b7fbd746d18bf5b6545713a8d818f41">PxU32</a> j=0; j &lt; PxGeometryType::eGEOMETRY_COUNT; j++)
<a name="l00352"></a>00352             {
<a name="l00353"></a>00353                 nbDiscreteContactPairs[i][j] = 0;
<a name="l00354"></a>00354                 nbModifiedContactPairs[i][j] = 0;
<a name="l00355"></a>00355                 nbCCDPairs[i][j] = 0;
<a name="l00356"></a>00356                 nbTriggerPairs[i][j] = 0;
<a name="l00357"></a>00357             }
<a name="l00358"></a>00358         }
<a name="l00359"></a>00359 
<a name="l00360"></a>00360         <span class="keywordflow">for</span>(<a class="code" href="namespacephysx.html#9b7fbd746d18bf5b6545713a8d818f41">PxU32</a> i=0; i &lt; PxGeometryType::eGEOMETRY_COUNT; i++)
<a name="l00361"></a>00361         {
<a name="l00362"></a>00362             nbShapes[i] = 0;
<a name="l00363"></a>00363         }
<a name="l00364"></a>00364     }
<a name="l00365"></a>00365 
<a name="l00366"></a>00366 
<a name="l00367"></a>00367     <span class="comment">//</span>
<a name="l00368"></a>00368     <span class="comment">// We advise to not access these members directly. Use the provided accessor methods instead.</span>
<a name="l00369"></a>00369     <span class="comment">//</span>
<a name="l00370"></a>00370 <span class="comment">//broadphase:</span>
<a name="l00371"></a><a class="code" href="classPxSimulationStatistics.html#987187f968b0cf29c46c76b2f9ee9db0">00371</a>     <a class="code" href="namespacephysx.html#9b7fbd746d18bf5b6545713a8d818f41">PxU32</a>   nbBroadPhaseAdds[eVOLUME_COUNT];
<a name="l00372"></a><a class="code" href="classPxSimulationStatistics.html#01cbba2e2282e21701466e32640133ec">00372</a>     <a class="code" href="namespacephysx.html#9b7fbd746d18bf5b6545713a8d818f41">PxU32</a>   nbBroadPhaseRemoves[eVOLUME_COUNT];
<a name="l00373"></a>00373 
<a name="l00374"></a>00374 <span class="comment">//collisions:</span>
<a name="l00375"></a><a class="code" href="classPxSimulationStatistics.html#97dfe63f126e504699c8eeda86ebcb28">00375</a>     <a class="code" href="namespacephysx.html#9b7fbd746d18bf5b6545713a8d818f41">PxU32</a>   nbDiscreteContactPairs[<a class="code" href="structPxGeometryType.html#efc79f72c4c479192ac19d41a6f30ed5fa28e3dbd2e28f7c0948c35723f42105" title="internal use only!">PxGeometryType::eGEOMETRY_COUNT</a>][<a class="code" href="structPxGeometryType.html#efc79f72c4c479192ac19d41a6f30ed5fa28e3dbd2e28f7c0948c35723f42105" title="internal use only!">PxGeometryType::eGEOMETRY_COUNT</a>];
<a name="l00376"></a><a class="code" href="classPxSimulationStatistics.html#3a3e17aed5223a69ba3b832f909a6a59">00376</a>     <a class="code" href="namespacephysx.html#9b7fbd746d18bf5b6545713a8d818f41">PxU32</a>   nbCCDPairs[<a class="code" href="structPxGeometryType.html#efc79f72c4c479192ac19d41a6f30ed5fa28e3dbd2e28f7c0948c35723f42105" title="internal use only!">PxGeometryType::eGEOMETRY_COUNT</a>][<a class="code" href="structPxGeometryType.html#efc79f72c4c479192ac19d41a6f30ed5fa28e3dbd2e28f7c0948c35723f42105" title="internal use only!">PxGeometryType::eGEOMETRY_COUNT</a>];
<a name="l00377"></a><a class="code" href="classPxSimulationStatistics.html#ade3e5f9699bfd0858786f9ed6b7d1c9">00377</a>     <a class="code" href="namespacephysx.html#9b7fbd746d18bf5b6545713a8d818f41">PxU32</a>   nbModifiedContactPairs[<a class="code" href="structPxGeometryType.html#efc79f72c4c479192ac19d41a6f30ed5fa28e3dbd2e28f7c0948c35723f42105" title="internal use only!">PxGeometryType::eGEOMETRY_COUNT</a>][<a class="code" href="structPxGeometryType.html#efc79f72c4c479192ac19d41a6f30ed5fa28e3dbd2e28f7c0948c35723f42105" title="internal use only!">PxGeometryType::eGEOMETRY_COUNT</a>];
<a name="l00378"></a><a class="code" href="classPxSimulationStatistics.html#bcb6c70a6d7e5146767b0be74db34cde">00378</a>     <a class="code" href="namespacephysx.html#9b7fbd746d18bf5b6545713a8d818f41">PxU32</a>   nbTriggerPairs[<a class="code" href="structPxGeometryType.html#efc79f72c4c479192ac19d41a6f30ed5fa28e3dbd2e28f7c0948c35723f42105" title="internal use only!">PxGeometryType::eGEOMETRY_COUNT</a>][<a class="code" href="structPxGeometryType.html#efc79f72c4c479192ac19d41a6f30ed5fa28e3dbd2e28f7c0948c35723f42105" title="internal use only!">PxGeometryType::eGEOMETRY_COUNT</a>];
<a name="l00379"></a>00379 
<a name="l00380"></a>00380 <span class="comment">//triangle mesh cache statistics</span>
<a name="l00381"></a><a class="code" href="classPxSimulationStatistics.html#2e79aa5021d7d7bb2f817b144ccecd99">00381</a>     <a class="code" href="namespacephysx.html#9b7fbd746d18bf5b6545713a8d818f41">PxU32</a>   particlesGpuMeshCacheSize;
<a name="l00382"></a><a class="code" href="classPxSimulationStatistics.html#6795433e44469a4068262a7f62f345d2">00382</a>     <a class="code" href="namespacephysx.html#9b7fbd746d18bf5b6545713a8d818f41">PxU32</a>   particlesGpuMeshCacheUsed;
<a name="l00383"></a><a class="code" href="classPxSimulationStatistics.html#a720bf6ec2e4395b983f8bebbde44400">00383</a>     <a class="code" href="namespacephysx.html#727d2d8426e2a21ebbc522fa65c3f97a">PxReal</a>  particlesGpuMeshCacheHitrate;
<a name="l00384"></a>00384 };
<a name="l00385"></a>00385 
<a name="l00386"></a>00386 <span class="preprocessor">#if !PX_DOXYGEN</span>
<a name="l00387"></a>00387 <span class="preprocessor"></span>} <span class="comment">// namespace physx</span>
<a name="l00388"></a>00388 <span class="preprocessor">#endif</span>
<a name="l00389"></a>00389 <span class="preprocessor"></span>
<a name="l00391"></a>00391 <span class="preprocessor">#endif</span>
</pre></div></div>

<hr style="width: 100%; height: 2px;"><br>
Copyright &copy; 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>