aboutsummaryrefslogtreecommitdiff
path: root/PhysX_3.4/Documentation/PhysXAPI/files/classPxVehicleDrive4W.html
blob: da92f7d294f21b94e044a2b29fdf47154fa20673 (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
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
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
<html>
	<head>
		<title>NVIDIA(R) PhysX(R) SDK 3.4 API Reference: PxVehicleDrive4W Class 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> &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 -->
<div class="contents">
<h1>PxVehicleDrive4W Class Reference<br>
<small>
[<a class="el" href="group__vehicle.html">Vehicle</a>]</small>
</h1><!-- doxytag: class="PxVehicleDrive4W" --><!-- doxytag: inherits="PxVehicleDrive" -->Data structure with instanced dynamics data and configuration data of a vehicle with up to 4 driven wheels and up to 16 non-driven wheels.  
<a href="#_details">More...</a>
<p>
<code>#include &lt;<a class="el" href="PxVehicleDrive4W_8h-source.html">PxVehicleDrive4W.h</a>&gt;</code>
<p>
<div class="dynheader">
Inheritance diagram for PxVehicleDrive4W:</div>
<div class="dynsection">
<p><center><img src="classPxVehicleDrive4W__inherit__graph.png" border="0" usemap="#PxVehicleDrive4W__inherit__map" alt="Inheritance graph"></center>
<map name="PxVehicleDrive4W__inherit__map">
<area shape="rect" href="classPxVehicleDrive.html" title="A complete vehicle with instance dynamics data and configuration data for wheels..." alt="PxVehicleDrive" coords="17,155,113,176"><area shape="rect" href="classPxVehicleWheels.html" title="Data structure with instanced dynamics data and configuration data of a vehicle with..." alt="PxVehicleWheels" coords="9,86,121,107"><area shape="rect" href="classPxBase.html" title="Base class for objects that can be members of a PxCollection." alt="PxBase" coords="37,16,93,38"></map>
<center><font size="2">[<a target="top" href="graph_legend.html">legend</a>]</font></center></div>
<div class="dynheader">
Collaboration diagram for PxVehicleDrive4W:</div>
<div class="dynsection">
<p><center><img src="classPxVehicleDrive4W__coll__graph.png" border="0" usemap="#PxVehicleDrive4W__coll__map" alt="Collaboration graph"></center>
<map name="PxVehicleDrive4W__coll__map">
<area shape="rect" href="classPxVehicleDrive.html" title="A complete vehicle with instance dynamics data and configuration data for wheels..." alt="PxVehicleDrive" coords="2183,240,2279,261"><area shape="rect" href="classPxVehicleWheels.html" title="Data structure with instanced dynamics data and configuration data of a vehicle with..." alt="PxVehicleWheels" coords="1788,140,1900,161"><area shape="rect" href="classPxBase.html" title="Base class for objects that can be members of a PxCollection." alt="PxBase" coords="389,37,445,59"><area shape="rect" href="classPxActor.html" title="PxActor is the base class for the main simulation objects in the physics SDK." alt="PxActor" coords="497,63,551,84"><area shape="rect" href="classPxFlags.html" title="PxFlags\&lt; PxBaseFlag::Enum, PxU16 \&gt;" alt="PxFlags\&lt; PxBaseFlag::Enum, PxU16 \&gt;" coords="17,37,255,59"><area shape="rect" href="classPxVehicleWheelsSimData.html" title="Data structure describing configuration data of a vehicle with up to 20 wheels." alt="PxVehicleWheelsSimData" coords="1407,140,1569,161"><area shape="rect" href="classPxVehicleTireLoadFilterData.html" title="Tire load variation can be strongly dependent on the time-step so it is a good idea..." alt="PxVehicleTireLoadFilterData" coords="888,133,1061,155"><area shape="rect" href="classPxVehicleAntiRollBarData.html" title="PxVehicleAntiRollBarData" alt="PxVehicleAntiRollBarData" coords="896,203,1053,224"><area shape="rect" href="classPxRigidDynamic.html" title="PxRigidDynamic represents a dynamic rigid simulation object in the physics SDK." alt="PxRigidDynamic" coords="1436,69,1540,91"><area shape="rect" href="classPxRigidBody.html" title="PxRigidBody is a base class shared between dynamic rigid body objects." alt="PxRigidBody" coords="932,65,1017,87"><area shape="rect" href="classPxRigidActor.html" title="PxRigidActor represents a base class shared between dynamic and static rigid bodies..." alt="PxRigidActor" coords="601,64,684,85"><area shape="rect" href="classPxVehicleWheelsDynData.html" title="Data structure with instanced dynamics data for wheels." alt="PxVehicleWheelsDynData" coords="1408,209,1568,231"><area shape="rect" href="classPxVehicleDriveDynData.html" title="Data structure with instanced dynamics data for vehicle with engine, clutch, gears..." alt="PxVehicleDriveDynData" coords="1771,240,1917,261"><area shape="rect" href="classPxVehicleDriveSimData4W.html" title="Data structure describing the drive model components of a vehicle with up to 4 driven..." alt="PxVehicleDriveSimData4W" coords="2148,388,2313,409"><area shape="rect" href="classPxVehicleDriveSimData.html" title="Data structure describing non-wheel configuration data of a vehicle that has engine..." alt="PxVehicleDriveSimData" coords="1771,348,1917,369"><area shape="rect" href="classPxVehicleGearsData.html" title="PxVehicleGearsData" alt="PxVehicleGearsData" coords="1423,279,1553,300"><area shape="rect" href="classPxVehicleClutchData.html" title="PxVehicleClutchData" alt="PxVehicleClutchData" coords="1424,348,1552,369"><area shape="rect" href="classPxVehicleEngineData.html" title="PxVehicleEngineData" alt="PxVehicleEngineData" coords="1420,417,1556,439"><area shape="rect" href="classPxFixedSizeLookupTable.html" title="PxFixedSizeLookupTable\&lt; eMAX_NB_ENGINE_TORQUE_CURVE_ENTRIES \&gt;" alt="PxFixedSizeLookupTable\&lt; eMAX_NB_ENGINE_TORQUE_CURVE_ENTRIES \&gt;" coords="735,417,1215,439"><area shape="rect" href="classPxVehicleAutoBoxData.html" title="PxVehicleAutoBoxData" alt="PxVehicleAutoBoxData" coords="1417,487,1559,508"><area shape="rect" href="classPxVehicleDifferential4WData.html" title="PxVehicleDifferential4WData" alt="PxVehicleDifferential4WData" coords="1757,400,1931,421"><area shape="rect" href="classPxVehicleAckermannGeometryData.html" title="PxVehicleAckermannGeometryData" alt="PxVehicleAckermannGeometryData" coords="1736,469,1952,491"></map>
<center><font size="2">[<a target="top" href="graph_legend.html">legend</a>]</font></center></div>

<p>
<a href="classPxVehicleDrive4W-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">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classPxVehicleDrive4W.html#86d1716ae72d4c0627d531fcb3f93310">free</a> ()</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Deallocate a <a class="el" href="classPxVehicleDrive4W.html" title="Data structure with instanced dynamics data and configuration data of a vehicle with...">PxVehicleDrive4W</a> instance.  <a href="#86d1716ae72d4c0627d531fcb3f93310"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classPxVehicleDrive4W.html#d6740fedd4d8d026f8750e7bd601b76a">setup</a> (<a class="el" href="classPxPhysics.html">PxPhysics</a> *physics, <a class="el" href="classPxRigidDynamic.html">PxRigidDynamic</a> *vehActor, const <a class="el" href="classPxVehicleWheelsSimData.html">PxVehicleWheelsSimData</a> &amp;wheelsData, const <a class="el" href="classPxVehicleDriveSimData4W.html">PxVehicleDriveSimData4W</a> &amp;driveData, const <a class="el" href="group__foundation.html#gcce5749db3dcfb916e98c253374264ed">PxU32</a> nbNonDrivenWheels)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Set up a vehicle using simulation data for the wheels and drive model.  <a href="#d6740fedd4d8d026f8750e7bd601b76a"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classPxVehicleDrive4W.html#37811fb8cf89260d45276a97b767acce">setToRestState</a> ()</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Set a vehicle to its rest state. Aside from the rigid body transform, this will set the vehicle and rigid body to the state they were in immediately after setup or create.  <a href="#37811fb8cf89260d45276a97b767acce"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classPxVehicleDrive4W.html#6dc419ee085a03afbc970c2452a4b993">PxVehicleDrive4W</a> (<a class="el" href="classPxFlags.html">PxBaseFlags</a> baseFlags)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual const char *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classPxVehicleDrive4W.html#f869349c277182e9c43078d19580dc81">getConcreteTypeName</a> () const </td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns string name of dynamic type.  <a href="#f869349c277182e9c43078d19580dc81"></a><br></td></tr>
<tr><td colspan="2"><br><h2>Static Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">static <a class="el" href="classPxVehicleDrive4W.html">PxVehicleDrive4W</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classPxVehicleDrive4W.html#ff7cf39247ccaaa2c90ded69ae846a00">allocate</a> (const <a class="el" href="group__foundation.html#gcce5749db3dcfb916e98c253374264ed">PxU32</a> nbWheels)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Allocate a <a class="el" href="classPxVehicleDrive4W.html" title="Data structure with instanced dynamics data and configuration data of a vehicle with...">PxVehicleDrive4W</a> instance for a 4WDrive vehicle with nbWheels (= 4 + number of un-driven wheels).  <a href="#ff7cf39247ccaaa2c90ded69ae846a00"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">static <a class="el" href="classPxVehicleDrive4W.html">PxVehicleDrive4W</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classPxVehicleDrive4W.html#7ca9f53d0050273bd2130e06cdb4ae1d">create</a> (<a class="el" href="classPxPhysics.html">PxPhysics</a> *physics, <a class="el" href="classPxRigidDynamic.html">PxRigidDynamic</a> *vehActor, const <a class="el" href="classPxVehicleWheelsSimData.html">PxVehicleWheelsSimData</a> &amp;wheelsData, const <a class="el" href="classPxVehicleDriveSimData4W.html">PxVehicleDriveSimData4W</a> &amp;driveData, const <a class="el" href="group__foundation.html#gcce5749db3dcfb916e98c253374264ed">PxU32</a> nbNonDrivenWheels)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Allocate and set up a vehicle using simulation data for the wheels and drive model.  <a href="#7ca9f53d0050273bd2130e06cdb4ae1d"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">static <a class="el" href="classPxVehicleDrive4W.html">PxVehicleDrive4W</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classPxVehicleDrive4W.html#bf68025192ea820d1e9b92c42f083173">createObject</a> (PxU8 *&amp;address, <a class="el" href="classPxDeserializationContext.html">PxDeserializationContext</a> &amp;context)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">static void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classPxVehicleDrive4W.html#2e380dc9ed111550b8919f3703137450">getBinaryMetaData</a> (<a class="el" href="classPxOutputStream.html">PxOutputStream</a> &amp;stream)</td></tr>

<tr><td colspan="2"><br><h2>Public Attributes</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classPxVehicleDriveSimData4W.html">PxVehicleDriveSimData4W</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classPxVehicleDrive4W.html#a0f73e6c124110e08368311d1cfa623c">mDriveSimData</a></td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Simulation data that describes the configuration of the vehicle's drive model.  <a href="#a0f73e6c124110e08368311d1cfa623c"></a><br></td></tr>
<tr><td colspan="2"><br><h2>Protected Member Functions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classPxVehicleDrive4W.html#c829d935d067980fd6cda927dbdb5a0f">PxVehicleDrive4W</a> ()</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classPxVehicleDrive4W.html#a0e081490ed4399c07e7ff9e212ce81d">~PxVehicleDrive4W</a> ()</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classPxVehicleDrive4W.html#312ca7d7afa7961e986347f5681e3144">isKindOf</a> (const char *name) const </td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns whether a given type name matches with the type of this instance.  <a href="#312ca7d7afa7961e986347f5681e3144"></a><br></td></tr>
<tr><td colspan="2"><br><h2>Private Member Functions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classPxVehicleDrive4W.html#891dba7a4efe6043cc75622585c207c9">isValid</a> () const </td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Test if the instanced dynamics and configuration data has legal values.  <a href="#891dba7a4efe6043cc75622585c207c9"></a><br></td></tr>
<tr><td colspan="2"><br><h2>Friends</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">class&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classPxVehicleDrive4W.html#a960a335429c764ff7e258a0ec3ab5f0">PxVehicleUpdate</a></td></tr>

</table>
<hr><a name="_details"></a><h2>Detailed Description</h2>
Data structure with instanced dynamics data and configuration data of a vehicle with up to 4 driven wheels and up to 16 non-driven wheels. <hr><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" name="c829d935d067980fd6cda927dbdb5a0f"></a><!-- doxytag: member="PxVehicleDrive4W::PxVehicleDrive4W" ref="c829d935d067980fd6cda927dbdb5a0f" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">PxVehicleDrive4W::PxVehicleDrive4W           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [protected]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>

</div>
</div><p>
<a class="anchor" name="a0e081490ed4399c07e7ff9e212ce81d"></a><!-- doxytag: member="PxVehicleDrive4W::~PxVehicleDrive4W" ref="a0e081490ed4399c07e7ff9e212ce81d" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">PxVehicleDrive4W::~PxVehicleDrive4W           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [inline, protected]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>

</div>
</div><p>
<a class="anchor" name="6dc419ee085a03afbc970c2452a4b993"></a><!-- doxytag: member="PxVehicleDrive4W::PxVehicleDrive4W" ref="6dc419ee085a03afbc970c2452a4b993" args="(PxBaseFlags baseFlags)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">PxVehicleDrive4W::PxVehicleDrive4W           </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classPxFlags.html">PxBaseFlags</a>&nbsp;</td>
          <td class="paramname"> <em>baseFlags</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>

</div>
</div><p>
<hr><h2>Member Function Documentation</h2>
<a class="anchor" name="ff7cf39247ccaaa2c90ded69ae846a00"></a><!-- doxytag: member="PxVehicleDrive4W::allocate" ref="ff7cf39247ccaaa2c90ded69ae846a00" args="(const PxU32 nbWheels)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="classPxVehicleDrive4W.html">PxVehicleDrive4W</a>* PxVehicleDrive4W::allocate           </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="group__foundation.html#gcce5749db3dcfb916e98c253374264ed">PxU32</a>&nbsp;</td>
          <td class="paramname"> <em>nbWheels</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Allocate a <a class="el" href="classPxVehicleDrive4W.html" title="Data structure with instanced dynamics data and configuration data of a vehicle with...">PxVehicleDrive4W</a> instance for a 4WDrive vehicle with nbWheels (= 4 + number of un-driven wheels). 
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"><tt>[in]</tt>&nbsp;</td><td valign="top"><em>nbWheels</em>&nbsp;</td><td>is the number of vehicle wheels (= 4 + number of un-driven wheels)</td></tr>
  </table>
</dl>
<dl class="return" compact><dt><b>Returns:</b></dt><dd>The instantiated vehicle.</dd></dl>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="classPxVehicleDrive4W.html#86d1716ae72d4c0627d531fcb3f93310" title="Deallocate a PxVehicleDrive4W instance.">free</a>, <a class="el" href="classPxVehicleDrive4W.html#d6740fedd4d8d026f8750e7bd601b76a" title="Set up a vehicle using simulation data for the wheels and drive model.">setup</a> </dd></dl>

</div>
</div><p>
<a class="anchor" name="7ca9f53d0050273bd2130e06cdb4ae1d"></a><!-- doxytag: member="PxVehicleDrive4W::create" ref="7ca9f53d0050273bd2130e06cdb4ae1d" args="(PxPhysics *physics, PxRigidDynamic *vehActor, const PxVehicleWheelsSimData &amp;wheelsData, const PxVehicleDriveSimData4W &amp;driveData, const PxU32 nbNonDrivenWheels)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="classPxVehicleDrive4W.html">PxVehicleDrive4W</a>* PxVehicleDrive4W::create           </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classPxPhysics.html">PxPhysics</a> *&nbsp;</td>
          <td class="paramname"> <em>physics</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classPxRigidDynamic.html">PxRigidDynamic</a> *&nbsp;</td>
          <td class="paramname"> <em>vehActor</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="classPxVehicleWheelsSimData.html">PxVehicleWheelsSimData</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>wheelsData</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="classPxVehicleDriveSimData4W.html">PxVehicleDriveSimData4W</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>driveData</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="group__foundation.html#gcce5749db3dcfb916e98c253374264ed">PxU32</a>&nbsp;</td>
          <td class="paramname"> <em>nbNonDrivenWheels</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Allocate and set up a vehicle using simulation data for the wheels and drive model. 
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"><tt>[in]</tt>&nbsp;</td><td valign="top"><em>physics</em>&nbsp;</td><td>is a <a class="el" href="classPxPhysics.html" title="Abstract singleton factory class used for instancing objects in the Physics SDK.">PxPhysics</a> instance that is needed to create special vehicle constraints that are maintained by the vehicle. </td></tr>
    <tr><td valign="top"><tt>[in]</tt>&nbsp;</td><td valign="top"><em>vehActor</em>&nbsp;</td><td>is a <a class="el" href="classPxRigidDynamic.html" title="PxRigidDynamic represents a dynamic rigid simulation object in the physics SDK.">PxRigidDynamic</a> instance that is used to represent the vehicle in the PhysX SDK. </td></tr>
    <tr><td valign="top"><tt>[in]</tt>&nbsp;</td><td valign="top"><em>wheelsData</em>&nbsp;</td><td>describes the configuration of all suspension/tires/wheels of the vehicle. The vehicle instance takes a copy of this data. </td></tr>
    <tr><td valign="top"><tt>[in]</tt>&nbsp;</td><td valign="top"><em>driveData</em>&nbsp;</td><td>describes the properties of the vehicle's drive model (gears/engine/clutch/differential/autobox). The vehicle instance takes a copy of this data. </td></tr>
    <tr><td valign="top"><tt>[in]</tt>&nbsp;</td><td valign="top"><em>nbNonDrivenWheels</em>&nbsp;</td><td>is the number of wheels on the vehicle that cannot be connected to the differential (= numWheels - 4). </td></tr>
  </table>
</dl>
<dl class="note" compact><dt><b>Note:</b></dt><dd>It is assumed that the first shapes of the actor are the wheel shapes, followed by the chassis shapes. To break this assumption use <a class="el" href="classPxVehicleWheelsSimData.html#07988e7e4bfd905ae1dd182ef3a1cab1" title="Set mapping between wheel id and position of corresponding wheel shape in the list...">PxVehicleWheelsSimData::setWheelShapeMapping</a>. <p>
wheelsData must contain data for at least 4 wheels. Unwanted wheels can be disabled with <a class="el" href="classPxVehicleWheelsSimData.html#98eb5965f7c02a507ae7979cea8b54c0" title="Disable a wheel so that zero suspension forces and zero tire forces are applied to...">PxVehicleWheelsSimData::disableWheel</a> after calling setup. </dd></dl>
<dl class="return" compact><dt><b>Returns:</b></dt><dd>The instantiated vehicle. </dd></dl>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="classPxVehicleDrive4W.html#ff7cf39247ccaaa2c90ded69ae846a00" title="Allocate a PxVehicleDrive4W instance for a 4WDrive vehicle with nbWheels (= 4 + number...">allocate</a>, <a class="el" href="classPxVehicleDrive4W.html#86d1716ae72d4c0627d531fcb3f93310" title="Deallocate a PxVehicleDrive4W instance.">free</a>, <a class="el" href="classPxVehicleDrive4W.html#37811fb8cf89260d45276a97b767acce" title="Set a vehicle to its rest state. Aside from the rigid body transform, this will set...">setToRestState</a>, <a class="el" href="classPxVehicleWheelsSimData.html#07988e7e4bfd905ae1dd182ef3a1cab1" title="Set mapping between wheel id and position of corresponding wheel shape in the list...">PxVehicleWheelsSimData::setWheelShapeMapping</a> </dd></dl>

</div>
</div><p>
<a class="anchor" name="bf68025192ea820d1e9b92c42f083173"></a><!-- doxytag: member="PxVehicleDrive4W::createObject" ref="bf68025192ea820d1e9b92c42f083173" args="(PxU8 *&amp;address, PxDeserializationContext &amp;context)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="classPxVehicleDrive4W.html">PxVehicleDrive4W</a>* PxVehicleDrive4W::createObject           </td>
          <td>(</td>
          <td class="paramtype">PxU8 *&amp;&nbsp;</td>
          <td class="paramname"> <em>address</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classPxDeserializationContext.html">PxDeserializationContext</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>context</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>

</div>
</div><p>
<a class="anchor" name="86d1716ae72d4c0627d531fcb3f93310"></a><!-- doxytag: member="PxVehicleDrive4W::free" ref="86d1716ae72d4c0627d531fcb3f93310" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void PxVehicleDrive4W::free           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Deallocate a <a class="el" href="classPxVehicleDrive4W.html" title="Data structure with instanced dynamics data and configuration data of a vehicle with...">PxVehicleDrive4W</a> instance. 
<p>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="classPxVehicleDrive4W.html#ff7cf39247ccaaa2c90ded69ae846a00" title="Allocate a PxVehicleDrive4W instance for a 4WDrive vehicle with nbWheels (= 4 + number...">allocate</a> </dd></dl>

<p>Reimplemented from <a class="el" href="classPxVehicleDrive.html#2af80cf3e4d767f1710a8f2e244cb9d5">PxVehicleDrive</a>.</p>

</div>
</div><p>
<a class="anchor" name="2e380dc9ed111550b8919f3703137450"></a><!-- doxytag: member="PxVehicleDrive4W::getBinaryMetaData" ref="2e380dc9ed111550b8919f3703137450" args="(PxOutputStream &amp;stream)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static void PxVehicleDrive4W::getBinaryMetaData           </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classPxOutputStream.html">PxOutputStream</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>stream</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>

<p>Reimplemented from <a class="el" href="classPxVehicleDrive.html#470aa1489a7b10ac9a1c13ee0d374633">PxVehicleDrive</a>.</p>

</div>
</div><p>
<a class="anchor" name="f869349c277182e9c43078d19580dc81"></a><!-- doxytag: member="PxVehicleDrive4W::getConcreteTypeName" ref="f869349c277182e9c43078d19580dc81" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual const char* PxVehicleDrive4W::getConcreteTypeName           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td> const<code> [inline, virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Returns string name of dynamic type. 
<p>
<dl class="return" compact><dt><b>Returns:</b></dt><dd>Class name of most derived type of this object. </dd></dl>

<p>Reimplemented from <a class="el" href="classPxVehicleDrive.html#17195d04ae142a150f66d4b8fdee87ed">PxVehicleDrive</a>.</p>

</div>
</div><p>
<a class="anchor" name="312ca7d7afa7961e986347f5681e3144"></a><!-- doxytag: member="PxVehicleDrive4W::isKindOf" ref="312ca7d7afa7961e986347f5681e3144" args="(const char *name) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual bool PxVehicleDrive4W::isKindOf           </td>
          <td>(</td>
          <td class="paramtype">const char *&nbsp;</td>
          <td class="paramname"> <em>superClass</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td> const<code> [inline, protected, virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Returns whether a given type name matches with the type of this instance. 
<p>

<p>Reimplemented from <a class="el" href="classPxVehicleDrive.html#19c6167aadc9202fcb1bc59c376409c1">PxVehicleDrive</a>.</p>

<p>References <a class="el" href="PxBase_8h-source.html#l00178">PxBase::isKindOf()</a>.</p>

</div>
</div><p>
<a class="anchor" name="891dba7a4efe6043cc75622585c207c9"></a><!-- doxytag: member="PxVehicleDrive4W::isValid" ref="891dba7a4efe6043cc75622585c207c9" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool PxVehicleDrive4W::isValid           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td> const<code> [private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Test if the instanced dynamics and configuration data has legal values. 
<p>

<p>Reimplemented from <a class="el" href="classPxVehicleDrive.html#95ec8411c57f19eeac7bf0677f00c396">PxVehicleDrive</a>.</p>

</div>
</div><p>
<a class="anchor" name="37811fb8cf89260d45276a97b767acce"></a><!-- doxytag: member="PxVehicleDrive4W::setToRestState" ref="37811fb8cf89260d45276a97b767acce" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void PxVehicleDrive4W::setToRestState           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Set a vehicle to its rest state. Aside from the rigid body transform, this will set the vehicle and rigid body to the state they were in immediately after setup or create. 
<p>
<dl class="note" compact><dt><b>Note:</b></dt><dd>Calling setToRestState invalidates the cached raycast hit planes under each wheel meaning that suspension line raycasts need to be performed at least once with PxVehicleSuspensionRaycasts before calling PxVehicleUpdates. </dd></dl>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="classPxVehicleDrive4W.html#d6740fedd4d8d026f8750e7bd601b76a" title="Set up a vehicle using simulation data for the wheels and drive model.">setup</a>, <a class="el" href="classPxVehicleDrive4W.html#7ca9f53d0050273bd2130e06cdb4ae1d" title="Allocate and set up a vehicle using simulation data for the wheels and drive model...">create</a>, <a class="el" href="group__vehicle.html#g2020b9fcb5092e2a2d81e82ba7461dfd" title="Perform raycasts for all suspension lines for all vehicles.">PxVehicleSuspensionRaycasts</a>, <a class="el" href="group__vehicle.html#g47aff43683966ca9d1118a1bf4a1f5c2" title="Update an array of vehicles by either applying an acceleration to the rigid body...">PxVehicleUpdates</a> </dd></dl>

<p>Reimplemented from <a class="el" href="classPxVehicleDrive.html#a5fdf730d2b90e2fdbd2dd34d2a01765">PxVehicleDrive</a>.</p>

</div>
</div><p>
<a class="anchor" name="d6740fedd4d8d026f8750e7bd601b76a"></a><!-- doxytag: member="PxVehicleDrive4W::setup" ref="d6740fedd4d8d026f8750e7bd601b76a" args="(PxPhysics *physics, PxRigidDynamic *vehActor, const PxVehicleWheelsSimData &amp;wheelsData, const PxVehicleDriveSimData4W &amp;driveData, const PxU32 nbNonDrivenWheels)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void PxVehicleDrive4W::setup           </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classPxPhysics.html">PxPhysics</a> *&nbsp;</td>
          <td class="paramname"> <em>physics</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classPxRigidDynamic.html">PxRigidDynamic</a> *&nbsp;</td>
          <td class="paramname"> <em>vehActor</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="classPxVehicleWheelsSimData.html">PxVehicleWheelsSimData</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>wheelsData</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="classPxVehicleDriveSimData4W.html">PxVehicleDriveSimData4W</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>driveData</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="group__foundation.html#gcce5749db3dcfb916e98c253374264ed">PxU32</a>&nbsp;</td>
          <td class="paramname"> <em>nbNonDrivenWheels</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Set up a vehicle using simulation data for the wheels and drive model. 
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"><tt>[in]</tt>&nbsp;</td><td valign="top"><em>physics</em>&nbsp;</td><td>is a <a class="el" href="classPxPhysics.html" title="Abstract singleton factory class used for instancing objects in the Physics SDK.">PxPhysics</a> instance that is needed to create special vehicle constraints that are maintained by the vehicle. </td></tr>
    <tr><td valign="top"><tt>[in]</tt>&nbsp;</td><td valign="top"><em>vehActor</em>&nbsp;</td><td>is a <a class="el" href="classPxRigidDynamic.html" title="PxRigidDynamic represents a dynamic rigid simulation object in the physics SDK.">PxRigidDynamic</a> instance that is used to represent the vehicle in the PhysX SDK. </td></tr>
    <tr><td valign="top"><tt>[in]</tt>&nbsp;</td><td valign="top"><em>wheelsData</em>&nbsp;</td><td>describes the configuration of all suspension/tires/wheels of the vehicle. The vehicle instance takes a copy of this data. </td></tr>
    <tr><td valign="top"><tt>[in]</tt>&nbsp;</td><td valign="top"><em>driveData</em>&nbsp;</td><td>describes the properties of the vehicle's drive model (gears/engine/clutch/differential/autobox). The vehicle instance takes a copy of this data. </td></tr>
    <tr><td valign="top"><tt>[in]</tt>&nbsp;</td><td valign="top"><em>nbNonDrivenWheels</em>&nbsp;</td><td>is the number of wheels on the vehicle that cannot be connected to the differential (= numWheels - 4). </td></tr>
  </table>
</dl>
<dl class="note" compact><dt><b>Note:</b></dt><dd>It is assumed that the first shapes of the actor are the wheel shapes, followed by the chassis shapes. To break this assumption use <a class="el" href="classPxVehicleWheelsSimData.html#07988e7e4bfd905ae1dd182ef3a1cab1" title="Set mapping between wheel id and position of corresponding wheel shape in the list...">PxVehicleWheelsSimData::setWheelShapeMapping</a>. <p>
wheelsData must contain data for at least 4 wheels. Unwanted wheels can be disabled with <a class="el" href="classPxVehicleWheelsSimData.html#98eb5965f7c02a507ae7979cea8b54c0" title="Disable a wheel so that zero suspension forces and zero tire forces are applied to...">PxVehicleWheelsSimData::disableWheel</a> after calling setup. </dd></dl>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="classPxVehicleDrive4W.html#ff7cf39247ccaaa2c90ded69ae846a00" title="Allocate a PxVehicleDrive4W instance for a 4WDrive vehicle with nbWheels (= 4 + number...">allocate</a>, <a class="el" href="classPxVehicleDrive4W.html#86d1716ae72d4c0627d531fcb3f93310" title="Deallocate a PxVehicleDrive4W instance.">free</a>, <a class="el" href="classPxVehicleDrive4W.html#37811fb8cf89260d45276a97b767acce" title="Set a vehicle to its rest state. Aside from the rigid body transform, this will set...">setToRestState</a>, <a class="el" href="classPxVehicleWheelsSimData.html#07988e7e4bfd905ae1dd182ef3a1cab1" title="Set mapping between wheel id and position of corresponding wheel shape in the list...">PxVehicleWheelsSimData::setWheelShapeMapping</a> </dd></dl>

</div>
</div><p>
<hr><h2>Friends And Related Function Documentation</h2>
<a class="anchor" name="a960a335429c764ff7e258a0ec3ab5f0"></a><!-- doxytag: member="PxVehicleDrive4W::PxVehicleUpdate" ref="a960a335429c764ff7e258a0ec3ab5f0" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">friend class PxVehicleUpdate<code> [friend]</code>          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>

<p>Reimplemented from <a class="el" href="classPxVehicleDrive.html#a960a335429c764ff7e258a0ec3ab5f0">PxVehicleDrive</a>.</p>

</div>
</div><p>
<hr><h2>Member Data Documentation</h2>
<a class="anchor" name="a0f73e6c124110e08368311d1cfa623c"></a><!-- doxytag: member="PxVehicleDrive4W::mDriveSimData" ref="a0f73e6c124110e08368311d1cfa623c" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classPxVehicleDriveSimData4W.html">PxVehicleDriveSimData4W</a> <a class="el" href="classPxVehicleDrive4W.html#a0f73e6c124110e08368311d1cfa623c">PxVehicleDrive4W::mDriveSimData</a>          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Simulation data that describes the configuration of the vehicle's drive model. 
<p>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="classPxVehicleDrive4W.html#d6740fedd4d8d026f8750e7bd601b76a" title="Set up a vehicle using simulation data for the wheels and drive model.">setup</a>, <a class="el" href="classPxVehicleDrive4W.html#7ca9f53d0050273bd2130e06cdb4ae1d" title="Allocate and set up a vehicle using simulation data for the wheels and drive model...">create</a> </dd></dl>

</div>
</div><p>
<hr>The documentation for this class was generated from the following file:<ul>
<li><a class="el" href="PxVehicleDrive4W_8h-source.html">PxVehicleDrive4W.h</a></ul>
</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>