aboutsummaryrefslogtreecommitdiff
path: root/PhysX_3.4/Documentation/PhysXAPI/files/classPxRigidBodyExt.html
blob: 3cdc46df4b9ddc3c3fa3c72f54a92398ea9fd331 (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
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
<html>
	<head>
		<title>NVIDIA(R) PhysX(R) SDK 3.4 API Reference: PxRigidBodyExt 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>PxRigidBodyExt Class Reference<br>
<small>
[<a class="el" href="group__extensions.html">Extensions</a>]</small>
</h1><!-- doxytag: class="PxRigidBodyExt" -->utility functions for use with <a class="el" href="classPxRigidBody.html" title="PxRigidBody is a base class shared between dynamic rigid body objects.">PxRigidBody</a> and subclasses  
<a href="#_details">More...</a>
<p>
<code>#include &lt;<a class="el" href="PxRigidBodyExt_8h-source.html">PxRigidBodyExt.h</a>&gt;</code>
<p>

<p>
<a href="classPxRigidBodyExt-members.html">List of all members.</a><table border="0" cellpadding="0" cellspacing="0">
<tr><td></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 bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classPxRigidBodyExt.html#769be90cdb138897ce426aa04ac0a1e7">updateMassAndInertia</a> (<a class="el" href="classPxRigidBody.html">PxRigidBody</a> &amp;body, const PxReal *shapeDensities, <a class="el" href="group__foundation.html#gcce5749db3dcfb916e98c253374264ed">PxU32</a> shapeDensityCount, const <a class="el" href="classPxVec3.html">PxVec3</a> *massLocalPose=NULL, bool includeNonSimShapes=false)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Computation of mass properties for a rigid body actor.  <a href="#769be90cdb138897ce426aa04ac0a1e7"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">static bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classPxRigidBodyExt.html#3799da4d9faefd65517222250bacf33a">updateMassAndInertia</a> (<a class="el" href="classPxRigidBody.html">PxRigidBody</a> &amp;body, PxReal density, const <a class="el" href="classPxVec3.html">PxVec3</a> *massLocalPose=NULL, bool includeNonSimShapes=false)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Computation of mass properties for a rigid body actor.  <a href="#3799da4d9faefd65517222250bacf33a"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">static bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classPxRigidBodyExt.html#b8f6af57a0fde875c41e5d747dec49fb">setMassAndUpdateInertia</a> (<a class="el" href="classPxRigidBody.html">PxRigidBody</a> &amp;body, const PxReal *shapeMasses, <a class="el" href="group__foundation.html#gcce5749db3dcfb916e98c253374264ed">PxU32</a> shapeMassCount, const <a class="el" href="classPxVec3.html">PxVec3</a> *massLocalPose=NULL, bool includeNonSimShapes=false)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Computation of mass properties for a rigid body actor.  <a href="#b8f6af57a0fde875c41e5d747dec49fb"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">static bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classPxRigidBodyExt.html#33cb51d74c87d8b6f8a33c7e3580372d">setMassAndUpdateInertia</a> (<a class="el" href="classPxRigidBody.html">PxRigidBody</a> &amp;body, PxReal mass, const <a class="el" href="classPxVec3.html">PxVec3</a> *massLocalPose=NULL, bool includeNonSimShapes=false)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Computation of mass properties for a rigid body actor.  <a href="#33cb51d74c87d8b6f8a33c7e3580372d"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">static <a class="el" href="classPxMassProperties.html">PxMassProperties</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classPxRigidBodyExt.html#44f1a4248b259bc96ff5dfb233860b4d">computeMassPropertiesFromShapes</a> (const <a class="el" href="classPxShape.html">PxShape</a> *const *shapes, <a class="el" href="group__foundation.html#gcce5749db3dcfb916e98c253374264ed">PxU32</a> shapeCount)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Compute the mass, inertia tensor and center of mass from a list of shapes.  <a href="#44f1a4248b259bc96ff5dfb233860b4d"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">static void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classPxRigidBodyExt.html#0e3a81ec184fe8981dbbcebff6da1f61">addForceAtPos</a> (<a class="el" href="classPxRigidBody.html">PxRigidBody</a> &amp;body, const <a class="el" href="classPxVec3.html">PxVec3</a> &amp;force, const <a class="el" href="classPxVec3.html">PxVec3</a> &amp;pos, <a class="el" href="structPxForceMode.html#adaaafefe0478d829b816154c676e545">PxForceMode::Enum</a> mode=PxForceMode::eFORCE, bool wakeup=true)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Applies a force (or impulse) defined in the global coordinate frame, acting at a particular point in global coordinates, to the actor.  <a href="#0e3a81ec184fe8981dbbcebff6da1f61"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">static void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classPxRigidBodyExt.html#732d9246bc10aef4aa76f4a6c941c7c5">addForceAtLocalPos</a> (<a class="el" href="classPxRigidBody.html">PxRigidBody</a> &amp;body, const <a class="el" href="classPxVec3.html">PxVec3</a> &amp;force, const <a class="el" href="classPxVec3.html">PxVec3</a> &amp;pos, <a class="el" href="structPxForceMode.html#adaaafefe0478d829b816154c676e545">PxForceMode::Enum</a> mode=PxForceMode::eFORCE, bool wakeup=true)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Applies a force (or impulse) defined in the global coordinate frame, acting at a particular point in local coordinates, to the actor.  <a href="#732d9246bc10aef4aa76f4a6c941c7c5"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">static void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classPxRigidBodyExt.html#0df8ee24ebf8b840909bdb09c8d90717">addLocalForceAtPos</a> (<a class="el" href="classPxRigidBody.html">PxRigidBody</a> &amp;body, const <a class="el" href="classPxVec3.html">PxVec3</a> &amp;force, const <a class="el" href="classPxVec3.html">PxVec3</a> &amp;pos, <a class="el" href="structPxForceMode.html#adaaafefe0478d829b816154c676e545">PxForceMode::Enum</a> mode=PxForceMode::eFORCE, bool wakeup=true)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Applies a force (or impulse) defined in the actor local coordinate frame, acting at a particular point in global coordinates, to the actor.  <a href="#0df8ee24ebf8b840909bdb09c8d90717"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">static void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classPxRigidBodyExt.html#ce7be55938f260ee769b993c6c90d288">addLocalForceAtLocalPos</a> (<a class="el" href="classPxRigidBody.html">PxRigidBody</a> &amp;body, const <a class="el" href="classPxVec3.html">PxVec3</a> &amp;force, const <a class="el" href="classPxVec3.html">PxVec3</a> &amp;pos, <a class="el" href="structPxForceMode.html#adaaafefe0478d829b816154c676e545">PxForceMode::Enum</a> mode=PxForceMode::eFORCE, bool wakeup=true)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Applies a force (or impulse) defined in the actor local coordinate frame, acting at a particular point in local coordinates, to the actor.  <a href="#ce7be55938f260ee769b993c6c90d288"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">static <a class="el" href="classPxVec3.html">PxVec3</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classPxRigidBodyExt.html#cce31159814673df7781eb62ee032ef2">getVelocityAtPos</a> (const <a class="el" href="classPxRigidBody.html">PxRigidBody</a> &amp;body, const <a class="el" href="classPxVec3.html">PxVec3</a> &amp;pos)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Computes the velocity of a point given in world coordinates if it were attached to the specified body and moving with it.  <a href="#cce31159814673df7781eb62ee032ef2"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">static <a class="el" href="classPxVec3.html">PxVec3</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classPxRigidBodyExt.html#b79486496528ea623774e7a9b021633d">getLocalVelocityAtLocalPos</a> (const <a class="el" href="classPxRigidBody.html">PxRigidBody</a> &amp;body, const <a class="el" href="classPxVec3.html">PxVec3</a> &amp;pos)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Computes the velocity of a point given in local coordinates if it were attached to the specified body and moving with it.  <a href="#b79486496528ea623774e7a9b021633d"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">static <a class="el" href="classPxVec3.html">PxVec3</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classPxRigidBodyExt.html#fed73713b7c1032a7ce921c7de25a278">getVelocityAtOffset</a> (const <a class="el" href="classPxRigidBody.html">PxRigidBody</a> &amp;body, const <a class="el" href="classPxVec3.html">PxVec3</a> &amp;pos)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Computes the velocity of a point (offset from the origin of the body) given in world coordinates if it were attached to the specified body and moving with it.  <a href="#fed73713b7c1032a7ce921c7de25a278"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">static bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classPxRigidBodyExt.html#bff916a23a3b9f0e362d1ba2345f45dd">linearSweepSingle</a> (<a class="el" href="classPxRigidBody.html">PxRigidBody</a> &amp;body, <a class="el" href="classPxScene.html">PxScene</a> &amp;scene, const <a class="el" href="classPxVec3.html">PxVec3</a> &amp;unitDir, const PxReal distance, PxHitFlags outputFlags, <a class="el" href="structPxSweepHit.html">PxSweepHit</a> &amp;closestHit, <a class="el" href="group__foundation.html#gcce5749db3dcfb916e98c253374264ed">PxU32</a> &amp;shapeIndex, const <a class="el" href="structPxQueryFilterData.html">PxQueryFilterData</a> &amp;filterData=<a class="el" href="structPxQueryFilterData.html">PxQueryFilterData</a>(), <a class="el" href="classPxQueryFilterCallback.html">PxQueryFilterCallback</a> *filterCall=NULL, const <a class="el" href="structPxQueryCache.html">PxQueryCache</a> *cache=NULL, const PxReal inflation=0.0f)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Performs a linear sweep through space with the body's geometry objects.  <a href="#bff916a23a3b9f0e362d1ba2345f45dd"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">static <a class="el" href="group__foundation.html#gcce5749db3dcfb916e98c253374264ed">PxU32</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classPxRigidBodyExt.html#dfc2b24aa3d9207ce6af21094151aede">linearSweepMultiple</a> (<a class="el" href="classPxRigidBody.html">PxRigidBody</a> &amp;body, <a class="el" href="classPxScene.html">PxScene</a> &amp;scene, const <a class="el" href="classPxVec3.html">PxVec3</a> &amp;unitDir, const PxReal distance, PxHitFlags outputFlags, <a class="el" href="structPxSweepHit.html">PxSweepHit</a> *touchHitBuffer, <a class="el" href="group__foundation.html#gcce5749db3dcfb916e98c253374264ed">PxU32</a> *touchHitShapeIndices, <a class="el" href="group__foundation.html#gcce5749db3dcfb916e98c253374264ed">PxU32</a> touchHitBufferSize, <a class="el" href="structPxSweepHit.html">PxSweepHit</a> &amp;block, PxI32 &amp;blockingShapeIndex, bool &amp;overflow, const <a class="el" href="structPxQueryFilterData.html">PxQueryFilterData</a> &amp;filterData=<a class="el" href="structPxQueryFilterData.html">PxQueryFilterData</a>(), <a class="el" href="classPxQueryFilterCallback.html">PxQueryFilterCallback</a> *filterCall=NULL, const <a class="el" href="structPxQueryCache.html">PxQueryCache</a> *cache=NULL, const PxReal inflation=0.0f)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Performs a linear sweep through space with the body's geometry objects, returning all overlaps.  <a href="#dfc2b24aa3d9207ce6af21094151aede"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">static void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classPxRigidBodyExt.html#a0684e41c619824229cdedb47e06563a">computeVelocityDeltaFromImpulse</a> (const <a class="el" href="classPxRigidBody.html">PxRigidBody</a> &amp;body, const <a class="el" href="classPxVec3.html">PxVec3</a> &amp;impulsiveForce, const <a class="el" href="classPxVec3.html">PxVec3</a> &amp;impulsiveTorque, <a class="el" href="classPxVec3.html">PxVec3</a> &amp;deltaLinearVelocity, <a class="el" href="classPxVec3.html">PxVec3</a> &amp;deltaAngularVelocity)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Compute the change to linear and angular velocity that would occur if an impulsive force and torque were to be applied to a specified rigid body.  <a href="#a0684e41c619824229cdedb47e06563a"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">static void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classPxRigidBodyExt.html#bc672d4db8e02d4ddc1d8ee18068221a">computeVelocityDeltaFromImpulse</a> (const <a class="el" href="classPxRigidBody.html">PxRigidBody</a> &amp;body, const <a class="el" href="classPxTransform.html">PxTransform</a> &amp;globalPose, const <a class="el" href="classPxVec3.html">PxVec3</a> &amp;point, const <a class="el" href="classPxVec3.html">PxVec3</a> &amp;impulse, const PxReal invMassScale, const PxReal invInertiaScale, <a class="el" href="classPxVec3.html">PxVec3</a> &amp;deltaLinearVelocity, <a class="el" href="classPxVec3.html">PxVec3</a> &amp;deltaAngularVelocity)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Computes the linear and angular velocity change vectors for a given impulse at a world space position taking a mass and inertia scale into account.  <a href="#bc672d4db8e02d4ddc1d8ee18068221a"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">static void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classPxRigidBodyExt.html#a1215782ff3e5c18ca42d8805578c21a">computeLinearAngularImpulse</a> (const <a class="el" href="classPxRigidBody.html">PxRigidBody</a> &amp;body, const <a class="el" href="classPxTransform.html">PxTransform</a> &amp;globalPose, const <a class="el" href="classPxVec3.html">PxVec3</a> &amp;point, const <a class="el" href="classPxVec3.html">PxVec3</a> &amp;impulse, const PxReal invMassScale, const PxReal invInertiaScale, <a class="el" href="classPxVec3.html">PxVec3</a> &amp;linearImpulse, <a class="el" href="classPxVec3.html">PxVec3</a> &amp;angularImpulse)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Computes the linear and angular impulse vectors for a given impulse at a world space position taking a mass and inertia scale into account.  <a href="#a1215782ff3e5c18ca42d8805578c21a"></a><br></td></tr>
</table>
<hr><a name="_details"></a><h2>Detailed Description</h2>
utility functions for use with <a class="el" href="classPxRigidBody.html" title="PxRigidBody is a base class shared between dynamic rigid body objects.">PxRigidBody</a> and subclasses 
<p>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="classPxRigidBody.html" title="PxRigidBody is a base class shared between dynamic rigid body objects.">PxRigidBody</a> <a class="el" href="classPxRigidDynamic.html" title="PxRigidDynamic represents a dynamic rigid simulation object in the physics SDK.">PxRigidDynamic</a> <a class="el" href="classPxArticulationLink.html" title="a component of an articulation that represents a rigid body">PxArticulationLink</a> </dd></dl>
<hr><h2>Member Function Documentation</h2>
<a class="anchor" name="732d9246bc10aef4aa76f4a6c941c7c5"></a><!-- doxytag: member="PxRigidBodyExt::addForceAtLocalPos" ref="732d9246bc10aef4aa76f4a6c941c7c5" args="(PxRigidBody &amp;body, const PxVec3 &amp;force, const PxVec3 &amp;pos, PxForceMode::Enum mode=PxForceMode::eFORCE, bool wakeup=true)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static void PxRigidBodyExt::addForceAtLocalPos           </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classPxRigidBody.html">PxRigidBody</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>body</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="classPxVec3.html">PxVec3</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>force</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="classPxVec3.html">PxVec3</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>pos</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="structPxForceMode.html#adaaafefe0478d829b816154c676e545">PxForceMode::Enum</a>&nbsp;</td>
          <td class="paramname"> <em>mode</em> = <code>PxForceMode::eFORCE</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&nbsp;</td>
          <td class="paramname"> <em>wakeup</em> = <code>true</code></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>
Applies a force (or impulse) defined in the global coordinate frame, acting at a particular point in local coordinates, to the actor. 
<p>
Note that if the force does not act along the center of mass of the actor, this will also add the corresponding torque. Because forces are reset at the end of every timestep, you can maintain a total external force on an object by calling this once every frame.<p>
<dl class="note" compact><dt><b>Note:</b></dt><dd>if this call is used to apply a force or impulse to an articulation link, only the link is updated, not the entire articulation</dd></dl>
<a class="el" href="structPxForceMode.html" title="Parameter to addForce() and addTorque() calls, determines the exact operation that...">PxForceMode</a> determines if the force is to be conventional or impulsive. Only eFORCE and eIMPULSE are supported, as the force required to produce a given velocity change or acceleration is underdetermined given only the desired change at a given point.<p>
<b>Sleeping:</b> This call wakes the actor if it is sleeping and the wakeup parameter is true (default).<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>body</em>&nbsp;</td><td>The rigid body to apply the force to. </td></tr>
    <tr><td valign="top"><tt>[in]</tt>&nbsp;</td><td valign="top"><em>force</em>&nbsp;</td><td>Force/impulse to add, defined in the global frame. <b>Range:</b> force vector </td></tr>
    <tr><td valign="top"><tt>[in]</tt>&nbsp;</td><td valign="top"><em>pos</em>&nbsp;</td><td>Position in the local frame to add the force at. <b>Range:</b> position vector </td></tr>
    <tr><td valign="top"><tt>[in]</tt>&nbsp;</td><td valign="top"><em>mode</em>&nbsp;</td><td>The mode to use when applying the force/impulse(see <a class="el" href="structPxForceMode.html" title="Parameter to addForce() and addTorque() calls, determines the exact operation that...">PxForceMode</a>). </td></tr>
    <tr><td valign="top"><tt>[in]</tt>&nbsp;</td><td valign="top"><em>wakeup</em>&nbsp;</td><td>Specify if the call should wake up the actor.</td></tr>
  </table>
</dl>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="structPxForceMode.html" title="Parameter to addForce() and addTorque() calls, determines the exact operation that...">PxForceMode</a> <p>
<a class="el" href="classPxRigidBodyExt.html#0e3a81ec184fe8981dbbcebff6da1f61" title="Applies a force (or impulse) defined in the global coordinate frame, acting at a...">addForceAtPos()</a> <a class="el" href="classPxRigidBodyExt.html#0df8ee24ebf8b840909bdb09c8d90717" title="Applies a force (or impulse) defined in the actor local coordinate frame, acting...">addLocalForceAtPos()</a> <a class="el" href="classPxRigidBodyExt.html#ce7be55938f260ee769b993c6c90d288" title="Applies a force (or impulse) defined in the actor local coordinate frame, acting...">addLocalForceAtLocalPos()</a> </dd></dl>

</div>
</div><p>
<a class="anchor" name="0e3a81ec184fe8981dbbcebff6da1f61"></a><!-- doxytag: member="PxRigidBodyExt::addForceAtPos" ref="0e3a81ec184fe8981dbbcebff6da1f61" args="(PxRigidBody &amp;body, const PxVec3 &amp;force, const PxVec3 &amp;pos, PxForceMode::Enum mode=PxForceMode::eFORCE, bool wakeup=true)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static void PxRigidBodyExt::addForceAtPos           </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classPxRigidBody.html">PxRigidBody</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>body</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="classPxVec3.html">PxVec3</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>force</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="classPxVec3.html">PxVec3</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>pos</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="structPxForceMode.html#adaaafefe0478d829b816154c676e545">PxForceMode::Enum</a>&nbsp;</td>
          <td class="paramname"> <em>mode</em> = <code>PxForceMode::eFORCE</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&nbsp;</td>
          <td class="paramname"> <em>wakeup</em> = <code>true</code></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>
Applies a force (or impulse) defined in the global coordinate frame, acting at a particular point in global coordinates, to the actor. 
<p>
Note that if the force does not act along the center of mass of the actor, this will also add the corresponding torque. Because forces are reset at the end of every timestep, you can maintain a total external force on an object by calling this once every frame.<p>
<dl class="note" compact><dt><b>Note:</b></dt><dd>if this call is used to apply a force or impulse to an articulation link, only the link is updated, not the entire articulation</dd></dl>
<a class="el" href="structPxForceMode.html" title="Parameter to addForce() and addTorque() calls, determines the exact operation that...">PxForceMode</a> determines if the force is to be conventional or impulsive. Only eFORCE and eIMPULSE are supported, as the force required to produce a given velocity change or acceleration is underdetermined given only the desired change at a given point.<p>
<b>Sleeping:</b> This call wakes the actor if it is sleeping and the wakeup parameter is true (default).<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>body</em>&nbsp;</td><td>The rigid body to apply the force to. </td></tr>
    <tr><td valign="top"><tt>[in]</tt>&nbsp;</td><td valign="top"><em>force</em>&nbsp;</td><td>Force/impulse to add, defined in the global frame. <b>Range:</b> force vector </td></tr>
    <tr><td valign="top"><tt>[in]</tt>&nbsp;</td><td valign="top"><em>pos</em>&nbsp;</td><td>Position in the global frame to add the force at. <b>Range:</b> position vector </td></tr>
    <tr><td valign="top"><tt>[in]</tt>&nbsp;</td><td valign="top"><em>mode</em>&nbsp;</td><td>The mode to use when applying the force/impulse(see <a class="el" href="structPxForceMode.html" title="Parameter to addForce() and addTorque() calls, determines the exact operation that...">PxForceMode</a>). </td></tr>
    <tr><td valign="top"><tt>[in]</tt>&nbsp;</td><td valign="top"><em>wakeup</em>&nbsp;</td><td>Specify if the call should wake up the actor.</td></tr>
  </table>
</dl>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="structPxForceMode.html" title="Parameter to addForce() and addTorque() calls, determines the exact operation that...">PxForceMode</a> <p>
<a class="el" href="classPxRigidBodyExt.html#732d9246bc10aef4aa76f4a6c941c7c5" title="Applies a force (or impulse) defined in the global coordinate frame, acting at a...">addForceAtLocalPos()</a> <a class="el" href="classPxRigidBodyExt.html#0df8ee24ebf8b840909bdb09c8d90717" title="Applies a force (or impulse) defined in the actor local coordinate frame, acting...">addLocalForceAtPos()</a> <a class="el" href="classPxRigidBodyExt.html#ce7be55938f260ee769b993c6c90d288" title="Applies a force (or impulse) defined in the actor local coordinate frame, acting...">addLocalForceAtLocalPos()</a> </dd></dl>

</div>
</div><p>
<a class="anchor" name="ce7be55938f260ee769b993c6c90d288"></a><!-- doxytag: member="PxRigidBodyExt::addLocalForceAtLocalPos" ref="ce7be55938f260ee769b993c6c90d288" args="(PxRigidBody &amp;body, const PxVec3 &amp;force, const PxVec3 &amp;pos, PxForceMode::Enum mode=PxForceMode::eFORCE, bool wakeup=true)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static void PxRigidBodyExt::addLocalForceAtLocalPos           </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classPxRigidBody.html">PxRigidBody</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>body</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="classPxVec3.html">PxVec3</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>force</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="classPxVec3.html">PxVec3</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>pos</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="structPxForceMode.html#adaaafefe0478d829b816154c676e545">PxForceMode::Enum</a>&nbsp;</td>
          <td class="paramname"> <em>mode</em> = <code>PxForceMode::eFORCE</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&nbsp;</td>
          <td class="paramname"> <em>wakeup</em> = <code>true</code></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>
Applies a force (or impulse) defined in the actor local coordinate frame, acting at a particular point in local coordinates, to the actor. 
<p>
Note that if the force does not act along the center of mass of the actor, this will also add the corresponding torque. Because forces are reset at the end of every timestep, you can maintain a total external force on an object by calling this once every frame.<p>
<dl class="note" compact><dt><b>Note:</b></dt><dd>if this call is used to apply a force or impulse to an articulation link, only the link is updated, not the entire articulation</dd></dl>
<a class="el" href="structPxForceMode.html" title="Parameter to addForce() and addTorque() calls, determines the exact operation that...">PxForceMode</a> determines if the force is to be conventional or impulsive. Only eFORCE and eIMPULSE are supported, as the force required to produce a given velocity change or acceleration is underdetermined given only the desired change at a given point.<p>
<b>Sleeping:</b> This call wakes the actor if it is sleeping and the wakeup parameter is true (default).<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>body</em>&nbsp;</td><td>The rigid body to apply the force to. </td></tr>
    <tr><td valign="top"><tt>[in]</tt>&nbsp;</td><td valign="top"><em>force</em>&nbsp;</td><td>Force/impulse to add, defined in the local frame. <b>Range:</b> force vector </td></tr>
    <tr><td valign="top"><tt>[in]</tt>&nbsp;</td><td valign="top"><em>pos</em>&nbsp;</td><td>Position in the local frame to add the force at. <b>Range:</b> position vector </td></tr>
    <tr><td valign="top"><tt>[in]</tt>&nbsp;</td><td valign="top"><em>mode</em>&nbsp;</td><td>The mode to use when applying the force/impulse(see <a class="el" href="structPxForceMode.html" title="Parameter to addForce() and addTorque() calls, determines the exact operation that...">PxForceMode</a>). </td></tr>
    <tr><td valign="top"><tt>[in]</tt>&nbsp;</td><td valign="top"><em>wakeup</em>&nbsp;</td><td>Specify if the call should wake up the actor.</td></tr>
  </table>
</dl>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="structPxForceMode.html" title="Parameter to addForce() and addTorque() calls, determines the exact operation that...">PxForceMode</a> <p>
<a class="el" href="classPxRigidBodyExt.html#0e3a81ec184fe8981dbbcebff6da1f61" title="Applies a force (or impulse) defined in the global coordinate frame, acting at a...">addForceAtPos()</a> <a class="el" href="classPxRigidBodyExt.html#732d9246bc10aef4aa76f4a6c941c7c5" title="Applies a force (or impulse) defined in the global coordinate frame, acting at a...">addForceAtLocalPos()</a> <a class="el" href="classPxRigidBodyExt.html#0df8ee24ebf8b840909bdb09c8d90717" title="Applies a force (or impulse) defined in the actor local coordinate frame, acting...">addLocalForceAtPos()</a> </dd></dl>

</div>
</div><p>
<a class="anchor" name="0df8ee24ebf8b840909bdb09c8d90717"></a><!-- doxytag: member="PxRigidBodyExt::addLocalForceAtPos" ref="0df8ee24ebf8b840909bdb09c8d90717" args="(PxRigidBody &amp;body, const PxVec3 &amp;force, const PxVec3 &amp;pos, PxForceMode::Enum mode=PxForceMode::eFORCE, bool wakeup=true)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static void PxRigidBodyExt::addLocalForceAtPos           </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classPxRigidBody.html">PxRigidBody</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>body</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="classPxVec3.html">PxVec3</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>force</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="classPxVec3.html">PxVec3</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>pos</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="structPxForceMode.html#adaaafefe0478d829b816154c676e545">PxForceMode::Enum</a>&nbsp;</td>
          <td class="paramname"> <em>mode</em> = <code>PxForceMode::eFORCE</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&nbsp;</td>
          <td class="paramname"> <em>wakeup</em> = <code>true</code></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>
Applies a force (or impulse) defined in the actor local coordinate frame, acting at a particular point in global coordinates, to the actor. 
<p>
Note that if the force does not act along the center of mass of the actor, this will also add the corresponding torque. Because forces are reset at the end of every timestep, you can maintain a total external force on an object by calling this once every frame.<p>
<dl class="note" compact><dt><b>Note:</b></dt><dd>if this call is used to apply a force or impulse to an articulation link, only the link is updated, not the entire articulation</dd></dl>
<a class="el" href="structPxForceMode.html" title="Parameter to addForce() and addTorque() calls, determines the exact operation that...">PxForceMode</a> determines if the force is to be conventional or impulsive. Only eFORCE and eIMPULSE are supported, as the force required to produce a given velocity change or acceleration is underdetermined given only the desired change at a given point.<p>
<b>Sleeping:</b> This call wakes the actor if it is sleeping and the wakeup parameter is true (default).<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>body</em>&nbsp;</td><td>The rigid body to apply the force to. </td></tr>
    <tr><td valign="top"><tt>[in]</tt>&nbsp;</td><td valign="top"><em>force</em>&nbsp;</td><td>Force/impulse to add, defined in the local frame. <b>Range:</b> force vector </td></tr>
    <tr><td valign="top"><tt>[in]</tt>&nbsp;</td><td valign="top"><em>pos</em>&nbsp;</td><td>Position in the global frame to add the force at. <b>Range:</b> position vector </td></tr>
    <tr><td valign="top"><tt>[in]</tt>&nbsp;</td><td valign="top"><em>mode</em>&nbsp;</td><td>The mode to use when applying the force/impulse(see <a class="el" href="structPxForceMode.html" title="Parameter to addForce() and addTorque() calls, determines the exact operation that...">PxForceMode</a>). </td></tr>
    <tr><td valign="top"><tt>[in]</tt>&nbsp;</td><td valign="top"><em>wakeup</em>&nbsp;</td><td>Specify if the call should wake up the actor.</td></tr>
  </table>
</dl>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="structPxForceMode.html" title="Parameter to addForce() and addTorque() calls, determines the exact operation that...">PxForceMode</a> <p>
<a class="el" href="classPxRigidBodyExt.html#0e3a81ec184fe8981dbbcebff6da1f61" title="Applies a force (or impulse) defined in the global coordinate frame, acting at a...">addForceAtPos()</a> <a class="el" href="classPxRigidBodyExt.html#732d9246bc10aef4aa76f4a6c941c7c5" title="Applies a force (or impulse) defined in the global coordinate frame, acting at a...">addForceAtLocalPos()</a> <a class="el" href="classPxRigidBodyExt.html#ce7be55938f260ee769b993c6c90d288" title="Applies a force (or impulse) defined in the actor local coordinate frame, acting...">addLocalForceAtLocalPos()</a> </dd></dl>

</div>
</div><p>
<a class="anchor" name="a1215782ff3e5c18ca42d8805578c21a"></a><!-- doxytag: member="PxRigidBodyExt::computeLinearAngularImpulse" ref="a1215782ff3e5c18ca42d8805578c21a" args="(const PxRigidBody &amp;body, const PxTransform &amp;globalPose, const PxVec3 &amp;point, const PxVec3 &amp;impulse, const PxReal invMassScale, const PxReal invInertiaScale, PxVec3 &amp;linearImpulse, PxVec3 &amp;angularImpulse)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static void PxRigidBodyExt::computeLinearAngularImpulse           </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classPxRigidBody.html">PxRigidBody</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>body</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="classPxTransform.html">PxTransform</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>globalPose</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="classPxVec3.html">PxVec3</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>point</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="classPxVec3.html">PxVec3</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>impulse</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const PxReal&nbsp;</td>
          <td class="paramname"> <em>invMassScale</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const PxReal&nbsp;</td>
          <td class="paramname"> <em>invInertiaScale</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classPxVec3.html">PxVec3</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>linearImpulse</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classPxVec3.html">PxVec3</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>angularImpulse</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>
Computes the linear and angular impulse vectors for a given impulse at a world space position taking a mass and inertia scale into account. 
<p>
This function is useful for extracting the respective linear and angular impulses from a contact or joint when the mass/inertia ratios have been adjusted.<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>body</em>&nbsp;</td><td>The rigid body </td></tr>
    <tr><td valign="top"><tt>[in]</tt>&nbsp;</td><td valign="top"><em>globalPose</em>&nbsp;</td><td>The body's world space transform </td></tr>
    <tr><td valign="top"><tt>[in]</tt>&nbsp;</td><td valign="top"><em>point</em>&nbsp;</td><td>The point in world space where the impulse is applied </td></tr>
    <tr><td valign="top"><tt>[in]</tt>&nbsp;</td><td valign="top"><em>impulse</em>&nbsp;</td><td>The impulse vector in world space </td></tr>
    <tr><td valign="top"><tt>[in]</tt>&nbsp;</td><td valign="top"><em>invMassScale</em>&nbsp;</td><td>The inverse mass scale </td></tr>
    <tr><td valign="top"><tt>[in]</tt>&nbsp;</td><td valign="top"><em>invInertiaScale</em>&nbsp;</td><td>The inverse inertia scale </td></tr>
    <tr><td valign="top"><tt>[out]</tt>&nbsp;</td><td valign="top"><em>linearImpulse</em>&nbsp;</td><td>The linear impulse </td></tr>
    <tr><td valign="top"><tt>[out]</tt>&nbsp;</td><td valign="top"><em>angularImpulse</em>&nbsp;</td><td>The angular impulse </td></tr>
  </table>
</dl>

</div>
</div><p>
<a class="anchor" name="44f1a4248b259bc96ff5dfb233860b4d"></a><!-- doxytag: member="PxRigidBodyExt::computeMassPropertiesFromShapes" ref="44f1a4248b259bc96ff5dfb233860b4d" args="(const PxShape *const *shapes, PxU32 shapeCount)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="classPxMassProperties.html">PxMassProperties</a> PxRigidBodyExt::computeMassPropertiesFromShapes           </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classPxShape.html">PxShape</a> *const *&nbsp;</td>
          <td class="paramname"> <em>shapes</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__foundation.html#gcce5749db3dcfb916e98c253374264ed">PxU32</a>&nbsp;</td>
          <td class="paramname"> <em>shapeCount</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>
Compute the mass, inertia tensor and center of mass from a list of shapes. 
<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>shapes</em>&nbsp;</td><td>The shapes to compute the mass properties from. </td></tr>
    <tr><td valign="top"><tt>[in]</tt>&nbsp;</td><td valign="top"><em>shapeCount</em>&nbsp;</td><td>The number of provided shapes. </td></tr>
  </table>
</dl>
<dl class="return" compact><dt><b>Returns:</b></dt><dd>The mass properties from the combined shapes.</dd></dl>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="classPxRigidBody.html#b152773926fe7b222d61e982c3cb6adf" title="Sets the pose of the center of mass relative to the actor.">PxRigidBody::setCMassLocalPose</a> <a class="el" href="classPxRigidBody.html#755d0c8a8d1dd8b29e59d50a6dfda5fd" title="Sets the inertia tensor, using a parameter specified in mass space coordinates.">PxRigidBody::setMassSpaceInertiaTensor</a> <a class="el" href="classPxRigidBody.html#8a697a7a4b9bdd2c83a68e84b9bc3a35" title="Sets the mass of a dynamic actor.">PxRigidBody::setMass</a> </dd></dl>

</div>
</div><p>
<a class="anchor" name="bc672d4db8e02d4ddc1d8ee18068221a"></a><!-- doxytag: member="PxRigidBodyExt::computeVelocityDeltaFromImpulse" ref="bc672d4db8e02d4ddc1d8ee18068221a" args="(const PxRigidBody &amp;body, const PxTransform &amp;globalPose, const PxVec3 &amp;point, const PxVec3 &amp;impulse, const PxReal invMassScale, const PxReal invInertiaScale, PxVec3 &amp;deltaLinearVelocity, PxVec3 &amp;deltaAngularVelocity)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static void PxRigidBodyExt::computeVelocityDeltaFromImpulse           </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classPxRigidBody.html">PxRigidBody</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>body</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="classPxTransform.html">PxTransform</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>globalPose</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="classPxVec3.html">PxVec3</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>point</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="classPxVec3.html">PxVec3</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>impulse</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const PxReal&nbsp;</td>
          <td class="paramname"> <em>invMassScale</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const PxReal&nbsp;</td>
          <td class="paramname"> <em>invInertiaScale</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classPxVec3.html">PxVec3</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>deltaLinearVelocity</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classPxVec3.html">PxVec3</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>deltaAngularVelocity</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>
Computes the linear and angular velocity change vectors for a given impulse at a world space position taking a mass and inertia scale into account. 
<p>
This function is useful for extracting the respective linear and angular velocity changes from a contact or joint when the mass/inertia ratios have been adjusted.<p>
<dl class="note" compact><dt><b>Note:</b></dt><dd>if this call is used to determine the velocity delta for an articulation link, only the mass properties of the link are taken into account.</dd></dl>
<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>body</em>&nbsp;</td><td>The rigid body </td></tr>
    <tr><td valign="top"><tt>[in]</tt>&nbsp;</td><td valign="top"><em>globalPose</em>&nbsp;</td><td>The body's world space transform </td></tr>
    <tr><td valign="top"><tt>[in]</tt>&nbsp;</td><td valign="top"><em>point</em>&nbsp;</td><td>The point in world space where the impulse is applied </td></tr>
    <tr><td valign="top"><tt>[in]</tt>&nbsp;</td><td valign="top"><em>impulse</em>&nbsp;</td><td>The impulse vector in world space </td></tr>
    <tr><td valign="top"><tt>[in]</tt>&nbsp;</td><td valign="top"><em>invMassScale</em>&nbsp;</td><td>The inverse mass scale </td></tr>
    <tr><td valign="top"><tt>[in]</tt>&nbsp;</td><td valign="top"><em>invInertiaScale</em>&nbsp;</td><td>The inverse inertia scale </td></tr>
    <tr><td valign="top"><tt>[out]</tt>&nbsp;</td><td valign="top"><em>deltaLinearVelocity</em>&nbsp;</td><td>The linear velocity change </td></tr>
    <tr><td valign="top"><tt>[out]</tt>&nbsp;</td><td valign="top"><em>deltaAngularVelocity</em>&nbsp;</td><td>The angular velocity change </td></tr>
  </table>
</dl>

</div>
</div><p>
<a class="anchor" name="a0684e41c619824229cdedb47e06563a"></a><!-- doxytag: member="PxRigidBodyExt::computeVelocityDeltaFromImpulse" ref="a0684e41c619824229cdedb47e06563a" args="(const PxRigidBody &amp;body, const PxVec3 &amp;impulsiveForce, const PxVec3 &amp;impulsiveTorque, PxVec3 &amp;deltaLinearVelocity, PxVec3 &amp;deltaAngularVelocity)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static void PxRigidBodyExt::computeVelocityDeltaFromImpulse           </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classPxRigidBody.html">PxRigidBody</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>body</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="classPxVec3.html">PxVec3</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>impulsiveForce</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="classPxVec3.html">PxVec3</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>impulsiveTorque</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classPxVec3.html">PxVec3</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>deltaLinearVelocity</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classPxVec3.html">PxVec3</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>deltaAngularVelocity</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>
Compute the change to linear and angular velocity that would occur if an impulsive force and torque were to be applied to a specified rigid body. 
<p>
The rigid body is left unaffected unless a subsequent independent call is executed that actually applies the computed changes to velocity and angular velocity.<p>
<dl class="note" compact><dt><b>Note:</b></dt><dd>if this call is used to determine the velocity delta for an articulation link, only the mass properties of the link are taken into account.</dd></dl>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="classPxRigidBody.html#04bab22deecb716e2cdd7a64b5cfaee7" title="Retrieves the linear velocity of an actor.">PxRigidBody::getLinearVelocity</a>, <a class="el" href="classPxRigidBody.html#0aed51d5ddcf81b09a104ad7f0f30c05" title="Sets the linear velocity of the actor.">PxRigidBody::setLinearVelocity</a>, <a class="el" href="classPxRigidBody.html#f91b92d6fcf47103b148337749aa93e0" title="Retrieves the angular velocity of the actor.">PxRigidBody::getAngularVelocity</a>, <a class="el" href="classPxRigidBody.html#d49850630db14af26e019d2550ecfd27" title="Sets the angular velocity of the actor.">PxRigidBody::setAngularVelocity</a></dd></dl>
<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>body</em>&nbsp;</td><td>The body under consideration. </td></tr>
    <tr><td valign="top"><tt>[in]</tt>&nbsp;</td><td valign="top"><em>impulsiveForce</em>&nbsp;</td><td>The impulsive force that would be applied to the specified rigid body. </td></tr>
    <tr><td valign="top"><tt>[in]</tt>&nbsp;</td><td valign="top"><em>impulsiveTorque</em>&nbsp;</td><td>The impulsive torque that would be applied to the specified rigid body. </td></tr>
    <tr><td valign="top"><tt>[out]</tt>&nbsp;</td><td valign="top"><em>deltaLinearVelocity</em>&nbsp;</td><td>The change in linear velocity that would arise if impulsiveForce was to be applied to the specified rigid body. </td></tr>
    <tr><td valign="top"><tt>[out]</tt>&nbsp;</td><td valign="top"><em>deltaAngularVelocity</em>&nbsp;</td><td>The change in angular velocity that would arise if impulsiveTorque was to be applied to the specified rigid body. </td></tr>
  </table>
</dl>

</div>
</div><p>
<a class="anchor" name="b79486496528ea623774e7a9b021633d"></a><!-- doxytag: member="PxRigidBodyExt::getLocalVelocityAtLocalPos" ref="b79486496528ea623774e7a9b021633d" args="(const PxRigidBody &amp;body, const PxVec3 &amp;pos)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="classPxVec3.html">PxVec3</a> PxRigidBodyExt::getLocalVelocityAtLocalPos           </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classPxRigidBody.html">PxRigidBody</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>body</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="classPxVec3.html">PxVec3</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>pos</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>
Computes the velocity of a point given in local coordinates if it were attached to the specified body and moving with it. 
<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>body</em>&nbsp;</td><td>The rigid body the point is attached to. </td></tr>
    <tr><td valign="top"><tt>[in]</tt>&nbsp;</td><td valign="top"><em>pos</em>&nbsp;</td><td>Position we wish to determine the velocity for, defined in the local frame. <b>Range:</b> position vector </td></tr>
  </table>
</dl>
<dl class="return" compact><dt><b>Returns:</b></dt><dd>The velocity of point in the local frame.</dd></dl>
<dl class="see" compact><dt><b>See also:</b></dt><dd>getLocalPointVelocity() </dd></dl>

</div>
</div><p>
<a class="anchor" name="fed73713b7c1032a7ce921c7de25a278"></a><!-- doxytag: member="PxRigidBodyExt::getVelocityAtOffset" ref="fed73713b7c1032a7ce921c7de25a278" args="(const PxRigidBody &amp;body, const PxVec3 &amp;pos)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="classPxVec3.html">PxVec3</a> PxRigidBodyExt::getVelocityAtOffset           </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classPxRigidBody.html">PxRigidBody</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>body</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="classPxVec3.html">PxVec3</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>pos</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>
Computes the velocity of a point (offset from the origin of the body) given in world coordinates if it were attached to the specified body and moving with it. 
<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>body</em>&nbsp;</td><td>The rigid body the point is attached to. </td></tr>
    <tr><td valign="top"><tt>[in]</tt>&nbsp;</td><td valign="top"><em>pos</em>&nbsp;</td><td>Position (offset from the origin of the body) we wish to determine the velocity for, defined in the global frame. <b>Range:</b> position vector </td></tr>
  </table>
</dl>
<dl class="return" compact><dt><b>Returns:</b></dt><dd>The velocity of point (offset from the origin of the body) in the global frame.</dd></dl>
<dl class="see" compact><dt><b>See also:</b></dt><dd>getLocalPointVelocity() </dd></dl>

</div>
</div><p>
<a class="anchor" name="cce31159814673df7781eb62ee032ef2"></a><!-- doxytag: member="PxRigidBodyExt::getVelocityAtPos" ref="cce31159814673df7781eb62ee032ef2" args="(const PxRigidBody &amp;body, const PxVec3 &amp;pos)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="classPxVec3.html">PxVec3</a> PxRigidBodyExt::getVelocityAtPos           </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classPxRigidBody.html">PxRigidBody</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>body</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="classPxVec3.html">PxVec3</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>pos</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>
Computes the velocity of a point given in world coordinates if it were attached to the specified body and moving with it. 
<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>body</em>&nbsp;</td><td>The rigid body the point is attached to. </td></tr>
    <tr><td valign="top"><tt>[in]</tt>&nbsp;</td><td valign="top"><em>pos</em>&nbsp;</td><td>Position we wish to determine the velocity for, defined in the global frame. <b>Range:</b> position vector </td></tr>
  </table>
</dl>
<dl class="return" compact><dt><b>Returns:</b></dt><dd>The velocity of point in the global frame.</dd></dl>
<dl class="see" compact><dt><b>See also:</b></dt><dd>getLocalPointVelocity() </dd></dl>

</div>
</div><p>
<a class="anchor" name="dfc2b24aa3d9207ce6af21094151aede"></a><!-- doxytag: member="PxRigidBodyExt::linearSweepMultiple" ref="dfc2b24aa3d9207ce6af21094151aede" args="(PxRigidBody &amp;body, PxScene &amp;scene, const PxVec3 &amp;unitDir, const PxReal distance, PxHitFlags outputFlags, PxSweepHit *touchHitBuffer, PxU32 *touchHitShapeIndices, PxU32 touchHitBufferSize, PxSweepHit &amp;block, PxI32 &amp;blockingShapeIndex, bool &amp;overflow, const PxQueryFilterData &amp;filterData=PxQueryFilterData(), PxQueryFilterCallback *filterCall=NULL, const PxQueryCache *cache=NULL, const PxReal inflation=0.0f)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="group__foundation.html#gcce5749db3dcfb916e98c253374264ed">PxU32</a> PxRigidBodyExt::linearSweepMultiple           </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classPxRigidBody.html">PxRigidBody</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>body</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classPxScene.html">PxScene</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>scene</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="classPxVec3.html">PxVec3</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>unitDir</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const PxReal&nbsp;</td>
          <td class="paramname"> <em>distance</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">PxHitFlags&nbsp;</td>
          <td class="paramname"> <em>outputFlags</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="structPxSweepHit.html">PxSweepHit</a> *&nbsp;</td>
          <td class="paramname"> <em>touchHitBuffer</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__foundation.html#gcce5749db3dcfb916e98c253374264ed">PxU32</a> *&nbsp;</td>
          <td class="paramname"> <em>touchHitShapeIndices</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__foundation.html#gcce5749db3dcfb916e98c253374264ed">PxU32</a>&nbsp;</td>
          <td class="paramname"> <em>touchHitBufferSize</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="structPxSweepHit.html">PxSweepHit</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>block</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">PxI32 &amp;&nbsp;</td>
          <td class="paramname"> <em>blockingShapeIndex</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool &amp;&nbsp;</td>
          <td class="paramname"> <em>overflow</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="structPxQueryFilterData.html">PxQueryFilterData</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>filterData</em> = <code><a class="el" href="structPxQueryFilterData.html">PxQueryFilterData</a>()</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classPxQueryFilterCallback.html">PxQueryFilterCallback</a> *&nbsp;</td>
          <td class="paramname"> <em>filterCall</em> = <code>NULL</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="structPxQueryCache.html">PxQueryCache</a> *&nbsp;</td>
          <td class="paramname"> <em>cache</em> = <code>NULL</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const PxReal&nbsp;</td>
          <td class="paramname"> <em>inflation</em> = <code>0.0f</code></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>
Performs a linear sweep through space with the body's geometry objects, returning all overlaps. 
<p>
<dl class="note" compact><dt><b>Note:</b></dt><dd>Supported geometries are: box, sphere, capsule, convex. Other geometry types will be ignored.</dd></dl>
This function sweeps all shapes attached to a given rigid body through space and reports all objects in the scene that intersect any of the shapes' swept paths until there are no more objects to report or a blocking hit is encountered.<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>body</em>&nbsp;</td><td>The rigid body to sweep. </td></tr>
    <tr><td valign="top"><tt>[in]</tt>&nbsp;</td><td valign="top"><em>scene</em>&nbsp;</td><td>The scene object to process the query. </td></tr>
    <tr><td valign="top"><tt>[in]</tt>&nbsp;</td><td valign="top"><em>unitDir</em>&nbsp;</td><td>Normalized direction of the sweep. </td></tr>
    <tr><td valign="top"><tt>[in]</tt>&nbsp;</td><td valign="top"><em>distance</em>&nbsp;</td><td>Sweep distance. Needs to be larger than 0. </td></tr>
    <tr><td valign="top"><tt>[in]</tt>&nbsp;</td><td valign="top"><em>outputFlags</em>&nbsp;</td><td>Specifies which properties should be written to the hit information. </td></tr>
    <tr><td valign="top"><tt>[out]</tt>&nbsp;</td><td valign="top"><em>touchHitBuffer</em>&nbsp;</td><td>Raycast hit information buffer. If the buffer overflows, an arbitrary subset of touch hits is returned (typically the query should be restarted with a larger buffer). </td></tr>
    <tr><td valign="top"><tt>[out]</tt>&nbsp;</td><td valign="top"><em>touchHitShapeIndices</em>&nbsp;</td><td>After the query is completed, touchHitShapeIndices[i] will contain the body index that caused the hit stored in hitBuffer[i] </td></tr>
    <tr><td valign="top"><tt>[in]</tt>&nbsp;</td><td valign="top"><em>touchHitBufferSize</em>&nbsp;</td><td>Size of both touch hit buffers in elements. </td></tr>
    <tr><td valign="top"><tt>[out]</tt>&nbsp;</td><td valign="top"><em>block</em>&nbsp;</td><td>Closest blocking hit is returned via this reference. </td></tr>
    <tr><td valign="top"><tt>[out]</tt>&nbsp;</td><td valign="top"><em>blockingShapeIndex</em>&nbsp;</td><td>Set to -1 if if a blocking hit was not found, otherwise set to closest blocking hit shape index. The touching hits are reported separately in hitBuffer. </td></tr>
    <tr><td valign="top"><tt>[out]</tt>&nbsp;</td><td valign="top"><em>overflow</em>&nbsp;</td><td>Set to true if touchHitBuffer didn't have enough space for all results. Touch hits will be incomplete if overflow occurred. Possible solution is to restart the query with a larger buffer. </td></tr>
    <tr><td valign="top"><tt>[in]</tt>&nbsp;</td><td valign="top"><em>filterData</em>&nbsp;</td><td>If any word in filterData.data is non-zero then filterData.data will be used for filtering, otherwise shape-&gt;getQueryFilterData() will be used instead. </td></tr>
    <tr><td valign="top"><tt>[in]</tt>&nbsp;</td><td valign="top"><em>filterCall</em>&nbsp;</td><td>Custom filtering logic (optional). Only used if the corresponding <a class="el" href="structPxQueryFlag.html" title="Filtering flags for scene queries.">PxQueryFlag</a> flags are set. If NULL, all hits are assumed to be blocking. </td></tr>
    <tr><td valign="top"><tt>[in]</tt>&nbsp;</td><td valign="top"><em>cache</em>&nbsp;</td><td>Cached hit shape (optional). Ray is tested against cached shape first then against the scene. Note: Filtering is not executed for a cached shape if supplied; instead, if a hit is found, it is assumed to be a blocking hit. </td></tr>
    <tr><td valign="top"><tt>[in]</tt>&nbsp;</td><td valign="top"><em>inflation</em>&nbsp;</td><td>This parameter creates a skin around the swept geometry which increases its extents for sweeping. The sweep will register a hit as soon as the skin touches a shape, and will return the corresponding distance and normal.</td></tr>
  </table>
</dl>
<dl class="return" compact><dt><b>Returns:</b></dt><dd>the number of touching hits. If overflow is set to true, the results are incomplete. In case of overflow there are also no guarantees that all touching hits returned are closer than the blocking hit.</dd></dl>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="classPxScene.html" title="A scene is a collection of bodies, particle systems and constraints which can interact...">PxScene</a> <a class="el" href="group__scenequery.html#gacf083b040f6c841644782282171bd61" title="Flags typedef for the set of bits defined in PxQueryFlag.">PxQueryFlags</a> <a class="el" href="structPxFilterData.html" title="PxFilterData is user-definable data which gets passed into the collision filtering...">PxFilterData</a> <a class="el" href="group__scenequery.html#ga1264802560d96e1740850b2e1a9856b" title="Batched query pre-filter shader.">PxBatchQueryPreFilterShader</a> <a class="el" href="group__scenequery.html#g043a6549307b8fd63c96f48edafddad0" title="Batched query post-filter shader.">PxBatchQueryPostFilterShader</a> <a class="el" href="structPxSweepHit.html" title="Stores results of sweep queries.">PxSweepHit</a> </dd></dl>

</div>
</div><p>
<a class="anchor" name="bff916a23a3b9f0e362d1ba2345f45dd"></a><!-- doxytag: member="PxRigidBodyExt::linearSweepSingle" ref="bff916a23a3b9f0e362d1ba2345f45dd" args="(PxRigidBody &amp;body, PxScene &amp;scene, const PxVec3 &amp;unitDir, const PxReal distance, PxHitFlags outputFlags, PxSweepHit &amp;closestHit, PxU32 &amp;shapeIndex, const PxQueryFilterData &amp;filterData=PxQueryFilterData(), PxQueryFilterCallback *filterCall=NULL, const PxQueryCache *cache=NULL, const PxReal inflation=0.0f)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static bool PxRigidBodyExt::linearSweepSingle           </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classPxRigidBody.html">PxRigidBody</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>body</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classPxScene.html">PxScene</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>scene</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="classPxVec3.html">PxVec3</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>unitDir</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const PxReal&nbsp;</td>
          <td class="paramname"> <em>distance</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">PxHitFlags&nbsp;</td>
          <td class="paramname"> <em>outputFlags</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="structPxSweepHit.html">PxSweepHit</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>closestHit</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__foundation.html#gcce5749db3dcfb916e98c253374264ed">PxU32</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>shapeIndex</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="structPxQueryFilterData.html">PxQueryFilterData</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>filterData</em> = <code><a class="el" href="structPxQueryFilterData.html">PxQueryFilterData</a>()</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classPxQueryFilterCallback.html">PxQueryFilterCallback</a> *&nbsp;</td>
          <td class="paramname"> <em>filterCall</em> = <code>NULL</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="structPxQueryCache.html">PxQueryCache</a> *&nbsp;</td>
          <td class="paramname"> <em>cache</em> = <code>NULL</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const PxReal&nbsp;</td>
          <td class="paramname"> <em>inflation</em> = <code>0.0f</code></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>
Performs a linear sweep through space with the body's geometry objects. 
<p>
<dl class="note" compact><dt><b>Note:</b></dt><dd>Supported geometries are: box, sphere, capsule, convex. Other geometry types will be ignored. <p>
If eTOUCH is returned from the filter callback, it will trigger an error and the hit will be discarded.</dd></dl>
The function sweeps all shapes attached to a given rigid body through space and reports the nearest object in the scene which intersects any of of the shapes swept paths. Information about the closest intersection is written to a <a class="el" href="structPxSweepHit.html" title="Stores results of sweep queries.">PxSweepHit</a> structure.<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>body</em>&nbsp;</td><td>The rigid body to sweep. </td></tr>
    <tr><td valign="top"><tt>[in]</tt>&nbsp;</td><td valign="top"><em>scene</em>&nbsp;</td><td>The scene object to process the query. </td></tr>
    <tr><td valign="top"><tt>[in]</tt>&nbsp;</td><td valign="top"><em>unitDir</em>&nbsp;</td><td>Normalized direction of the sweep. </td></tr>
    <tr><td valign="top"><tt>[in]</tt>&nbsp;</td><td valign="top"><em>distance</em>&nbsp;</td><td>Sweep distance. Needs to be larger than 0. </td></tr>
    <tr><td valign="top"><tt>[in]</tt>&nbsp;</td><td valign="top"><em>outputFlags</em>&nbsp;</td><td>Specifies which properties should be written to the hit information. </td></tr>
    <tr><td valign="top"><tt>[out]</tt>&nbsp;</td><td valign="top"><em>closestHit</em>&nbsp;</td><td>Closest hit result. </td></tr>
    <tr><td valign="top"><tt>[out]</tt>&nbsp;</td><td valign="top"><em>shapeIndex</em>&nbsp;</td><td>Index of the body shape that caused the closest hit. </td></tr>
    <tr><td valign="top"><tt>[in]</tt>&nbsp;</td><td valign="top"><em>filterData</em>&nbsp;</td><td>If any word in filterData.data is non-zero then filterData.data will be used for filtering, otherwise shape-&gt;getQueryFilterData() will be used instead. </td></tr>
    <tr><td valign="top"><tt>[in]</tt>&nbsp;</td><td valign="top"><em>filterCall</em>&nbsp;</td><td>Custom filtering logic (optional). Only used if the corresponding <a class="el" href="structPxQueryFlag.html" title="Filtering flags for scene queries.">PxQueryFlag</a> flags are set. If NULL, all hits are assumed to be blocking. </td></tr>
    <tr><td valign="top"><tt>[in]</tt>&nbsp;</td><td valign="top"><em>cache</em>&nbsp;</td><td>Cached hit shape (optional). Ray is tested against cached shape first then against the scene. Note: Filtering is not executed for a cached shape if supplied; instead, if a hit is found, it is assumed to be a blocking hit. </td></tr>
    <tr><td valign="top"><tt>[in]</tt>&nbsp;</td><td valign="top"><em>inflation</em>&nbsp;</td><td>This parameter creates a skin around the swept geometry which increases its extents for sweeping. The sweep will register a hit as soon as the skin touches a shape, and will return the corresponding distance and normal.</td></tr>
  </table>
</dl>
<dl class="return" compact><dt><b>Returns:</b></dt><dd>True if a blocking hit was found.</dd></dl>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="classPxScene.html" title="A scene is a collection of bodies, particle systems and constraints which can interact...">PxScene</a> <a class="el" href="group__scenequery.html#gacf083b040f6c841644782282171bd61" title="Flags typedef for the set of bits defined in PxQueryFlag.">PxQueryFlags</a> <a class="el" href="structPxFilterData.html" title="PxFilterData is user-definable data which gets passed into the collision filtering...">PxFilterData</a> <a class="el" href="group__scenequery.html#ga1264802560d96e1740850b2e1a9856b" title="Batched query pre-filter shader.">PxBatchQueryPreFilterShader</a> <a class="el" href="group__scenequery.html#g043a6549307b8fd63c96f48edafddad0" title="Batched query post-filter shader.">PxBatchQueryPostFilterShader</a> <a class="el" href="structPxSweepHit.html" title="Stores results of sweep queries.">PxSweepHit</a> </dd></dl>

</div>
</div><p>
<a class="anchor" name="33cb51d74c87d8b6f8a33c7e3580372d"></a><!-- doxytag: member="PxRigidBodyExt::setMassAndUpdateInertia" ref="33cb51d74c87d8b6f8a33c7e3580372d" args="(PxRigidBody &amp;body, PxReal mass, const PxVec3 *massLocalPose=NULL, bool includeNonSimShapes=false)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static bool PxRigidBodyExt::setMassAndUpdateInertia           </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classPxRigidBody.html">PxRigidBody</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>body</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">PxReal&nbsp;</td>
          <td class="paramname"> <em>mass</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="classPxVec3.html">PxVec3</a> *&nbsp;</td>
          <td class="paramname"> <em>massLocalPose</em> = <code>NULL</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&nbsp;</td>
          <td class="paramname"> <em>includeNonSimShapes</em> = <code>false</code></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>
Computation of mass properties for a rigid body actor. 
<p>
This method sets the mass, inertia and center of mass of a rigid body. The mass is set to the user-supplied value, and the inertia and center of mass are computed according to the rigid body's shapes and the input mass.<p>
If no collision shapes are found, the inertia tensor is set to (1,1,1)<p>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="classPxRigidBodyExt.html#769be90cdb138897ce426aa04ac0a1e7" title="Computation of mass properties for a rigid body actor.">updateMassAndInertia</a> for more details.</dd></dl>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"><tt>[in,out]</tt>&nbsp;</td><td valign="top"><em>body</em>&nbsp;</td><td>The rigid body for which to set the mass and centre of mass local pose properties. </td></tr>
    <tr><td valign="top"><tt>[in]</tt>&nbsp;</td><td valign="top"><em>mass</em>&nbsp;</td><td>The mass of the body. Must be greater than 0. </td></tr>
    <tr><td valign="top"><tt>[in]</tt>&nbsp;</td><td valign="top"><em>massLocalPose</em>&nbsp;</td><td>The center of mass relative to the actor frame. If set to null then (0,0,0) is assumed. </td></tr>
    <tr><td valign="top"><tt>[in]</tt>&nbsp;</td><td valign="top"><em>includeNonSimShapes</em>&nbsp;</td><td>True if all kind of shapes (<a class="el" href="structPxShapeFlag.html#6edb481aaa3a998c5d6dd3fc4ad87f1abc7ec24b00ed57f3914482f0706c6273" title="The shape will partake in scene queries (ray casts, overlap tests, sweeps, ...).">PxShapeFlag::eSCENE_QUERY_SHAPE</a>, <a class="el" href="structPxShapeFlag.html#6edb481aaa3a998c5d6dd3fc4ad87f1aef2b90024dc86be72b68bbaf94a5821d" title="The shape is a trigger which can send reports whenever other shapes enter/leave its...">PxShapeFlag::eTRIGGER_SHAPE</a>, <a class="el" href="structPxShapeFlag.html#6edb481aaa3a998c5d6dd3fc4ad87f1a760547ce999141103f3d0a1289063ead" title="Sets the shape to be a particle drain.">PxShapeFlag::ePARTICLE_DRAIN</a>) should be taken into account. </td></tr>
  </table>
</dl>
<dl class="return" compact><dt><b>Returns:</b></dt><dd>Boolean. True on success else false.</dd></dl>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="classPxRigidBody.html#b152773926fe7b222d61e982c3cb6adf" title="Sets the pose of the center of mass relative to the actor.">PxRigidBody::setCMassLocalPose</a> <a class="el" href="classPxRigidBody.html#755d0c8a8d1dd8b29e59d50a6dfda5fd" title="Sets the inertia tensor, using a parameter specified in mass space coordinates.">PxRigidBody::setMassSpaceInertiaTensor</a> <a class="el" href="classPxRigidBody.html#8a697a7a4b9bdd2c83a68e84b9bc3a35" title="Sets the mass of a dynamic actor.">PxRigidBody::setMass</a> </dd></dl>

</div>
</div><p>
<a class="anchor" name="b8f6af57a0fde875c41e5d747dec49fb"></a><!-- doxytag: member="PxRigidBodyExt::setMassAndUpdateInertia" ref="b8f6af57a0fde875c41e5d747dec49fb" args="(PxRigidBody &amp;body, const PxReal *shapeMasses, PxU32 shapeMassCount, const PxVec3 *massLocalPose=NULL, bool includeNonSimShapes=false)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static bool PxRigidBodyExt::setMassAndUpdateInertia           </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classPxRigidBody.html">PxRigidBody</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>body</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const PxReal *&nbsp;</td>
          <td class="paramname"> <em>shapeMasses</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__foundation.html#gcce5749db3dcfb916e98c253374264ed">PxU32</a>&nbsp;</td>
          <td class="paramname"> <em>shapeMassCount</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="classPxVec3.html">PxVec3</a> *&nbsp;</td>
          <td class="paramname"> <em>massLocalPose</em> = <code>NULL</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&nbsp;</td>
          <td class="paramname"> <em>includeNonSimShapes</em> = <code>false</code></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>
Computation of mass properties for a rigid body actor. 
<p>
This method sets the mass, inertia and center of mass of a rigid body. The mass is set to the sum of all user-supplied shape mass values, and the inertia and center of mass are computed according to the rigid body's shapes and the per shape mass input values.<p>
If no collision shapes are found, the inertia tensor is set to (1,1,1)<p>
<dl class="note" compact><dt><b>Note:</b></dt><dd>If a single mass value should be used for the actor as a whole then the overloaded method <a class="el" href="classPxRigidBodyExt.html#b8f6af57a0fde875c41e5d747dec49fb" title="Computation of mass properties for a rigid body actor.">setMassAndUpdateInertia()</a> with a single mass parameter can be used instead.</dd></dl>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="classPxRigidBodyExt.html#769be90cdb138897ce426aa04ac0a1e7" title="Computation of mass properties for a rigid body actor.">updateMassAndInertia</a> for more details.</dd></dl>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"><tt>[in,out]</tt>&nbsp;</td><td valign="top"><em>body</em>&nbsp;</td><td>The rigid body for which to set the mass and centre of mass local pose properties. </td></tr>
    <tr><td valign="top"><tt>[in]</tt>&nbsp;</td><td valign="top"><em>shapeMasses</em>&nbsp;</td><td>The per shape mass values. There must be one entry for each shape which has the <a class="el" href="structPxShapeFlag.html#6edb481aaa3a998c5d6dd3fc4ad87f1a7fa4fea0eecda9cc80a7aaa11a22df52" title="The shape will partake in collision in the physical simulation.">PxShapeFlag::eSIMULATION_SHAPE</a> set. Other shapes are ignored. The mass values must be greater than 0. </td></tr>
    <tr><td valign="top"><tt>[in]</tt>&nbsp;</td><td valign="top"><em>shapeMassCount</em>&nbsp;</td><td>The number of provided mass values. </td></tr>
    <tr><td valign="top"><tt>[in]</tt>&nbsp;</td><td valign="top"><em>massLocalPose</em>&nbsp;</td><td>The center of mass relative to the actor frame. If set to null then (0,0,0) is assumed. </td></tr>
    <tr><td valign="top"><tt>[in]</tt>&nbsp;</td><td valign="top"><em>includeNonSimShapes</em>&nbsp;</td><td>True if all kind of shapes (<a class="el" href="structPxShapeFlag.html#6edb481aaa3a998c5d6dd3fc4ad87f1abc7ec24b00ed57f3914482f0706c6273" title="The shape will partake in scene queries (ray casts, overlap tests, sweeps, ...).">PxShapeFlag::eSCENE_QUERY_SHAPE</a>, <a class="el" href="structPxShapeFlag.html#6edb481aaa3a998c5d6dd3fc4ad87f1aef2b90024dc86be72b68bbaf94a5821d" title="The shape is a trigger which can send reports whenever other shapes enter/leave its...">PxShapeFlag::eTRIGGER_SHAPE</a>, <a class="el" href="structPxShapeFlag.html#6edb481aaa3a998c5d6dd3fc4ad87f1a760547ce999141103f3d0a1289063ead" title="Sets the shape to be a particle drain.">PxShapeFlag::ePARTICLE_DRAIN</a>) should be taken into account. </td></tr>
  </table>
</dl>
<dl class="return" compact><dt><b>Returns:</b></dt><dd>Boolean. True on success else false.</dd></dl>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="classPxRigidBody.html#b152773926fe7b222d61e982c3cb6adf" title="Sets the pose of the center of mass relative to the actor.">PxRigidBody::setCMassLocalPose</a> <a class="el" href="classPxRigidBody.html#755d0c8a8d1dd8b29e59d50a6dfda5fd" title="Sets the inertia tensor, using a parameter specified in mass space coordinates.">PxRigidBody::setMassSpaceInertiaTensor</a> <a class="el" href="classPxRigidBody.html#8a697a7a4b9bdd2c83a68e84b9bc3a35" title="Sets the mass of a dynamic actor.">PxRigidBody::setMass</a> </dd></dl>

</div>
</div><p>
<a class="anchor" name="3799da4d9faefd65517222250bacf33a"></a><!-- doxytag: member="PxRigidBodyExt::updateMassAndInertia" ref="3799da4d9faefd65517222250bacf33a" args="(PxRigidBody &amp;body, PxReal density, const PxVec3 *massLocalPose=NULL, bool includeNonSimShapes=false)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static bool PxRigidBodyExt::updateMassAndInertia           </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classPxRigidBody.html">PxRigidBody</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>body</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">PxReal&nbsp;</td>
          <td class="paramname"> <em>density</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="classPxVec3.html">PxVec3</a> *&nbsp;</td>
          <td class="paramname"> <em>massLocalPose</em> = <code>NULL</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&nbsp;</td>
          <td class="paramname"> <em>includeNonSimShapes</em> = <code>false</code></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>
Computation of mass properties for a rigid body actor. 
<p>
See previous method for details.<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"><tt>[in,out]</tt>&nbsp;</td><td valign="top"><em>body</em>&nbsp;</td><td>The rigid body. </td></tr>
    <tr><td valign="top"><tt>[in]</tt>&nbsp;</td><td valign="top"><em>density</em>&nbsp;</td><td>The density of the body. Used to compute the mass of the body. The density must be greater than 0. </td></tr>
    <tr><td valign="top"><tt>[in]</tt>&nbsp;</td><td valign="top"><em>massLocalPose</em>&nbsp;</td><td>The center of mass relative to the actor frame. If set to null then (0,0,0) is assumed. </td></tr>
    <tr><td valign="top"><tt>[in]</tt>&nbsp;</td><td valign="top"><em>includeNonSimShapes</em>&nbsp;</td><td>True if all kind of shapes (<a class="el" href="structPxShapeFlag.html#6edb481aaa3a998c5d6dd3fc4ad87f1abc7ec24b00ed57f3914482f0706c6273" title="The shape will partake in scene queries (ray casts, overlap tests, sweeps, ...).">PxShapeFlag::eSCENE_QUERY_SHAPE</a>, <a class="el" href="structPxShapeFlag.html#6edb481aaa3a998c5d6dd3fc4ad87f1aef2b90024dc86be72b68bbaf94a5821d" title="The shape is a trigger which can send reports whenever other shapes enter/leave its...">PxShapeFlag::eTRIGGER_SHAPE</a>, <a class="el" href="structPxShapeFlag.html#6edb481aaa3a998c5d6dd3fc4ad87f1a760547ce999141103f3d0a1289063ead" title="Sets the shape to be a particle drain.">PxShapeFlag::ePARTICLE_DRAIN</a>) should be taken into account. </td></tr>
  </table>
</dl>
<dl class="return" compact><dt><b>Returns:</b></dt><dd>Boolean. True on success else false.</dd></dl>
<dl class="see" compact><dt><b>See also:</b></dt><dd>PxRigidBody::setMassLocalPose <a class="el" href="classPxRigidBody.html#755d0c8a8d1dd8b29e59d50a6dfda5fd" title="Sets the inertia tensor, using a parameter specified in mass space coordinates.">PxRigidBody::setMassSpaceInertiaTensor</a> <a class="el" href="classPxRigidBody.html#8a697a7a4b9bdd2c83a68e84b9bc3a35" title="Sets the mass of a dynamic actor.">PxRigidBody::setMass</a> </dd></dl>

</div>
</div><p>
<a class="anchor" name="769be90cdb138897ce426aa04ac0a1e7"></a><!-- doxytag: member="PxRigidBodyExt::updateMassAndInertia" ref="769be90cdb138897ce426aa04ac0a1e7" args="(PxRigidBody &amp;body, const PxReal *shapeDensities, PxU32 shapeDensityCount, const PxVec3 *massLocalPose=NULL, bool includeNonSimShapes=false)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static bool PxRigidBodyExt::updateMassAndInertia           </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classPxRigidBody.html">PxRigidBody</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>body</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const PxReal *&nbsp;</td>
          <td class="paramname"> <em>shapeDensities</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__foundation.html#gcce5749db3dcfb916e98c253374264ed">PxU32</a>&nbsp;</td>
          <td class="paramname"> <em>shapeDensityCount</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="classPxVec3.html">PxVec3</a> *&nbsp;</td>
          <td class="paramname"> <em>massLocalPose</em> = <code>NULL</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&nbsp;</td>
          <td class="paramname"> <em>includeNonSimShapes</em> = <code>false</code></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>
Computation of mass properties for a rigid body actor. 
<p>
To simulate a dynamic rigid actor, the SDK needs a mass and an inertia tensor.<p>
This method offers functionality to compute the necessary mass and inertia properties based on the shapes declared in the <a class="el" href="classPxRigidBody.html" title="PxRigidBody is a base class shared between dynamic rigid body objects.">PxRigidBody</a> descriptor and some additionally specified parameters. For each shape, the shape geometry, the shape positioning within the actor and the specified shape density are used to compute the body's mass and inertia properties.<p>
<ul>
<li>
Shapes without <a class="el" href="structPxShapeFlag.html#6edb481aaa3a998c5d6dd3fc4ad87f1a7fa4fea0eecda9cc80a7aaa11a22df52" title="The shape will partake in collision in the physical simulation.">PxShapeFlag::eSIMULATION_SHAPE</a> set are ignored unless includeNonSimShapes is true. </li>
<li>
Shapes with plane, triangle mesh or heightfield geometry and <a class="el" href="structPxShapeFlag.html#6edb481aaa3a998c5d6dd3fc4ad87f1a7fa4fea0eecda9cc80a7aaa11a22df52" title="The shape will partake in collision in the physical simulation.">PxShapeFlag::eSIMULATION_SHAPE</a> set are not allowed for <a class="el" href="classPxRigidBody.html" title="PxRigidBody is a base class shared between dynamic rigid body objects.">PxRigidBody</a> collision. </li>
</ul>
<p>
This method will set the mass, center of mass, and inertia tensor<p>
if no collision shapes are found, the inertia tensor is set to (1,1,1) and the mass to 1<p>
if massLocalPose is non-NULL, the rigid body's center of mass parameter will be set to the user provided value (massLocalPose) and the inertia tensor will be resolved at that point.<p>
<dl class="note" compact><dt><b>Note:</b></dt><dd>If all shapes of the actor have the same density then the overloaded method <a class="el" href="classPxRigidBodyExt.html#769be90cdb138897ce426aa04ac0a1e7" title="Computation of mass properties for a rigid body actor.">updateMassAndInertia()</a> with a single density parameter can be used instead.</dd></dl>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"><tt>[in,out]</tt>&nbsp;</td><td valign="top"><em>body</em>&nbsp;</td><td>The rigid body. </td></tr>
    <tr><td valign="top"><tt>[in]</tt>&nbsp;</td><td valign="top"><em>shapeDensities</em>&nbsp;</td><td>The per shape densities. There must be one entry for each shape which has the <a class="el" href="structPxShapeFlag.html#6edb481aaa3a998c5d6dd3fc4ad87f1a7fa4fea0eecda9cc80a7aaa11a22df52" title="The shape will partake in collision in the physical simulation.">PxShapeFlag::eSIMULATION_SHAPE</a> set (or for all shapes if includeNonSimShapes is set to true). Other shapes are ignored. The density values must be greater than 0. </td></tr>
    <tr><td valign="top"><tt>[in]</tt>&nbsp;</td><td valign="top"><em>shapeDensityCount</em>&nbsp;</td><td>The number of provided density values. </td></tr>
    <tr><td valign="top"><tt>[in]</tt>&nbsp;</td><td valign="top"><em>massLocalPose</em>&nbsp;</td><td>The center of mass relative to the actor frame. If set to null then (0,0,0) is assumed. </td></tr>
    <tr><td valign="top"><tt>[in]</tt>&nbsp;</td><td valign="top"><em>includeNonSimShapes</em>&nbsp;</td><td>True if all kind of shapes (<a class="el" href="structPxShapeFlag.html#6edb481aaa3a998c5d6dd3fc4ad87f1abc7ec24b00ed57f3914482f0706c6273" title="The shape will partake in scene queries (ray casts, overlap tests, sweeps, ...).">PxShapeFlag::eSCENE_QUERY_SHAPE</a>, <a class="el" href="structPxShapeFlag.html#6edb481aaa3a998c5d6dd3fc4ad87f1aef2b90024dc86be72b68bbaf94a5821d" title="The shape is a trigger which can send reports whenever other shapes enter/leave its...">PxShapeFlag::eTRIGGER_SHAPE</a>, <a class="el" href="structPxShapeFlag.html#6edb481aaa3a998c5d6dd3fc4ad87f1a760547ce999141103f3d0a1289063ead" title="Sets the shape to be a particle drain.">PxShapeFlag::ePARTICLE_DRAIN</a>) should be taken into account. </td></tr>
  </table>
</dl>
<dl class="return" compact><dt><b>Returns:</b></dt><dd>Boolean. True on success else false.</dd></dl>
<dl class="see" compact><dt><b>See also:</b></dt><dd>PxRigidBody::setMassLocalPose <a class="el" href="classPxRigidBody.html#755d0c8a8d1dd8b29e59d50a6dfda5fd" title="Sets the inertia tensor, using a parameter specified in mass space coordinates.">PxRigidBody::setMassSpaceInertiaTensor</a> <a class="el" href="classPxRigidBody.html#8a697a7a4b9bdd2c83a68e84b9bc3a35" title="Sets the mass of a dynamic actor.">PxRigidBody::setMass</a> </dd></dl>

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