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
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
|
<html>
<head>
<title>NVIDIA(R) PhysX(R) SDK 3.4 API Reference: PxShape 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>
<a class="qindex" href="hierarchy.html">Class Hierarchy</a>
<a class="qindex" href="annotated.html">Compound List</a>
<a class="qindex" href="functions.html">Compound Members</a>
</center>
<hr class="second">
</div>
<!-- Generated by Doxygen 1.5.8 -->
<div class="contents">
<h1>PxShape Class Reference<br>
<small>
[<a class="el" href="group__physics.html">Physics</a>]</small>
</h1><!-- doxytag: class="PxShape" --><!-- doxytag: inherits="PxBase" -->Abstract class for collision shapes.
<a href="#_details">More...</a>
<p>
<code>#include <<a class="el" href="PxShape_8h-source.html">PxShape.h</a>></code>
<p>
<div class="dynheader">
Inheritance diagram for PxShape:</div>
<div class="dynsection">
<p><center><img src="classPxShape__inherit__graph.png" border="0" usemap="#PxShape__inherit__map" alt="Inheritance graph"></center>
<map name="PxShape__inherit__map">
<area shape="rect" href="classPxBase.html" title="Base class for objects that can be members of a PxCollection." alt="PxBase" coords="11,16,67,37"></map>
<center><font size="2">[<a target="top" href="graph_legend.html">legend</a>]</font></center></div>
<div class="dynheader">
Collaboration diagram for PxShape:</div>
<div class="dynsection">
<p><center><img src="classPxShape__coll__graph.png" border="0" usemap="#PxShape__coll__map" alt="Collaboration graph"></center>
<map name="PxShape__coll__map">
<area shape="rect" href="classPxBase.html" title="Base class for objects that can be members of a PxCollection." alt="PxBase" coords="97,106,153,128"><area shape="rect" href="classPxFlags.html" title="PxFlags\< PxBaseFlag::Enum, PxU16 \>" alt="PxFlags\< PxBaseFlag::Enum, PxU16 \>" coords="7,16,244,37"></map>
<center><font size="2">[<a target="top" href="graph_legend.html">legend</a>]</font></center></div>
<p>
<a href="classPxShape-members.html">List of all members.</a><table border="0" cellpadding="0" cellspacing="0">
<tr><td></td></tr>
<tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classPxShape.html#165dc6eaf5c58997b90b06176220be37">release</a> ()=0</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Decrements the reference count of a shape and releases it if the new reference count is zero. <a href="#165dc6eaf5c58997b90b06176220be37"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classPxShape.html#46a4aa44d34de7625129c5d449c26e5d">acquireReference</a> ()=0</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Acquires a counted reference to a shape. <a href="#46a4aa44d34de7625129c5d449c26e5d"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual <a class="el" href="structPxGeometryType.html#efc79f72c4c479192ac19d41a6f30ed5">PxGeometryType::Enum</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classPxShape.html#8365c22a5780649bd890703b3ebc1f20">getGeometryType</a> () const =0</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Get the geometry type of the shape. <a href="#8365c22a5780649bd890703b3ebc1f20"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classPxShape.html#c6112e8c0ee9803eb3436bbaf673d98a">setGeometry</a> (const <a class="el" href="classPxGeometry.html">PxGeometry</a> &geometry)=0</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Adjust the geometry of the shape. <a href="#c6112e8c0ee9803eb3436bbaf673d98a"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual <a class="el" href="classPxGeometryHolder.html">PxGeometryHolder</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classPxShape.html#531b866a02c9dc59131bc9887c065ff8">getGeometry</a> () const =0</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Retrieve the geometry from the shape in a <a class="el" href="classPxGeometryHolder.html" title="Geometry holder class.">PxGeometryHolder</a> wrapper class. <a href="#531b866a02c9dc59131bc9887c065ff8"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classPxShape.html#e4fe68bfc7be057dae8d0c3eac5a725c">getBoxGeometry</a> (<a class="el" href="classPxBoxGeometry.html">PxBoxGeometry</a> &geometry) const =0</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Fetch the geometry of the shape. <a href="#e4fe68bfc7be057dae8d0c3eac5a725c"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classPxShape.html#d36c41170461ca897fa70433d23268fa">getSphereGeometry</a> (<a class="el" href="classPxSphereGeometry.html">PxSphereGeometry</a> &geometry) const =0</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Fetch the geometry of the shape. <a href="#d36c41170461ca897fa70433d23268fa"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classPxShape.html#8515335ab379ef0709b083ea09ce0a00">getCapsuleGeometry</a> (<a class="el" href="classPxCapsuleGeometry.html">PxCapsuleGeometry</a> &geometry) const =0</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Fetch the geometry of the shape. <a href="#8515335ab379ef0709b083ea09ce0a00"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classPxShape.html#fe05ad6f093d762abaf03e3e0c1de704">getPlaneGeometry</a> (<a class="el" href="classPxPlaneGeometry.html">PxPlaneGeometry</a> &geometry) const =0</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Fetch the geometry of the shape. <a href="#fe05ad6f093d762abaf03e3e0c1de704"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classPxShape.html#80bed1030a3740c7d033f65d97ee2ec4">getConvexMeshGeometry</a> (<a class="el" href="classPxConvexMeshGeometry.html">PxConvexMeshGeometry</a> &geometry) const =0</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Fetch the geometry of the shape. <a href="#80bed1030a3740c7d033f65d97ee2ec4"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classPxShape.html#e10e641c3e5d77993440abe64c1446ea">getTriangleMeshGeometry</a> (<a class="el" href="classPxTriangleMeshGeometry.html">PxTriangleMeshGeometry</a> &geometry) const =0</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Fetch the geometry of the shape. <a href="#e10e641c3e5d77993440abe64c1446ea"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classPxShape.html#3709d51079c4c809415d31087ebac65b">getHeightFieldGeometry</a> (<a class="el" href="classPxHeightFieldGeometry.html">PxHeightFieldGeometry</a> &geometry) const =0</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Fetch the geometry of the shape. <a href="#3709d51079c4c809415d31087ebac65b"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual <a class="el" href="classPxRigidActor.html">PxRigidActor</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classPxShape.html#4b66c8a3e1de304cc0a98df14ac2cdb3">getActor</a> () const =0</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Retrieves the actor which this shape is associated with. <a href="#4b66c8a3e1de304cc0a98df14ac2cdb3"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classPxShape.html#14fbf4de00134d17b85194487d68ff30">setMaterials</a> (<a class="el" href="classPxMaterial.html">PxMaterial</a> *const *materials, PxU16 materialCount)=0</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Assigns material(s) to the shape. <a href="#14fbf4de00134d17b85194487d68ff30"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual PxU16 </td><td class="memItemRight" valign="bottom"><a class="el" href="classPxShape.html#0166cefbe1d120da68db5f68ddd6ebbc">getNbMaterials</a> () const =0</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Returns the number of materials assigned to the shape. <a href="#0166cefbe1d120da68db5f68ddd6ebbc"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual <a class="el" href="group__foundation.html#gcce5749db3dcfb916e98c253374264ed">PxU32</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classPxShape.html#dbaf4b32d62babcbab918fc64d4fcae9">getMaterials</a> (<a class="el" href="classPxMaterial.html">PxMaterial</a> **userBuffer, <a class="el" href="group__foundation.html#gcce5749db3dcfb916e98c253374264ed">PxU32</a> bufferSize, <a class="el" href="group__foundation.html#gcce5749db3dcfb916e98c253374264ed">PxU32</a> startIndex=0) const =0</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Retrieve all the material pointers associated with the shape. <a href="#dbaf4b32d62babcbab918fc64d4fcae9"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual <a class="el" href="classPxMaterial.html">PxMaterial</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classPxShape.html#77dcd61c00720726ffcce1fe370f0042">getMaterialFromInternalFaceIndex</a> (<a class="el" href="group__foundation.html#gcce5749db3dcfb916e98c253374264ed">PxU32</a> faceIndex) const =0</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Retrieve material from given triangle index. <a href="#77dcd61c00720726ffcce1fe370f0042"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classPxShape.html#07c638b68e14de5e284a03dbcc128d27">setContactOffset</a> (PxReal contactOffset)=0</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Sets the contact offset. <a href="#07c638b68e14de5e284a03dbcc128d27"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual PxReal </td><td class="memItemRight" valign="bottom"><a class="el" href="classPxShape.html#3f0686821f3f8fe92103e31c293f118b">getContactOffset</a> () const =0</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Retrieves the contact offset. <a href="#3f0686821f3f8fe92103e31c293f118b"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classPxShape.html#413afb25b39a7a0cf0981aa01c6d7f8b">setRestOffset</a> (PxReal restOffset)=0</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Sets the rest offset. <a href="#413afb25b39a7a0cf0981aa01c6d7f8b"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual PxReal </td><td class="memItemRight" valign="bottom"><a class="el" href="classPxShape.html#060ff01d827d559fc8b11385a161eca0">getRestOffset</a> () const =0</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Retrieves the rest offset. <a href="#060ff01d827d559fc8b11385a161eca0"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classPxShape.html#3c879df184ef40514589c5aa3d1f2a33">setFlag</a> (<a class="el" href="structPxShapeFlag.html#6edb481aaa3a998c5d6dd3fc4ad87f1a">PxShapeFlag::Enum</a> flag, bool value)=0</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Sets shape flags. <a href="#3c879df184ef40514589c5aa3d1f2a33"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classPxShape.html#fc179cb4b2146af98c76623d2fc0db6e">setFlags</a> (<a class="el" href="classPxFlags.html">PxShapeFlags</a> inFlags)=0</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Sets shape flags. <a href="#fc179cb4b2146af98c76623d2fc0db6e"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual <a class="el" href="classPxFlags.html">PxShapeFlags</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classPxShape.html#cd44b1c761c14e6319475797ec4f9715">getFlags</a> () const =0</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Retrieves shape flags. <a href="#cd44b1c761c14e6319475797ec4f9715"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classPxShape.html#9797f4bf85e72881b3cb90d303a22b91">isExclusive</a> () const =0</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Returns true if the shape is exclusive to an actor. <a href="#9797f4bf85e72881b3cb90d303a22b91"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classPxShape.html#51a289ac174c48ccc8d0b09d3fd90508">setName</a> (const char *name)=0</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Sets a name string for the object that can be retrieved with <a class="el" href="classPxShape.html#800c362a0a6c6c120525876f56378959" title="retrieves the name string set with setName().">getName()</a>. <a href="#51a289ac174c48ccc8d0b09d3fd90508"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual const char * </td><td class="memItemRight" valign="bottom"><a class="el" href="classPxShape.html#800c362a0a6c6c120525876f56378959">getName</a> () const =0</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">retrieves the name string set with <a class="el" href="classPxShape.html#51a289ac174c48ccc8d0b09d3fd90508" title="Sets a name string for the object that can be retrieved with getName().">setName()</a>. <a href="#800c362a0a6c6c120525876f56378959"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual const char * </td><td class="memItemRight" valign="bottom"><a class="el" href="classPxShape.html#534106ef0a978dfb710a6b8e7c9443bd">getConcreteTypeName</a> () const </td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Returns string name of dynamic type. <a href="#534106ef0a978dfb710a6b8e7c9443bd"></a><br></td></tr>
<tr><td colspan="2"><div class="groupHeader">Pose Manipulation</div></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classPxShape.html#9f32c7cea3b5701de3f815cd64c978df">setLocalPose</a> (const <a class="el" href="classPxTransform.html">PxTransform</a> &pose)=0</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Sets the pose of the shape in actor space, i.e. relative to the actors to which they are attached. <a href="#9f32c7cea3b5701de3f815cd64c978df"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual <a class="el" href="classPxTransform.html">PxTransform</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classPxShape.html#f455638230d515adbfb561f1064e70a1">getLocalPose</a> () const =0</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Retrieves the pose of the shape in actor space, i.e. relative to the actor they are owned by. <a href="#f455638230d515adbfb561f1064e70a1"></a><br></td></tr>
<tr><td colspan="2"><div class="groupHeader">Collision Filtering</div></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classPxShape.html#a0c62176ed01c9fb14c26ad7c393963c">setSimulationFilterData</a> (const <a class="el" href="structPxFilterData.html">PxFilterData</a> &data)=0</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Sets the user definable collision filter data. <a href="#a0c62176ed01c9fb14c26ad7c393963c"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual <a class="el" href="structPxFilterData.html">PxFilterData</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classPxShape.html#bfa95e009f300060ba648637fb685686">getSimulationFilterData</a> () const =0</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Retrieves the shape's collision filter data. <a href="#bfa95e009f300060ba648637fb685686"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classPxShape.html#c98191c26e55ecebfd9eb4553c969fab">setQueryFilterData</a> (const <a class="el" href="structPxFilterData.html">PxFilterData</a> &data)=0</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Sets the user definable query filter data. <a href="#c98191c26e55ecebfd9eb4553c969fab"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual <a class="el" href="structPxFilterData.html">PxFilterData</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classPxShape.html#b6cbdfa3d01aa384f4d0109a591d1f12">getQueryFilterData</a> () const =0</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Retrieves the shape's Query filter data. <a href="#b6cbdfa3d01aa384f4d0109a591d1f12"></a><br></td></tr>
<tr><td colspan="2"><br><h2>Public Attributes</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void * </td><td class="memItemRight" valign="bottom"><a class="el" href="classPxShape.html#557b80df942f039122b0ee750d29c552">userData</a></td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">user can assign this to whatever, usually to create a 1:1 relationship with a user object. <a href="#557b80df942f039122b0ee750d29c552"></a><br></td></tr>
<tr><td colspan="2"><br><h2>Protected Member Functions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">PX_INLINE </td><td class="memItemRight" valign="bottom"><a class="el" href="classPxShape.html#74ff05bd6c8ac9db9fcae9be23c08d82">PxShape</a> (<a class="el" href="classPxFlags.html">PxBaseFlags</a> baseFlags)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">PX_INLINE </td><td class="memItemRight" valign="bottom"><a class="el" href="classPxShape.html#a7a1ba5182584faa6bddb15e4b3465c3">PxShape</a> (<a class="el" href="group__common.html#gc1fb4b256a5d900d394e89db170a2b79">PxType</a> concreteType, <a class="el" href="classPxFlags.html">PxBaseFlags</a> baseFlags)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual </td><td class="memItemRight" valign="bottom"><a class="el" href="classPxShape.html#7d037f8803d4dff457564e9903452e94">~PxShape</a> ()</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classPxShape.html#1bcf5d308c093487d38bf773f5e3f1c2">isKindOf</a> (const char *name) const </td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Returns whether a given type name matches with the type of this instance. <a href="#1bcf5d308c093487d38bf773f5e3f1c2"></a><br></td></tr>
</table>
<hr><a name="_details"></a><h2>Detailed Description</h2>
Abstract class for collision shapes.
<p>
Shapes are shared, reference counted objects.<p>
An instance can be created by calling the createShape() method of the <a class="el" href="classPxRigidActor.html" title="PxRigidActor represents a base class shared between dynamic and static rigid bodies...">PxRigidActor</a> class, or the createShape() method of the <a class="el" href="classPxPhysics.html" title="Abstract singleton factory class used for instancing objects in the Physics SDK.">PxPhysics</a> class.<p>
<h3>Visualizations</h3>
<p>
<ul>
<li><a class="el" href="structPxVisualizationParameter.html#dce8e8a77c144356b0968d2b9f79eb10714f24bab39d1bbe8b131bd10ef5552b" title="Visualize bounds (AABBs in world space).">PxVisualizationParameter::eCOLLISION_AABBS</a> </li>
<li><a class="el" href="structPxVisualizationParameter.html#dce8e8a77c144356b0968d2b9f79eb10515f4c3c72ee88d7507b52d6ccd14eab" title="Shape visualization.">PxVisualizationParameter::eCOLLISION_SHAPES</a> </li>
<li><a class="el" href="structPxVisualizationParameter.html#dce8e8a77c144356b0968d2b9f79eb100ad9dcb10f5f3d6ded3baecfc1e387d3" title="Shape axis visualization.">PxVisualizationParameter::eCOLLISION_AXES</a></li>
</ul>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="classPxPhysics.html#bc564607f208cbc1944880172a3d62fe" title="Creates a shape which may be attached to multiple actors.">PxPhysics.createShape()</a> <a class="el" href="classPxRigidActor.html#428112f88e7d3ee8abdf378cb70511f8" title="Creates a new shape with default properties and a list of materials and adds it to...">PxRigidActor.createShape()</a> <a class="el" href="classPxBoxGeometry.html" title="Class representing the geometry of a box.">PxBoxGeometry</a> <a class="el" href="classPxSphereGeometry.html" title="A class representing the geometry of a sphere.">PxSphereGeometry</a> <a class="el" href="classPxCapsuleGeometry.html" title="Class representing the geometry of a capsule.">PxCapsuleGeometry</a> <a class="el" href="classPxPlaneGeometry.html" title="Class describing a plane geometry.">PxPlaneGeometry</a> <a class="el" href="classPxConvexMeshGeometry.html" title="Convex mesh geometry class.">PxConvexMeshGeometry</a> <a class="el" href="classPxTriangleMeshGeometry.html" title="Triangle mesh geometry class.">PxTriangleMeshGeometry</a> <a class="el" href="classPxHeightFieldGeometry.html" title="Height field geometry class.">PxHeightFieldGeometry</a> </dd></dl>
<hr><h2>Constructor & Destructor Documentation</h2>
<a class="anchor" name="74ff05bd6c8ac9db9fcae9be23c08d82"></a><!-- doxytag: member="PxShape::PxShape" ref="74ff05bd6c8ac9db9fcae9be23c08d82" args="(PxBaseFlags baseFlags)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">PX_INLINE PxShape::PxShape </td>
<td>(</td>
<td class="paramtype"><a class="el" href="classPxFlags.html">PxBaseFlags</a> </td>
<td class="paramname"> <em>baseFlags</em> </td>
<td> ) </td>
<td><code> [inline, protected]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
</div>
</div><p>
<a class="anchor" name="a7a1ba5182584faa6bddb15e4b3465c3"></a><!-- doxytag: member="PxShape::PxShape" ref="a7a1ba5182584faa6bddb15e4b3465c3" args="(PxType concreteType, PxBaseFlags baseFlags)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">PX_INLINE PxShape::PxShape </td>
<td>(</td>
<td class="paramtype"><a class="el" href="group__common.html#gc1fb4b256a5d900d394e89db170a2b79">PxType</a> </td>
<td class="paramname"> <em>concreteType</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="classPxFlags.html">PxBaseFlags</a> </td>
<td class="paramname"> <em>baseFlags</em></td><td> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td><code> [inline, protected]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
</div>
</div><p>
<a class="anchor" name="7d037f8803d4dff457564e9903452e94"></a><!-- doxytag: member="PxShape::~PxShape" ref="7d037f8803d4dff457564e9903452e94" args="()" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">virtual PxShape::~PxShape </td>
<td>(</td>
<td class="paramname"> </td>
<td> ) </td>
<td><code> [inline, protected, virtual]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
</div>
</div><p>
<hr><h2>Member Function Documentation</h2>
<a class="anchor" name="46a4aa44d34de7625129c5d449c26e5d"></a><!-- doxytag: member="PxShape::acquireReference" ref="46a4aa44d34de7625129c5d449c26e5d" args="()=0" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">virtual void PxShape::acquireReference </td>
<td>(</td>
<td class="paramname"> </td>
<td> ) </td>
<td><code> [pure virtual]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Acquires a counted reference to a shape.
<p>
This method increases the reference count of the shape by 1. Decrement the reference count by calling <a class="el" href="classPxShape.html#165dc6eaf5c58997b90b06176220be37" title="Decrements the reference count of a shape and releases it if the new reference count...">release()</a>
</div>
</div><p>
<a class="anchor" name="4b66c8a3e1de304cc0a98df14ac2cdb3"></a><!-- doxytag: member="PxShape::getActor" ref="4b66c8a3e1de304cc0a98df14ac2cdb3" args="() const =0" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">virtual <a class="el" href="classPxRigidActor.html">PxRigidActor</a>* PxShape::getActor </td>
<td>(</td>
<td class="paramname"> </td>
<td> ) </td>
<td> const<code> [pure virtual]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Retrieves the actor which this shape is associated with.
<p>
<dl class="return" compact><dt><b>Returns:</b></dt><dd>The actor this shape is associated with, if it is an exclusive shape, else NULL</dd></dl>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="classPxRigidStatic.html" title="PxRigidStatic represents a static rigid body simulation object in the physics SDK...">PxRigidStatic</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>
</div>
</div><p>
<a class="anchor" name="e4fe68bfc7be057dae8d0c3eac5a725c"></a><!-- doxytag: member="PxShape::getBoxGeometry" ref="e4fe68bfc7be057dae8d0c3eac5a725c" args="(PxBoxGeometry &geometry) const =0" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">virtual bool PxShape::getBoxGeometry </td>
<td>(</td>
<td class="paramtype"><a class="el" href="classPxBoxGeometry.html">PxBoxGeometry</a> & </td>
<td class="paramname"> <em>geometry</em> </td>
<td> ) </td>
<td> const<code> [pure virtual]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Fetch the geometry of the shape.
<p>
<dl class="note" compact><dt><b>Note:</b></dt><dd>If the type of geometry to extract does not match the geometry type of the shape then the method will return false and the passed in geometry descriptor is not modified.</dd></dl>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"><tt>[in]</tt> </td><td valign="top"><em>geometry</em> </td><td>The descriptor to save the shape's geometry data to. </td></tr>
</table>
</dl>
<dl class="return" compact><dt><b>Returns:</b></dt><dd>True on success else false</dd></dl>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="classPxGeometry.html" title="A geometry object.">PxGeometry</a> <a class="el" href="structPxGeometryType.html" title="A geometry type.">PxGeometryType</a> <a class="el" href="classPxShape.html#8365c22a5780649bd890703b3ebc1f20" title="Get the geometry type of the shape.">getGeometryType()</a> </dd></dl>
</div>
</div><p>
<a class="anchor" name="8515335ab379ef0709b083ea09ce0a00"></a><!-- doxytag: member="PxShape::getCapsuleGeometry" ref="8515335ab379ef0709b083ea09ce0a00" args="(PxCapsuleGeometry &geometry) const =0" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">virtual bool PxShape::getCapsuleGeometry </td>
<td>(</td>
<td class="paramtype"><a class="el" href="classPxCapsuleGeometry.html">PxCapsuleGeometry</a> & </td>
<td class="paramname"> <em>geometry</em> </td>
<td> ) </td>
<td> const<code> [pure virtual]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Fetch the geometry of the shape.
<p>
<dl class="note" compact><dt><b>Note:</b></dt><dd>If the type of geometry to extract does not match the geometry type of the shape then the method will return false and the passed in geometry descriptor is not modified.</dd></dl>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"><tt>[in]</tt> </td><td valign="top"><em>geometry</em> </td><td>The descriptor to save the shape's geometry data to. </td></tr>
</table>
</dl>
<dl class="return" compact><dt><b>Returns:</b></dt><dd>True on success else false</dd></dl>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="classPxGeometry.html" title="A geometry object.">PxGeometry</a> <a class="el" href="structPxGeometryType.html" title="A geometry type.">PxGeometryType</a> <a class="el" href="classPxShape.html#8365c22a5780649bd890703b3ebc1f20" title="Get the geometry type of the shape.">getGeometryType()</a> </dd></dl>
</div>
</div><p>
<a class="anchor" name="534106ef0a978dfb710a6b8e7c9443bd"></a><!-- doxytag: member="PxShape::getConcreteTypeName" ref="534106ef0a978dfb710a6b8e7c9443bd" args="() const " -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">virtual const char* PxShape::getConcreteTypeName </td>
<td>(</td>
<td class="paramname"> </td>
<td> ) </td>
<td> const<code> [inline, virtual]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Returns string name of dynamic type.
<p>
<dl class="return" compact><dt><b>Returns:</b></dt><dd>Class name of most derived type of this object. </dd></dl>
<p>Implements <a class="el" href="classPxBase.html#67fe206d8897ddce896c371ac8d789a9">PxBase</a>.</p>
</div>
</div><p>
<a class="anchor" name="3f0686821f3f8fe92103e31c293f118b"></a><!-- doxytag: member="PxShape::getContactOffset" ref="3f0686821f3f8fe92103e31c293f118b" args="() const =0" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">virtual PxReal PxShape::getContactOffset </td>
<td>(</td>
<td class="paramname"> </td>
<td> ) </td>
<td> const<code> [pure virtual]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Retrieves the contact offset.
<p>
<dl class="return" compact><dt><b>Returns:</b></dt><dd>The contact offset of the shape.</dd></dl>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="classPxShape.html#07c638b68e14de5e284a03dbcc128d27" title="Sets the contact offset.">setContactOffset()</a> </dd></dl>
</div>
</div><p>
<a class="anchor" name="80bed1030a3740c7d033f65d97ee2ec4"></a><!-- doxytag: member="PxShape::getConvexMeshGeometry" ref="80bed1030a3740c7d033f65d97ee2ec4" args="(PxConvexMeshGeometry &geometry) const =0" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">virtual bool PxShape::getConvexMeshGeometry </td>
<td>(</td>
<td class="paramtype"><a class="el" href="classPxConvexMeshGeometry.html">PxConvexMeshGeometry</a> & </td>
<td class="paramname"> <em>geometry</em> </td>
<td> ) </td>
<td> const<code> [pure virtual]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Fetch the geometry of the shape.
<p>
<dl class="note" compact><dt><b>Note:</b></dt><dd>If the type of geometry to extract does not match the geometry type of the shape then the method will return false and the passed in geometry descriptor is not modified.</dd></dl>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"><tt>[in]</tt> </td><td valign="top"><em>geometry</em> </td><td>The descriptor to save the shape's geometry data to. </td></tr>
</table>
</dl>
<dl class="return" compact><dt><b>Returns:</b></dt><dd>True on success else false</dd></dl>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="classPxGeometry.html" title="A geometry object.">PxGeometry</a> <a class="el" href="structPxGeometryType.html" title="A geometry type.">PxGeometryType</a> <a class="el" href="classPxShape.html#8365c22a5780649bd890703b3ebc1f20" title="Get the geometry type of the shape.">getGeometryType()</a> </dd></dl>
</div>
</div><p>
<a class="anchor" name="cd44b1c761c14e6319475797ec4f9715"></a><!-- doxytag: member="PxShape::getFlags" ref="cd44b1c761c14e6319475797ec4f9715" args="() const =0" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">virtual <a class="el" href="classPxFlags.html">PxShapeFlags</a> PxShape::getFlags </td>
<td>(</td>
<td class="paramname"> </td>
<td> ) </td>
<td> const<code> [pure virtual]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Retrieves shape flags.
<p>
<dl class="return" compact><dt><b>Returns:</b></dt><dd>The values of the shape flags.</dd></dl>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="structPxShapeFlag.html" title="Flags which affect the behavior of PxShapes.">PxShapeFlag</a> <a class="el" href="classPxShape.html#3c879df184ef40514589c5aa3d1f2a33" title="Sets shape flags.">setFlag()</a> </dd></dl>
</div>
</div><p>
<a class="anchor" name="531b866a02c9dc59131bc9887c065ff8"></a><!-- doxytag: member="PxShape::getGeometry" ref="531b866a02c9dc59131bc9887c065ff8" args="() const =0" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">virtual <a class="el" href="classPxGeometryHolder.html">PxGeometryHolder</a> PxShape::getGeometry </td>
<td>(</td>
<td class="paramname"> </td>
<td> ) </td>
<td> const<code> [pure virtual]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Retrieve the geometry from the shape in a <a class="el" href="classPxGeometryHolder.html" title="Geometry holder class.">PxGeometryHolder</a> wrapper class.
<p>
<dl class="return" compact><dt><b>Returns:</b></dt><dd>a <a class="el" href="classPxGeometryHolder.html" title="Geometry holder class.">PxGeometryHolder</a> object containing the geometry;</dd></dl>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="classPxGeometry.html" title="A geometry object.">PxGeometry</a> <a class="el" href="structPxGeometryType.html" title="A geometry type.">PxGeometryType</a> <a class="el" href="classPxShape.html#8365c22a5780649bd890703b3ebc1f20" title="Get the geometry type of the shape.">getGeometryType()</a> <a class="el" href="classPxShape.html#c6112e8c0ee9803eb3436bbaf673d98a" title="Adjust the geometry of the shape.">setGeometry()</a> </dd></dl>
<p>Referenced by <a class="el" href="PxShapeExt_8h-source.html#l00146">PxShapeExt::getWorldBounds()</a>, <a class="el" href="PxShapeExt_8h-source.html#l00104">PxShapeExt::overlap()</a>, <a class="el" href="PxShapeExt_8h-source.html#l00085">PxShapeExt::raycast()</a>, and <a class="el" href="PxShapeExt_8h-source.html#l00127">PxShapeExt::sweep()</a>.</p>
</div>
</div><p>
<a class="anchor" name="8365c22a5780649bd890703b3ebc1f20"></a><!-- doxytag: member="PxShape::getGeometryType" ref="8365c22a5780649bd890703b3ebc1f20" args="() const =0" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">virtual <a class="el" href="structPxGeometryType.html#efc79f72c4c479192ac19d41a6f30ed5">PxGeometryType::Enum</a> PxShape::getGeometryType </td>
<td>(</td>
<td class="paramname"> </td>
<td> ) </td>
<td> const<code> [pure virtual]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Get the geometry type of the shape.
<p>
<dl class="return" compact><dt><b>Returns:</b></dt><dd>Type of shape geometry.</dd></dl>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="structPxGeometryType.html" title="A geometry type.">PxGeometryType</a> </dd></dl>
</div>
</div><p>
<a class="anchor" name="3709d51079c4c809415d31087ebac65b"></a><!-- doxytag: member="PxShape::getHeightFieldGeometry" ref="3709d51079c4c809415d31087ebac65b" args="(PxHeightFieldGeometry &geometry) const =0" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">virtual bool PxShape::getHeightFieldGeometry </td>
<td>(</td>
<td class="paramtype"><a class="el" href="classPxHeightFieldGeometry.html">PxHeightFieldGeometry</a> & </td>
<td class="paramname"> <em>geometry</em> </td>
<td> ) </td>
<td> const<code> [pure virtual]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Fetch the geometry of the shape.
<p>
<dl class="note" compact><dt><b>Note:</b></dt><dd>If the type of geometry to extract does not match the geometry type of the shape then the method will return false and the passed in geometry descriptor is not modified.</dd></dl>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"><tt>[in]</tt> </td><td valign="top"><em>geometry</em> </td><td>The descriptor to save the shape's geometry data to. </td></tr>
</table>
</dl>
<dl class="return" compact><dt><b>Returns:</b></dt><dd>True on success else false</dd></dl>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="classPxGeometry.html" title="A geometry object.">PxGeometry</a> <a class="el" href="structPxGeometryType.html" title="A geometry type.">PxGeometryType</a> <a class="el" href="classPxShape.html#8365c22a5780649bd890703b3ebc1f20" title="Get the geometry type of the shape.">getGeometryType()</a> </dd></dl>
</div>
</div><p>
<a class="anchor" name="f455638230d515adbfb561f1064e70a1"></a><!-- doxytag: member="PxShape::getLocalPose" ref="f455638230d515adbfb561f1064e70a1" args="() const =0" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">virtual <a class="el" href="classPxTransform.html">PxTransform</a> PxShape::getLocalPose </td>
<td>(</td>
<td class="paramname"> </td>
<td> ) </td>
<td> const<code> [pure virtual]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Retrieves the pose of the shape in actor space, i.e. relative to the actor they are owned by.
<p>
This transformation is identity by default.<p>
<dl class="return" compact><dt><b>Returns:</b></dt><dd>Pose of shape relative to the actor's frame.</dd></dl>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="classPxShape.html#9f32c7cea3b5701de3f815cd64c978df" title="Sets the pose of the shape in actor space, i.e. relative to the actors to which they...">setLocalPose()</a> </dd></dl>
<p>Referenced by <a class="el" href="PxShapeExt_8h-source.html#l00065">PxShapeExt::getGlobalPose()</a>.</p>
</div>
</div><p>
<a class="anchor" name="77dcd61c00720726ffcce1fe370f0042"></a><!-- doxytag: member="PxShape::getMaterialFromInternalFaceIndex" ref="77dcd61c00720726ffcce1fe370f0042" args="(PxU32 faceIndex) const =0" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">virtual <a class="el" href="classPxMaterial.html">PxMaterial</a>* PxShape::getMaterialFromInternalFaceIndex </td>
<td>(</td>
<td class="paramtype"><a class="el" href="group__foundation.html#gcce5749db3dcfb916e98c253374264ed">PxU32</a> </td>
<td class="paramname"> <em>faceIndex</em> </td>
<td> ) </td>
<td> const<code> [pure virtual]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Retrieve material from given triangle index.
<p>
The input index is the internal triangle index as used inside the SDK. This is the index returned to users by various SDK functions such as raycasts.<p>
This function is only useful for triangle meshes or heightfields, which have per-triangle materials. For other shapes the function returns the single material associated with the shape, regardless of the index.<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"><tt>[in]</tt> </td><td valign="top"><em>faceIndex</em> </td><td>The internal triangle index whose material you want to retrieve. </td></tr>
</table>
</dl>
<dl class="return" compact><dt><b>Returns:</b></dt><dd>Material from input triangle</dd></dl>
<dl class="note" compact><dt><b>Note:</b></dt><dd>If faceIndex value of 0xFFFFffff is passed as an input for mesh and heightfield shapes, this function will issue a warning and return NULL. <p>
Scene queries set the value of <a class="el" href="structPxQueryHit.html#e3462529024eafa98ed2abe1b3b9146c">PxQueryHit::faceIndex</a> to 0xFFFFffff whenever it is undefined or does not apply.</dd></dl>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="classPxMaterial.html" title="Material class to represent a set of surface properties.">PxMaterial</a> <a class="el" href="classPxShape.html#0166cefbe1d120da68db5f68ddd6ebbc" title="Returns the number of materials assigned to the shape.">getNbMaterials()</a> <a class="el" href="classPxMaterial.html#c0635989d3c9a12d55d25fe468e91256" title="Decrements the reference count of a material and releases it if the new reference...">PxMaterial::release()</a> </dd></dl>
</div>
</div><p>
<a class="anchor" name="dbaf4b32d62babcbab918fc64d4fcae9"></a><!-- doxytag: member="PxShape::getMaterials" ref="dbaf4b32d62babcbab918fc64d4fcae9" args="(PxMaterial **userBuffer, PxU32 bufferSize, PxU32 startIndex=0) const =0" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">virtual <a class="el" href="group__foundation.html#gcce5749db3dcfb916e98c253374264ed">PxU32</a> PxShape::getMaterials </td>
<td>(</td>
<td class="paramtype"><a class="el" href="classPxMaterial.html">PxMaterial</a> ** </td>
<td class="paramname"> <em>userBuffer</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="group__foundation.html#gcce5749db3dcfb916e98c253374264ed">PxU32</a> </td>
<td class="paramname"> <em>bufferSize</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="group__foundation.html#gcce5749db3dcfb916e98c253374264ed">PxU32</a> </td>
<td class="paramname"> <em>startIndex</em> = <code>0</code></td><td> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td> const<code> [pure virtual]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Retrieve all the material pointers associated with the shape.
<p>
You can retrieve the number of material pointers by calling <a class="el" href="classPxShape.html#0166cefbe1d120da68db5f68ddd6ebbc" title="Returns the number of materials assigned to the shape.">getNbMaterials()</a><p>
Note: Removing materials with <a class="el" href="classPxMaterial.html#c0635989d3c9a12d55d25fe468e91256" title="Decrements the reference count of a material and releases it if the new reference...">PxMaterial::release()</a> will invalidate the pointer of the released material.<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"><tt>[out]</tt> </td><td valign="top"><em>userBuffer</em> </td><td>The buffer to store the material pointers. </td></tr>
<tr><td valign="top"><tt>[in]</tt> </td><td valign="top"><em>bufferSize</em> </td><td>Size of provided user buffer. </td></tr>
<tr><td valign="top"><tt>[in]</tt> </td><td valign="top"><em>startIndex</em> </td><td>Index of first material pointer to be retrieved </td></tr>
</table>
</dl>
<dl class="return" compact><dt><b>Returns:</b></dt><dd>Number of material pointers written to the buffer.</dd></dl>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="classPxMaterial.html" title="Material class to represent a set of surface properties.">PxMaterial</a> <a class="el" href="classPxShape.html#0166cefbe1d120da68db5f68ddd6ebbc" title="Returns the number of materials assigned to the shape.">getNbMaterials()</a> <a class="el" href="classPxMaterial.html#c0635989d3c9a12d55d25fe468e91256" title="Decrements the reference count of a material and releases it if the new reference...">PxMaterial::release()</a> </dd></dl>
</div>
</div><p>
<a class="anchor" name="800c362a0a6c6c120525876f56378959"></a><!-- doxytag: member="PxShape::getName" ref="800c362a0a6c6c120525876f56378959" args="() const =0" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">virtual const char* PxShape::getName </td>
<td>(</td>
<td class="paramname"> </td>
<td> ) </td>
<td> const<code> [pure virtual]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
retrieves the name string set with <a class="el" href="classPxShape.html#51a289ac174c48ccc8d0b09d3fd90508" title="Sets a name string for the object that can be retrieved with getName().">setName()</a>.
<p>
<dl class="return" compact><dt><b>Returns:</b></dt><dd>The name associated with the shape.</dd></dl>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="classPxShape.html#51a289ac174c48ccc8d0b09d3fd90508" title="Sets a name string for the object that can be retrieved with getName().">setName()</a> </dd></dl>
</div>
</div><p>
<a class="anchor" name="0166cefbe1d120da68db5f68ddd6ebbc"></a><!-- doxytag: member="PxShape::getNbMaterials" ref="0166cefbe1d120da68db5f68ddd6ebbc" args="() const =0" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">virtual PxU16 PxShape::getNbMaterials </td>
<td>(</td>
<td class="paramname"> </td>
<td> ) </td>
<td> const<code> [pure virtual]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Returns the number of materials assigned to the shape.
<p>
You can use <a class="el" href="classPxShape.html#dbaf4b32d62babcbab918fc64d4fcae9" title="Retrieve all the material pointers associated with the shape.">getMaterials()</a> to retrieve the material pointers.<p>
<dl class="return" compact><dt><b>Returns:</b></dt><dd>Number of materials associated with this shape.</dd></dl>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="classPxMaterial.html" title="Material class to represent a set of surface properties.">PxMaterial</a> <a class="el" href="classPxShape.html#dbaf4b32d62babcbab918fc64d4fcae9" title="Retrieve all the material pointers associated with the shape.">getMaterials()</a> </dd></dl>
</div>
</div><p>
<a class="anchor" name="fe05ad6f093d762abaf03e3e0c1de704"></a><!-- doxytag: member="PxShape::getPlaneGeometry" ref="fe05ad6f093d762abaf03e3e0c1de704" args="(PxPlaneGeometry &geometry) const =0" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">virtual bool PxShape::getPlaneGeometry </td>
<td>(</td>
<td class="paramtype"><a class="el" href="classPxPlaneGeometry.html">PxPlaneGeometry</a> & </td>
<td class="paramname"> <em>geometry</em> </td>
<td> ) </td>
<td> const<code> [pure virtual]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Fetch the geometry of the shape.
<p>
<dl class="note" compact><dt><b>Note:</b></dt><dd>If the type of geometry to extract does not match the geometry type of the shape then the method will return false and the passed in geometry descriptor is not modified.</dd></dl>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"><tt>[in]</tt> </td><td valign="top"><em>geometry</em> </td><td>The descriptor to save the shape's geometry data to. </td></tr>
</table>
</dl>
<dl class="return" compact><dt><b>Returns:</b></dt><dd>True on success else false</dd></dl>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="classPxGeometry.html" title="A geometry object.">PxGeometry</a> <a class="el" href="structPxGeometryType.html" title="A geometry type.">PxGeometryType</a> <a class="el" href="classPxShape.html#8365c22a5780649bd890703b3ebc1f20" title="Get the geometry type of the shape.">getGeometryType()</a> </dd></dl>
</div>
</div><p>
<a class="anchor" name="b6cbdfa3d01aa384f4d0109a591d1f12"></a><!-- doxytag: member="PxShape::getQueryFilterData" ref="b6cbdfa3d01aa384f4d0109a591d1f12" args="() const =0" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">virtual <a class="el" href="structPxFilterData.html">PxFilterData</a> PxShape::getQueryFilterData </td>
<td>(</td>
<td class="paramname"> </td>
<td> ) </td>
<td> const<code> [pure virtual]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Retrieves the shape's Query filter data.
<p>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="classPxShape.html#c98191c26e55ecebfd9eb4553c969fab" title="Sets the user definable query filter data.">setQueryFilterData()</a> </dd></dl>
</div>
</div><p>
<a class="anchor" name="060ff01d827d559fc8b11385a161eca0"></a><!-- doxytag: member="PxShape::getRestOffset" ref="060ff01d827d559fc8b11385a161eca0" args="() const =0" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">virtual PxReal PxShape::getRestOffset </td>
<td>(</td>
<td class="paramname"> </td>
<td> ) </td>
<td> const<code> [pure virtual]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Retrieves the rest offset.
<p>
<dl class="return" compact><dt><b>Returns:</b></dt><dd>The rest offset of the shape.</dd></dl>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="classPxShape.html#413afb25b39a7a0cf0981aa01c6d7f8b" title="Sets the rest offset.">setRestOffset()</a> </dd></dl>
</div>
</div><p>
<a class="anchor" name="bfa95e009f300060ba648637fb685686"></a><!-- doxytag: member="PxShape::getSimulationFilterData" ref="bfa95e009f300060ba648637fb685686" args="() const =0" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">virtual <a class="el" href="structPxFilterData.html">PxFilterData</a> PxShape::getSimulationFilterData </td>
<td>(</td>
<td class="paramname"> </td>
<td> ) </td>
<td> const<code> [pure virtual]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Retrieves the shape's collision filter data.
<p>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="classPxShape.html#a0c62176ed01c9fb14c26ad7c393963c" title="Sets the user definable collision filter data.">setSimulationFilterData()</a> </dd></dl>
</div>
</div><p>
<a class="anchor" name="d36c41170461ca897fa70433d23268fa"></a><!-- doxytag: member="PxShape::getSphereGeometry" ref="d36c41170461ca897fa70433d23268fa" args="(PxSphereGeometry &geometry) const =0" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">virtual bool PxShape::getSphereGeometry </td>
<td>(</td>
<td class="paramtype"><a class="el" href="classPxSphereGeometry.html">PxSphereGeometry</a> & </td>
<td class="paramname"> <em>geometry</em> </td>
<td> ) </td>
<td> const<code> [pure virtual]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Fetch the geometry of the shape.
<p>
<dl class="note" compact><dt><b>Note:</b></dt><dd>If the type of geometry to extract does not match the geometry type of the shape then the method will return false and the passed in geometry descriptor is not modified.</dd></dl>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"><tt>[in]</tt> </td><td valign="top"><em>geometry</em> </td><td>The descriptor to save the shape's geometry data to. </td></tr>
</table>
</dl>
<dl class="return" compact><dt><b>Returns:</b></dt><dd>True on success else false</dd></dl>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="classPxGeometry.html" title="A geometry object.">PxGeometry</a> <a class="el" href="structPxGeometryType.html" title="A geometry type.">PxGeometryType</a> <a class="el" href="classPxShape.html#8365c22a5780649bd890703b3ebc1f20" title="Get the geometry type of the shape.">getGeometryType()</a> </dd></dl>
</div>
</div><p>
<a class="anchor" name="e10e641c3e5d77993440abe64c1446ea"></a><!-- doxytag: member="PxShape::getTriangleMeshGeometry" ref="e10e641c3e5d77993440abe64c1446ea" args="(PxTriangleMeshGeometry &geometry) const =0" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">virtual bool PxShape::getTriangleMeshGeometry </td>
<td>(</td>
<td class="paramtype"><a class="el" href="classPxTriangleMeshGeometry.html">PxTriangleMeshGeometry</a> & </td>
<td class="paramname"> <em>geometry</em> </td>
<td> ) </td>
<td> const<code> [pure virtual]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Fetch the geometry of the shape.
<p>
<dl class="note" compact><dt><b>Note:</b></dt><dd>If the type of geometry to extract does not match the geometry type of the shape then the method will return false and the passed in geometry descriptor is not modified.</dd></dl>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"><tt>[in]</tt> </td><td valign="top"><em>geometry</em> </td><td>The descriptor to save the shape's geometry data to. </td></tr>
</table>
</dl>
<dl class="return" compact><dt><b>Returns:</b></dt><dd>True on success else false</dd></dl>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="classPxGeometry.html" title="A geometry object.">PxGeometry</a> <a class="el" href="structPxGeometryType.html" title="A geometry type.">PxGeometryType</a> <a class="el" href="classPxShape.html#8365c22a5780649bd890703b3ebc1f20" title="Get the geometry type of the shape.">getGeometryType()</a> </dd></dl>
</div>
</div><p>
<a class="anchor" name="9797f4bf85e72881b3cb90d303a22b91"></a><!-- doxytag: member="PxShape::isExclusive" ref="9797f4bf85e72881b3cb90d303a22b91" args="() const =0" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">virtual bool PxShape::isExclusive </td>
<td>(</td>
<td class="paramname"> </td>
<td> ) </td>
<td> const<code> [pure virtual]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Returns true if the shape is exclusive to an actor.
<p>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="classPxPhysics.html#bc564607f208cbc1944880172a3d62fe" title="Creates a shape which may be attached to multiple actors.">PxPhysics::createShape()</a> </dd></dl>
</div>
</div><p>
<a class="anchor" name="1bcf5d308c093487d38bf773f5e3f1c2"></a><!-- doxytag: member="PxShape::isKindOf" ref="1bcf5d308c093487d38bf773f5e3f1c2" args="(const char *name) const " -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">virtual bool PxShape::isKindOf </td>
<td>(</td>
<td class="paramtype">const char * </td>
<td class="paramname"> <em>superClass</em> </td>
<td> ) </td>
<td> const<code> [inline, protected, virtual]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Returns whether a given type name matches with the type of this instance.
<p>
<p>Reimplemented from <a class="el" href="classPxBase.html#ae9d444c7cfd1715a101350a1b1226ef">PxBase</a>.</p>
<p>References <a class="el" href="PxBase_8h-source.html#l00178">PxBase::isKindOf()</a>.</p>
</div>
</div><p>
<a class="anchor" name="165dc6eaf5c58997b90b06176220be37"></a><!-- doxytag: member="PxShape::release" ref="165dc6eaf5c58997b90b06176220be37" args="()=0" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">virtual void PxShape::release </td>
<td>(</td>
<td class="paramname"> </td>
<td> ) </td>
<td><code> [pure virtual]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Decrements the reference count of a shape and releases it if the new reference count is zero.
<p>
Note that in releases prior to PhysX 3.3 this method did not have reference counting semantics and was used to destroy a shape created with PxActor::createShape(). In PhysX 3.3 and above, this usage is deprecated, instead, use <a class="el" href="classPxRigidActor.html#467f9dc1517978b8d517936a475d3c4c">PxRigidActor::detachShape()</a> to detach a shape from an actor. If the shape to be detached was created with PxActor::createShape(), the actor holds the only counted reference, and so when the shape is detached it will also be destroyed.<p>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="classPxRigidActor.html#428112f88e7d3ee8abdf378cb70511f8" title="Creates a new shape with default properties and a list of materials and adds it to...">PxRigidActor::createShape()</a> <a class="el" href="classPxPhysics.html#bc564607f208cbc1944880172a3d62fe" title="Creates a shape which may be attached to multiple actors.">PxPhysics::createShape()</a> <a class="el" href="classPxRigidActor.html#17c7ab7d692e4b3b8239216aa0d6eeb7">PxRigidActor::attachShape()</a> <a class="el" href="classPxRigidActor.html#467f9dc1517978b8d517936a475d3c4c">PxRigidActor::detachShape()</a> </dd></dl>
<p>Implements <a class="el" href="classPxBase.html#fe6aedda1df0d6d29b1a28213a5ee25a">PxBase</a>.</p>
<p>Referenced by <a class="el" href="PxRigidActorExt_8h-source.html#l00086">PxRigidActorExt::createExclusiveShape()</a>.</p>
</div>
</div><p>
<a class="anchor" name="07c638b68e14de5e284a03dbcc128d27"></a><!-- doxytag: member="PxShape::setContactOffset" ref="07c638b68e14de5e284a03dbcc128d27" args="(PxReal contactOffset)=0" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">virtual void PxShape::setContactOffset </td>
<td>(</td>
<td class="paramtype">PxReal </td>
<td class="paramname"> <em>contactOffset</em> </td>
<td> ) </td>
<td><code> [pure virtual]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Sets the contact offset.
<p>
Shapes whose distance is less than the sum of their contactOffset values will generate contacts. The contact offset must be positive and greater than the rest offset. Having a contactOffset greater than than the restOffset allows the collision detection system to predictively enforce the contact constraint even when the objects are slightly separated. This prevents jitter that would occur if the constraint were enforced only when shapes were within the rest distance.<p>
<b>Default:</b> 0.02f * <a class="el" href="classPxTolerancesScale.html#7d93bf20de0e5b54783eda5bb64effeb">PxTolerancesScale::length</a><p>
<b>Sleeping:</b> Does <b>NOT</b> wake the associated actor up automatically.<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"><tt>[in]</tt> </td><td valign="top"><em>contactOffset</em> </td><td><b>Range:</b> [maximum(0,restOffset), PX_MAX_F32)</td></tr>
</table>
</dl>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="classPxShape.html#3f0686821f3f8fe92103e31c293f118b" title="Retrieves the contact offset.">getContactOffset</a> <a class="el" href="classPxTolerancesScale.html" title="Class to define the scale at which simulation runs. Most simulation tolerances are...">PxTolerancesScale</a> <a class="el" href="classPxShape.html#413afb25b39a7a0cf0981aa01c6d7f8b" title="Sets the rest offset.">setRestOffset</a> </dd></dl>
</div>
</div><p>
<a class="anchor" name="3c879df184ef40514589c5aa3d1f2a33"></a><!-- doxytag: member="PxShape::setFlag" ref="3c879df184ef40514589c5aa3d1f2a33" args="(PxShapeFlag::Enum flag, bool value)=0" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">virtual void PxShape::setFlag </td>
<td>(</td>
<td class="paramtype"><a class="el" href="structPxShapeFlag.html#6edb481aaa3a998c5d6dd3fc4ad87f1a">PxShapeFlag::Enum</a> </td>
<td class="paramname"> <em>flag</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">bool </td>
<td class="paramname"> <em>value</em></td><td> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td><code> [pure virtual]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Sets shape flags.
<p>
<b>Sleeping:</b> Does <b>NOT</b> wake the associated actor up automatically.<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"><tt>[in]</tt> </td><td valign="top"><em>flag</em> </td><td>The shape flag to enable/disable. See <a class="el" href="structPxShapeFlag.html" title="Flags which affect the behavior of PxShapes.">PxShapeFlag</a>. </td></tr>
<tr><td valign="top"><tt>[in]</tt> </td><td valign="top"><em>value</em> </td><td>True to set the flag. False to clear the flag specified in flag.</td></tr>
</table>
</dl>
<b>Default:</b> <a class="el" href="structPxShapeFlag.html#6edb481aaa3a998c5d6dd3fc4ad87f1a1b3a6f33eb84ee2dc74eac63aa86f2a4" title="Enable debug renderer for this shape.">PxShapeFlag::eVISUALIZATION</a> | <a class="el" href="structPxShapeFlag.html#6edb481aaa3a998c5d6dd3fc4ad87f1a7fa4fea0eecda9cc80a7aaa11a22df52" title="The shape will partake in collision in the physical simulation.">PxShapeFlag::eSIMULATION_SHAPE</a> | <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><p>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="structPxShapeFlag.html" title="Flags which affect the behavior of PxShapes.">PxShapeFlag</a> <a class="el" href="classPxShape.html#cd44b1c761c14e6319475797ec4f9715" title="Retrieves shape flags.">getFlags()</a> </dd></dl>
</div>
</div><p>
<a class="anchor" name="fc179cb4b2146af98c76623d2fc0db6e"></a><!-- doxytag: member="PxShape::setFlags" ref="fc179cb4b2146af98c76623d2fc0db6e" args="(PxShapeFlags inFlags)=0" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">virtual void PxShape::setFlags </td>
<td>(</td>
<td class="paramtype"><a class="el" href="classPxFlags.html">PxShapeFlags</a> </td>
<td class="paramname"> <em>inFlags</em> </td>
<td> ) </td>
<td><code> [pure virtual]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Sets shape flags.
<p>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="structPxShapeFlag.html" title="Flags which affect the behavior of PxShapes.">PxShapeFlag</a> <a class="el" href="classPxShape.html#cd44b1c761c14e6319475797ec4f9715" title="Retrieves shape flags.">getFlags()</a> </dd></dl>
</div>
</div><p>
<a class="anchor" name="c6112e8c0ee9803eb3436bbaf673d98a"></a><!-- doxytag: member="PxShape::setGeometry" ref="c6112e8c0ee9803eb3436bbaf673d98a" args="(const PxGeometry &geometry)=0" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">virtual void PxShape::setGeometry </td>
<td>(</td>
<td class="paramtype">const <a class="el" href="classPxGeometry.html">PxGeometry</a> & </td>
<td class="paramname"> <em>geometry</em> </td>
<td> ) </td>
<td><code> [pure virtual]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Adjust the geometry of the shape.
<p>
<dl class="note" compact><dt><b>Note:</b></dt><dd>The type of the passed in geometry must match the geometry type of the shape. <p>
It is not allowed to change the geometry type of a shape. <p>
This function does not guarantee correct/continuous behavior when objects are resting on top of old or new geometry.</dd></dl>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"><tt>[in]</tt> </td><td valign="top"><em>geometry</em> </td><td>New geometry of the shape.</td></tr>
</table>
</dl>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="classPxGeometry.html" title="A geometry object.">PxGeometry</a> <a class="el" href="structPxGeometryType.html" title="A geometry type.">PxGeometryType</a> <a class="el" href="classPxShape.html#8365c22a5780649bd890703b3ebc1f20" title="Get the geometry type of the shape.">getGeometryType()</a> </dd></dl>
</div>
</div><p>
<a class="anchor" name="9f32c7cea3b5701de3f815cd64c978df"></a><!-- doxytag: member="PxShape::setLocalPose" ref="9f32c7cea3b5701de3f815cd64c978df" args="(const PxTransform &pose)=0" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">virtual void PxShape::setLocalPose </td>
<td>(</td>
<td class="paramtype">const <a class="el" href="classPxTransform.html">PxTransform</a> & </td>
<td class="paramname"> <em>pose</em> </td>
<td> ) </td>
<td><code> [pure virtual]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Sets the pose of the shape in actor space, i.e. relative to the actors to which they are attached.
<p>
This transformation is identity by default.<p>
The local pose is an attribute of the shape, and so will apply to all actors to which the shape is attached.<p>
<b>Sleeping:</b> Does <b>NOT</b> wake the associated actor up automatically.<p>
<em>Note:</em> Does not automatically update the inertia properties of the owning actor (if applicable); use the PhysX extensions method <a class="el" href="classPxRigidBodyExt.html#769be90cdb138897ce426aa04ac0a1e7" title="Computation of mass properties for a rigid body actor.">PxRigidBodyExt::updateMassAndInertia()</a> to do this.<p>
<b>Default:</b> the identity transform<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"><tt>[in]</tt> </td><td valign="top"><em>pose</em> </td><td>The new transform from the actor frame to the shape frame. <b>Range:</b> rigid body transform</td></tr>
</table>
</dl>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="classPxShape.html#f455638230d515adbfb561f1064e70a1" title="Retrieves the pose of the shape in actor space, i.e. relative to the actor they are...">getLocalPose()</a> </dd></dl>
</div>
</div><p>
<a class="anchor" name="14fbf4de00134d17b85194487d68ff30"></a><!-- doxytag: member="PxShape::setMaterials" ref="14fbf4de00134d17b85194487d68ff30" args="(PxMaterial *const *materials, PxU16 materialCount)=0" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">virtual void PxShape::setMaterials </td>
<td>(</td>
<td class="paramtype"><a class="el" href="classPxMaterial.html">PxMaterial</a> *const * </td>
<td class="paramname"> <em>materials</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">PxU16 </td>
<td class="paramname"> <em>materialCount</em></td><td> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td><code> [pure virtual]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Assigns material(s) to the shape.
<p>
<b>Sleeping:</b> Does <b>NOT</b> wake the associated actor up automatically.<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"><tt>[in]</tt> </td><td valign="top"><em>materials</em> </td><td>List of material pointers to assign to the shape. See <a class="el" href="classPxMaterial.html" title="Material class to represent a set of surface properties.">PxMaterial</a> </td></tr>
<tr><td valign="top"><tt>[in]</tt> </td><td valign="top"><em>materialCount</em> </td><td>The number of materials provided.</td></tr>
</table>
</dl>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="classPxPhysics.html#35c1965ae47b24e119c6a2d8ce25477e" title="Creates a new material with default properties.">PxPhysics.createMaterial()</a> <a class="el" href="classPxShape.html#dbaf4b32d62babcbab918fc64d4fcae9" title="Retrieve all the material pointers associated with the shape.">getMaterials()</a> </dd></dl>
</div>
</div><p>
<a class="anchor" name="51a289ac174c48ccc8d0b09d3fd90508"></a><!-- doxytag: member="PxShape::setName" ref="51a289ac174c48ccc8d0b09d3fd90508" args="(const char *name)=0" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">virtual void PxShape::setName </td>
<td>(</td>
<td class="paramtype">const char * </td>
<td class="paramname"> <em>name</em> </td>
<td> ) </td>
<td><code> [pure virtual]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Sets a name string for the object that can be retrieved with <a class="el" href="classPxShape.html#800c362a0a6c6c120525876f56378959" title="retrieves the name string set with setName().">getName()</a>.
<p>
This is for debugging and is not used by the SDK. The string is not copied by the SDK, only the pointer is stored.<p>
<b>Default:</b> NULL<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"><tt>[in]</tt> </td><td valign="top"><em>name</em> </td><td>The name string to set the objects name to.</td></tr>
</table>
</dl>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="classPxShape.html#800c362a0a6c6c120525876f56378959" title="retrieves the name string set with setName().">getName()</a> </dd></dl>
</div>
</div><p>
<a class="anchor" name="c98191c26e55ecebfd9eb4553c969fab"></a><!-- doxytag: member="PxShape::setQueryFilterData" ref="c98191c26e55ecebfd9eb4553c969fab" args="(const PxFilterData &data)=0" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">virtual void PxShape::setQueryFilterData </td>
<td>(</td>
<td class="paramtype">const <a class="el" href="structPxFilterData.html">PxFilterData</a> & </td>
<td class="paramname"> <em>data</em> </td>
<td> ) </td>
<td><code> [pure virtual]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Sets the user definable query filter data.
<p>
<b>Default:</b> (0,0,0,0)<p>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="classPxShape.html#b6cbdfa3d01aa384f4d0109a591d1f12" title="Retrieves the shape's Query filter data.">getQueryFilterData()</a> </dd></dl>
</div>
</div><p>
<a class="anchor" name="413afb25b39a7a0cf0981aa01c6d7f8b"></a><!-- doxytag: member="PxShape::setRestOffset" ref="413afb25b39a7a0cf0981aa01c6d7f8b" args="(PxReal restOffset)=0" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">virtual void PxShape::setRestOffset </td>
<td>(</td>
<td class="paramtype">PxReal </td>
<td class="paramname"> <em>restOffset</em> </td>
<td> ) </td>
<td><code> [pure virtual]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Sets the rest offset.
<p>
Two shapes will come to rest at a distance equal to the sum of their restOffset values. If the restOffset is 0, they should converge to touching exactly. Having a restOffset greater than zero is useful to have objects slide smoothly, so that they do not get hung up on irregularities of each others' surfaces.<p>
<b>Default:</b> 0.0f<p>
<b>Sleeping:</b> Does <b>NOT</b> wake the associated actor up automatically.<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"><tt>[in]</tt> </td><td valign="top"><em>restOffset</em> </td><td><b>Range:</b> (-PX_MAX_F32, contactOffset)</td></tr>
</table>
</dl>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="classPxShape.html#060ff01d827d559fc8b11385a161eca0" title="Retrieves the rest offset.">getRestOffset</a> <a class="el" href="classPxShape.html#07c638b68e14de5e284a03dbcc128d27" title="Sets the contact offset.">setContactOffset</a> </dd></dl>
</div>
</div><p>
<a class="anchor" name="a0c62176ed01c9fb14c26ad7c393963c"></a><!-- doxytag: member="PxShape::setSimulationFilterData" ref="a0c62176ed01c9fb14c26ad7c393963c" args="(const PxFilterData &data)=0" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">virtual void PxShape::setSimulationFilterData </td>
<td>(</td>
<td class="paramtype">const <a class="el" href="structPxFilterData.html">PxFilterData</a> & </td>
<td class="paramname"> <em>data</em> </td>
<td> ) </td>
<td><code> [pure virtual]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Sets the user definable collision filter data.
<p>
<b>Sleeping:</b> Does wake up the actor if the filter data change causes a formerly suppressed collision pair to be enabled.<p>
<b>Default:</b> (0,0,0,0)<p>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="classPxShape.html#bfa95e009f300060ba648637fb685686" title="Retrieves the shape's collision filter data.">getSimulationFilterData()</a> </dd></dl>
</div>
</div><p>
<hr><h2>Member Data Documentation</h2>
<a class="anchor" name="557b80df942f039122b0ee750d29c552"></a><!-- doxytag: member="PxShape::userData" ref="557b80df942f039122b0ee750d29c552" args="" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void* <a class="el" href="classPxShape.html#557b80df942f039122b0ee750d29c552">PxShape::userData</a> </td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
user can assign this to whatever, usually to create a 1:1 relationship with a user object.
<p>
</div>
</div><p>
<hr>The documentation for this class was generated from the following file:<ul>
<li><a class="el" href="PxShape_8h-source.html">PxShape.h</a></ul>
</div>
<hr style="width: 100%; height: 2px;"><br>
Copyright © 2008-2018 NVIDIA Corporation, 2701 San Tomas Expressway, Santa Clara, CA 95050 U.S.A. All rights reserved. <a href="http://www.nvidia.com ">www.nvidia.com</a>
</body>
</html>
|