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
|
<html>
<head>
<title>NVIDIA(R) PhysX(R) SDK 3.4 API Reference: PxController.h Source File</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<LINK HREF="NVIDIA.css" REL="stylesheet" TYPE="text/css">
</head>
<body bgcolor="#FFFFFF">
<div id="header">
<hr class="first">
<img alt="" src="images/PhysXlogo.png" align="middle"> <br>
<center>
<a class="qindex" href="main.html">Main Page</a>
<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 -->
<h1>PxController.h</h1><a href="PxController_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">// This code contains NVIDIA Confidential Information and is disclosed to you</span>
<a name="l00002"></a>00002 <span class="comment">// under a form of NVIDIA software license agreement provided separately to you.</span>
<a name="l00003"></a>00003 <span class="comment">//</span>
<a name="l00004"></a>00004 <span class="comment">// Notice</span>
<a name="l00005"></a>00005 <span class="comment">// NVIDIA Corporation and its licensors retain all intellectual property and</span>
<a name="l00006"></a>00006 <span class="comment">// proprietary rights in and to this software and related documentation and</span>
<a name="l00007"></a>00007 <span class="comment">// any modifications thereto. Any use, reproduction, disclosure, or</span>
<a name="l00008"></a>00008 <span class="comment">// distribution of this software and related documentation without an express</span>
<a name="l00009"></a>00009 <span class="comment">// license agreement from NVIDIA Corporation is strictly prohibited.</span>
<a name="l00010"></a>00010 <span class="comment">//</span>
<a name="l00011"></a>00011 <span class="comment">// ALL NVIDIA DESIGN SPECIFICATIONS, CODE ARE PROVIDED "AS IS.". NVIDIA MAKES</span>
<a name="l00012"></a>00012 <span class="comment">// NO WARRANTIES, EXPRESSED, IMPLIED, STATUTORY, OR OTHERWISE WITH RESPECT TO</span>
<a name="l00013"></a>00013 <span class="comment">// THE MATERIALS, AND EXPRESSLY DISCLAIMS ALL IMPLIED WARRANTIES OF NONINFRINGEMENT,</span>
<a name="l00014"></a>00014 <span class="comment">// MERCHANTABILITY, AND FITNESS FOR A PARTICULAR PURPOSE.</span>
<a name="l00015"></a>00015 <span class="comment">//</span>
<a name="l00016"></a>00016 <span class="comment">// Information and code furnished is believed to be accurate and reliable.</span>
<a name="l00017"></a>00017 <span class="comment">// However, NVIDIA Corporation assumes no responsibility for the consequences of use of such</span>
<a name="l00018"></a>00018 <span class="comment">// information or for any infringement of patents or other rights of third parties that may</span>
<a name="l00019"></a>00019 <span class="comment">// result from its use. No license is granted by implication or otherwise under any patent</span>
<a name="l00020"></a>00020 <span class="comment">// or patent rights of NVIDIA Corporation. Details are subject to change without notice.</span>
<a name="l00021"></a>00021 <span class="comment">// This code supersedes and replaces all information previously supplied.</span>
<a name="l00022"></a>00022 <span class="comment">// NVIDIA Corporation products are not authorized for use as critical</span>
<a name="l00023"></a>00023 <span class="comment">// components in life support devices or systems without express written approval of</span>
<a name="l00024"></a>00024 <span class="comment">// NVIDIA Corporation.</span>
<a name="l00025"></a>00025 <span class="comment">//</span>
<a name="l00026"></a>00026 <span class="comment">// Copyright (c) 2008-2017 NVIDIA Corporation. All rights reserved.</span>
<a name="l00027"></a>00027 <span class="comment">// Copyright (c) 2004-2008 AGEIA Technologies, Inc. All rights reserved.</span>
<a name="l00028"></a>00028 <span class="comment">// Copyright (c) 2001-2004 NovodeX AG. All rights reserved. </span>
<a name="l00029"></a>00029
<a name="l00030"></a>00030
<a name="l00031"></a>00031
<a name="l00032"></a>00032 <span class="preprocessor">#ifndef PX_PHYSICS_CCT_CONTROLLER</span>
<a name="l00033"></a>00033 <span class="preprocessor"></span><span class="preprocessor">#define PX_PHYSICS_CCT_CONTROLLER</span>
<a name="l00034"></a>00034 <span class="preprocessor"></span>
<a name="l00038"></a>00038 <span class="preprocessor">#include "<a class="code" href="PxCharacter_8h.html">characterkinematic/PxCharacter.h</a>"</span>
<a name="l00039"></a>00039 <span class="preprocessor">#include "<a class="code" href="PxExtended_8h.html">characterkinematic/PxExtended.h</a>"</span>
<a name="l00040"></a>00040 <span class="preprocessor">#include "<a class="code" href="PxControllerObstacles_8h.html">characterkinematic/PxControllerObstacles.h</a>"</span>
<a name="l00041"></a>00041 <span class="preprocessor">#include "<a class="code" href="PxQueryFiltering_8h.html">PxQueryFiltering.h</a>"</span>
<a name="l00042"></a>00042 <span class="preprocessor">#include "<a class="code" href="PxErrorCallback_8h.html">foundation/PxErrorCallback.h</a>"</span>
<a name="l00043"></a>00043
<a name="l00044"></a>00044 <span class="preprocessor">#if !PX_DOXYGEN</span>
<a name="l00045"></a>00045 <span class="preprocessor"></span><span class="keyword">namespace </span>physx
<a name="l00046"></a>00046 {
<a name="l00047"></a>00047 <span class="preprocessor">#endif</span>
<a name="l00048"></a>00048 <span class="preprocessor"></span>
<a name="l00052"></a><a class="code" href="structPxControllerShapeType.html">00052</a> <span class="keyword">struct </span><a class="code" href="structPxControllerShapeType.html" title="The type of controller, eg box, sphere or capsule.">PxControllerShapeType</a>
<a name="l00053"></a>00053 {
<a name="l00054"></a><a class="code" href="structPxControllerShapeType.html#46022b44cb41038a1b05bcaa6e043d03">00054</a> <span class="keyword">enum</span> <a class="code" href="structPxControllerShapeType.html#46022b44cb41038a1b05bcaa6e043d03">Enum</a>
<a name="l00055"></a>00055 {
<a name="l00061"></a><a class="code" href="structPxControllerShapeType.html#46022b44cb41038a1b05bcaa6e043d03b43bc932646395ab414f8f4acd18f1e8">00061</a> eBOX,
<a name="l00062"></a>00062
<a name="l00068"></a><a class="code" href="structPxControllerShapeType.html#46022b44cb41038a1b05bcaa6e043d03121f8b7104f6e1d6bc258a1150f38ee0">00068</a> eCAPSULE,
<a name="l00069"></a>00069
<a name="l00070"></a><a class="code" href="structPxControllerShapeType.html#46022b44cb41038a1b05bcaa6e043d03c89463326589458e96dccccfd751eb9e">00070</a> eFORCE_DWORD = 0x7fffffff
<a name="l00071"></a>00071 };
<a name="l00072"></a>00072 };
<a name="l00073"></a>00073
<a name="l00074"></a>00074 <span class="keyword">class </span><a class="code" href="classPxShape.html" title="Abstract class for collision shapes.">PxShape</a>;
<a name="l00075"></a>00075 <span class="keyword">class </span><a class="code" href="classPxScene.html" title="A scene is a collection of bodies, particle systems and constraints which can interact...">PxScene</a>;
<a name="l00076"></a>00076 <span class="keyword">class </span><a class="code" href="classPxController.html" title="Base class for character controllers.">PxController</a>;
<a name="l00077"></a>00077 <span class="keyword">class </span><a class="code" href="classPxRigidDynamic.html" title="PxRigidDynamic represents a dynamic rigid simulation object in the physics SDK.">PxRigidDynamic</a>;
<a name="l00078"></a>00078 <span class="keyword">class </span><a class="code" href="classPxMaterial.html" title="Material class to represent a set of surface properties.">PxMaterial</a>;
<a name="l00079"></a>00079 <span class="keyword">struct </span><a class="code" href="structPxFilterData.html" title="PxFilterData is user-definable data which gets passed into the collision filtering...">PxFilterData</a>;
<a name="l00080"></a>00080 <span class="keyword">class </span><a class="code" href="classPxQueryFilterCallback.html" title="Scene query filtering callbacks.">PxQueryFilterCallback</a>;
<a name="l00081"></a>00081 <span class="keyword">class </span><a class="code" href="classPxControllerBehaviorCallback.html" title="User behavior callback.">PxControllerBehaviorCallback</a>;
<a name="l00082"></a>00082 <span class="keyword">class </span><a class="code" href="classPxObstacleContext.html" title="Context class for obstacles.">PxObstacleContext</a>;
<a name="l00083"></a>00083 <span class="keyword">class </span><a class="code" href="classPxObstacle.html" title="Base class for obstacles.">PxObstacle</a>;
<a name="l00084"></a>00084
<a name="l00090"></a><a class="code" href="structPxControllerNonWalkableMode.html">00090</a> <span class="keyword">struct </span><a class="code" href="structPxControllerNonWalkableMode.html" title="specifies how a CCT interacts with non-walkable parts.">PxControllerNonWalkableMode</a>
<a name="l00091"></a>00091 {
<a name="l00092"></a><a class="code" href="structPxControllerNonWalkableMode.html#4dd560c274d7c9076469ae267ffa87f2">00092</a> <span class="keyword">enum</span> <a class="code" href="structPxControllerNonWalkableMode.html#4dd560c274d7c9076469ae267ffa87f2">Enum</a>
<a name="l00093"></a>00093 {
<a name="l00094"></a><a class="code" href="structPxControllerNonWalkableMode.html#4dd560c274d7c9076469ae267ffa87f2da7953fa71ceda3b66aeeb078e8f6f35">00094</a> ePREVENT_CLIMBING,
<a name="l00095"></a><a class="code" href="structPxControllerNonWalkableMode.html#4dd560c274d7c9076469ae267ffa87f26492bdf89bbf8ce9476fab85108e782a">00095</a> ePREVENT_CLIMBING_AND_FORCE_SLIDING
<a name="l00096"></a>00096 };
<a name="l00097"></a>00097 };
<a name="l00098"></a>00098
<a name="l00102"></a><a class="code" href="structPxControllerCollisionFlag.html">00102</a> <span class="keyword">struct </span><a class="code" href="structPxControllerCollisionFlag.html" title="specifies which sides a character is colliding with.">PxControllerCollisionFlag</a>
<a name="l00103"></a>00103 {
<a name="l00104"></a><a class="code" href="structPxControllerCollisionFlag.html#b8257830a035142d00b1adf70b559169">00104</a> <span class="keyword">enum</span> <a class="code" href="structPxControllerCollisionFlag.html#b8257830a035142d00b1adf70b559169">Enum</a>
<a name="l00105"></a>00105 {
<a name="l00106"></a><a class="code" href="structPxControllerCollisionFlag.html#b8257830a035142d00b1adf70b5591691626c47e22d8cc275d2be873c3a42593">00106</a> eCOLLISION_SIDES = (1<<0),
<a name="l00107"></a><a class="code" href="structPxControllerCollisionFlag.html#b8257830a035142d00b1adf70b559169a985ece77e0cdec72cd3822859f1b465">00107</a> eCOLLISION_UP = (1<<1),
<a name="l00108"></a><a class="code" href="structPxControllerCollisionFlag.html#b8257830a035142d00b1adf70b5591694a2f1feb8a7f2792b3401010116af455">00108</a> eCOLLISION_DOWN = (1<<2)
<a name="l00109"></a>00109 };
<a name="l00110"></a>00110 };
<a name="l00111"></a>00111
<a name="l00117"></a><a class="code" href="group__character.html#g3cb7e2aaf5144c3ed9bbf504c2fd66db">00117</a> <span class="keyword">typedef</span> <a class="code" href="classPxFlags.html" title="Container for bitfield flag variables associated with a specific enum type.">PxFlags<PxControllerCollisionFlag::Enum, PxU8></a> <a class="code" href="classPxFlags.html" title="Container for bitfield flag variables associated with a specific enum type.">PxControllerCollisionFlags</a>;
<a name="l00118"></a>00118 <a class="code" href="group__foundation.html#g092f922a63fdc7a95ae4f4e24b3768c1">PX_FLAGS_OPERATORS</a>(<a class="code" href="structPxControllerCollisionFlag.html#b8257830a035142d00b1adf70b559169">PxControllerCollisionFlag::Enum</a>, <a class="code" href="namespacephysx.html#3849f86abc21d3a58949481603fe8309">PxU8</a>)
<a name="l00119"></a>00119
<a name="l00120"></a>00120
<a name="l00121"></a>00121
<a name="l00124"></a><a class="code" href="structPxControllerState.html">00124</a> struct <a class="code" href="structPxControllerState.html" title="Describes a controller&#39;s internal state.">PxControllerState</a>
<a name="l00125"></a>00125 {
<a name="l00126"></a><a class="code" href="structPxControllerState.html#b29dba2a8c3b33fb25b9d460ebf0fee8">00126</a> <a class="code" href="classPxVec3.html" title="3 Element vector class.">PxVec3</a> deltaXP;
<a name="l00127"></a><a class="code" href="structPxControllerState.html#bb3918eee1292cb13d13a2bcae071ed7">00127</a> <a class="code" href="classPxShape.html" title="Abstract class for collision shapes.">PxShape</a>* touchedShape;
<a name="l00128"></a><a class="code" href="structPxControllerState.html#85a7ade51c86a3fbe7582c95473c0e13">00128</a> <a class="code" href="classPxRigidActor.html" title="PxRigidActor represents a base class shared between dynamic and static rigid bodies...">PxRigidActor</a>* touchedActor;
<a name="l00129"></a><a class="code" href="structPxControllerState.html#83843d85d2dbef2f37d4d09ecf2ccf2f">00129</a> <a class="code" href="group__character.html#g55edbbb581808808c8e160e9608d8790">ObstacleHandle</a> touchedObstacleHandle; <span class="comment">// Obstacle on which the CCT is standing</span>
<a name="l00130"></a><a class="code" href="structPxControllerState.html#05501d379de1bdca0d0f7820e8a9db86">00130</a> <a class="code" href="namespacephysx.html#9b7fbd746d18bf5b6545713a8d818f41">PxU32</a> collisionFlags;
<a name="l00131"></a><a class="code" href="structPxControllerState.html#8ec66a21b432870ad1c50fab12169afe">00131</a> <span class="keywordtype">bool</span> standOnAnotherCCT;
<a name="l00132"></a><a class="code" href="structPxControllerState.html#49ae9e9723a98c571d2ada7c7e467631">00132</a> <span class="keywordtype">bool</span> standOnObstacle;
<a name="l00133"></a><a class="code" href="structPxControllerState.html#86d8c4cea2fc8d955b0ee9a83f833f6a">00133</a> <span class="keywordtype">bool</span> isMovingUp;
<a name="l00134"></a>00134 };
<a name="l00135"></a>00135
<a name="l00139"></a><a class="code" href="structPxControllerStats.html">00139</a> <span class="keyword">struct </span><a class="code" href="structPxControllerStats.html" title="Describes a controller&#39;s internal statistics.">PxControllerStats</a>
<a name="l00140"></a>00140 {
<a name="l00141"></a><a class="code" href="structPxControllerStats.html#21f83b28a7113c641e2330c1490704d3">00141</a> <a class="code" href="namespacephysx.html#9caf1cbcda071b6d2a9c069faa99da23">PxU16</a> nbIterations;
<a name="l00142"></a><a class="code" href="structPxControllerStats.html#b0ef64e5e2d677d2c62ad04ff150db9b">00142</a> <a class="code" href="namespacephysx.html#9caf1cbcda071b6d2a9c069faa99da23">PxU16</a> nbFullUpdates;
<a name="l00143"></a><a class="code" href="structPxControllerStats.html#a3d6b4144484bf5d7735011766d40a78">00143</a> <a class="code" href="namespacephysx.html#9caf1cbcda071b6d2a9c069faa99da23">PxU16</a> nbPartialUpdates;
<a name="l00144"></a><a class="code" href="structPxControllerStats.html#469b51d5beff9d726b4375c48a134d1e">00144</a> <a class="code" href="namespacephysx.html#9caf1cbcda071b6d2a9c069faa99da23">PxU16</a> nbTessellation;
<a name="l00145"></a>00145 };
<a name="l00146"></a>00146
<a name="l00150"></a><a class="code" href="structPxControllerHit.html">00150</a> <span class="keyword">struct </span><a class="code" href="structPxControllerHit.html" title="Describes a generic CCT hit.">PxControllerHit</a>
<a name="l00151"></a>00151 {
<a name="l00152"></a><a class="code" href="structPxControllerHit.html#7409b00db580b9b60b3c7dd62131c7f9">00152</a> <a class="code" href="classPxController.html" title="Base class for character controllers.">PxController</a>* controller;
<a name="l00153"></a><a class="code" href="structPxControllerHit.html#e1b54753285595ec3d08cf8dd8df6bf7">00153</a> <a class="code" href="structPxExtendedVec3.html">PxExtendedVec3</a> worldPos;
<a name="l00154"></a><a class="code" href="structPxControllerHit.html#eb8d260592d13fddbfda1dc12372086a">00154</a> <a class="code" href="classPxVec3.html" title="3 Element vector class.">PxVec3</a> worldNormal;
<a name="l00155"></a><a class="code" href="structPxControllerHit.html#2b0631afdd736ccd98fc3250c27c5864">00155</a> <a class="code" href="classPxVec3.html" title="3 Element vector class.">PxVec3</a> dir;
<a name="l00156"></a><a class="code" href="structPxControllerHit.html#a2296561efe5e85018d55fdc0be877c8">00156</a> <a class="code" href="namespacephysx.html#b4cf332bdb6e8b183e40b6973acc1e9b">PxF32</a> length;
<a name="l00157"></a>00157 };
<a name="l00158"></a>00158
<a name="l00164"></a><a class="code" href="structPxControllerShapeHit.html">00164</a> <span class="keyword">struct </span><a class="code" href="structPxControllerShapeHit.html" title="Describes a hit between a CCT and a shape. Passed to onShapeHit().">PxControllerShapeHit</a> : <span class="keyword">public</span> <a class="code" href="structPxControllerHit.html" title="Describes a generic CCT hit.">PxControllerHit</a>
<a name="l00165"></a>00165 {
<a name="l00166"></a><a class="code" href="structPxControllerShapeHit.html#00674a4fef9d9912dc14e8c7a1aeecca">00166</a> <a class="code" href="classPxShape.html" title="Abstract class for collision shapes.">PxShape</a>* shape;
<a name="l00167"></a><a class="code" href="structPxControllerShapeHit.html#a5a88d88e377b19117ef76279a5bcf9f">00167</a> <a class="code" href="classPxRigidActor.html" title="PxRigidActor represents a base class shared between dynamic and static rigid bodies...">PxRigidActor</a>* actor;
<a name="l00168"></a><a class="code" href="structPxControllerShapeHit.html#fb10e6feb31fc80b9d14d31b2789b5a0">00168</a> <a class="code" href="namespacephysx.html#9b7fbd746d18bf5b6545713a8d818f41">PxU32</a> triangleIndex;
<a name="l00169"></a>00169 };
<a name="l00170"></a>00170
<a name="l00176"></a><a class="code" href="structPxControllersHit.html">00176</a> <span class="keyword">struct </span><a class="code" href="structPxControllersHit.html" title="Describes a hit between a CCT and another CCT. Passed to onControllerHit().">PxControllersHit</a> : <span class="keyword">public</span> <a class="code" href="structPxControllerHit.html" title="Describes a generic CCT hit.">PxControllerHit</a>
<a name="l00177"></a>00177 {
<a name="l00178"></a><a class="code" href="structPxControllersHit.html#c609ec1ced86c8cce5543fc4e1aa97a2">00178</a> <a class="code" href="classPxController.html" title="Base class for character controllers.">PxController</a>* other;
<a name="l00179"></a>00179 };
<a name="l00180"></a>00180
<a name="l00186"></a><a class="code" href="structPxControllerObstacleHit.html">00186</a> <span class="keyword">struct </span><a class="code" href="structPxControllerObstacleHit.html" title="Describes a hit between a CCT and a user-defined obstacle. Passed to onObstacleHit()...">PxControllerObstacleHit</a> : <span class="keyword">public</span> <a class="code" href="structPxControllerHit.html" title="Describes a generic CCT hit.">PxControllerHit</a>
<a name="l00187"></a>00187 {
<a name="l00188"></a><a class="code" href="structPxControllerObstacleHit.html#3024a08b0783d8ee62f91ee04b611cf4">00188</a> <span class="keyword">const</span> <span class="keywordtype">void</span>* userData;
<a name="l00189"></a>00189 };
<a name="l00190"></a>00190
<a name="l00198"></a><a class="code" href="classPxUserControllerHitReport.html">00198</a> <span class="keyword">class </span><a class="code" href="classPxUserControllerHitReport.html" title="User callback class for character controller events.">PxUserControllerHitReport</a>
<a name="l00199"></a>00199 {
<a name="l00200"></a>00200 <span class="keyword">public</span>:
<a name="l00201"></a>00201
<a name="l00211"></a>00211 <span class="keyword">virtual</span> <span class="keywordtype">void</span> onShapeHit(<span class="keyword">const</span> <a class="code" href="structPxControllerShapeHit.html" title="Describes a hit between a CCT and a shape. Passed to onShapeHit().">PxControllerShapeHit</a>& hit) = 0;
<a name="l00212"></a>00212
<a name="l00220"></a>00220 <span class="keyword">virtual</span> <span class="keywordtype">void</span> onControllerHit(<span class="keyword">const</span> <a class="code" href="structPxControllersHit.html" title="Describes a hit between a CCT and another CCT. Passed to onControllerHit().">PxControllersHit</a>& hit) = 0;
<a name="l00221"></a>00221
<a name="l00229"></a>00229 <span class="keyword">virtual</span> <span class="keywordtype">void</span> onObstacleHit(<span class="keyword">const</span> <a class="code" href="structPxControllerObstacleHit.html" title="Describes a hit between a CCT and a user-defined obstacle. Passed to onObstacleHit()...">PxControllerObstacleHit</a>& hit) = 0;
<a name="l00230"></a>00230
<a name="l00231"></a>00231 <span class="keyword">protected</span>:
<a name="l00232"></a><a class="code" href="classPxUserControllerHitReport.html#4c9fb318a01f7bc299c29d4ce8038058">00232</a> <span class="keyword">virtual</span> <a class="code" href="classPxUserControllerHitReport.html#4c9fb318a01f7bc299c29d4ce8038058">~PxUserControllerHitReport</a>(){}
<a name="l00233"></a>00233 };
<a name="l00234"></a>00234
<a name="l00235"></a>00235
<a name="l00247"></a><a class="code" href="classPxControllerFilterCallback.html">00247</a> <span class="keyword">class </span><a class="code" href="classPxControllerFilterCallback.html" title="Dedicated filtering callback for CCT vs CCT.">PxControllerFilterCallback</a>
<a name="l00248"></a>00248 {
<a name="l00249"></a>00249 <span class="keyword">public</span>:
<a name="l00250"></a><a class="code" href="classPxControllerFilterCallback.html#4e3b6035ab3f5ae561abeba651621972">00250</a> <span class="keyword">virtual</span> <a class="code" href="classPxControllerFilterCallback.html#4e3b6035ab3f5ae561abeba651621972">~PxControllerFilterCallback</a>(){}
<a name="l00251"></a>00251
<a name="l00259"></a>00259 <span class="keyword">virtual</span> <span class="keywordtype">bool</span> filter(<span class="keyword">const</span> <a class="code" href="classPxController.html" title="Base class for character controllers.">PxController</a>& a, <span class="keyword">const</span> <a class="code" href="classPxController.html" title="Base class for character controllers.">PxController</a>& b) = 0;
<a name="l00260"></a>00260 };
<a name="l00261"></a>00261
<a name="l00279"></a><a class="code" href="classPxControllerFilters.html">00279</a> <span class="keyword">class </span><a class="code" href="classPxControllerFilters.html" title="Filtering data for &quot;move&quot; call.">PxControllerFilters</a>
<a name="l00280"></a>00280 {
<a name="l00281"></a>00281 <span class="keyword">public</span>:
<a name="l00282"></a>00282
<a name="l00283"></a><a class="code" href="classPxControllerFilters.html#227af0c6a4dd87dc7b40e8ba4fda2c92">00283</a> <a class="code" href="group__foundation.html#gcb03347b642a2a5bdea1f9b305a6fbec">PX_INLINE</a> <a class="code" href="classPxControllerFilters.html" title="Filtering data for &quot;move&quot; call.">PxControllerFilters</a>(<span class="keyword">const</span> <a class="code" href="structPxFilterData.html" title="PxFilterData is user-definable data which gets passed into the collision filtering...">PxFilterData</a>* filterData=NULL, <a class="code" href="classPxQueryFilterCallback.html" title="Scene query filtering callbacks.">PxQueryFilterCallback</a>* cb=NULL, <a class="code" href="classPxControllerFilterCallback.html" title="Dedicated filtering callback for CCT vs CCT.">PxControllerFilterCallback</a>* cctFilterCb=NULL) :
<a name="l00284"></a>00284 mFilterData (filterData),
<a name="l00285"></a>00285 mFilterCallback (cb),
<a name="l00286"></a>00286 mFilterFlags (<a class="code" href="structPxQueryFlag.html" title="Filtering flags for scene queries.">PxQueryFlag</a>::eSTATIC|<a class="code" href="structPxQueryFlag.html" title="Filtering flags for scene queries.">PxQueryFlag</a>::eDYNAMIC|<a class="code" href="structPxQueryFlag.html" title="Filtering flags for scene queries.">PxQueryFlag</a>::ePREFILTER),
<a name="l00287"></a>00287 mCCTFilterCallback (cctFilterCb)
<a name="l00288"></a>00288 {}
<a name="l00289"></a>00289
<a name="l00290"></a>00290 <span class="comment">// CCT-vs-shapes:</span>
<a name="l00291"></a><a class="code" href="classPxControllerFilters.html#cf5e6d944353328cb490c7627c697a82">00291</a> <span class="keyword">const</span> <a class="code" href="structPxFilterData.html" title="PxFilterData is user-definable data which gets passed into the collision filtering...">PxFilterData</a>* mFilterData;
<a name="l00292"></a>00292
<a name="l00293"></a><a class="code" href="classPxControllerFilters.html#e7ac0b3c1356b19fbe66db9309e181c8">00293</a> <a class="code" href="classPxQueryFilterCallback.html" title="Scene query filtering callbacks.">PxQueryFilterCallback</a>* mFilterCallback;
<a name="l00294"></a><a class="code" href="classPxControllerFilters.html#9281f07b97b88a5720d30282b97e086d">00294</a> <a class="code" href="classPxFlags.html">PxQueryFlags</a> mFilterFlags;
<a name="l00295"></a>00295 <span class="comment">// CCT-vs-CCT:</span>
<a name="l00296"></a><a class="code" href="classPxControllerFilters.html#cb0784a5f9495abad851ac52f313ee3f">00296</a> <a class="code" href="classPxControllerFilterCallback.html" title="Dedicated filtering callback for CCT vs CCT.">PxControllerFilterCallback</a>* mCCTFilterCallback;
<a name="l00297"></a>00297 };
<a name="l00298"></a>00298
<a name="l00304"></a><a class="code" href="classPxControllerDesc.html">00304</a> <span class="keyword">class </span><a class="code" href="classPxControllerDesc.html" title="Descriptor class for a character controller.">PxControllerDesc</a>
<a name="l00305"></a>00305 {
<a name="l00306"></a>00306 <span class="keyword">public</span>:
<a name="l00307"></a>00307
<a name="l00313"></a>00313 <a class="code" href="group__foundation.html#gcb03347b642a2a5bdea1f9b305a6fbec">PX_INLINE</a> <span class="keyword">virtual</span> <span class="keywordtype">bool</span> isValid() <span class="keyword">const</span>;
<a name="l00314"></a>00314
<a name="l00322"></a><a class="code" href="classPxControllerDesc.html#609846f3b5cc062d7c98686b669cca72">00322</a> <a class="code" href="group__foundation.html#gcb03347b642a2a5bdea1f9b305a6fbec">PX_INLINE</a> <a class="code" href="structPxControllerShapeType.html#46022b44cb41038a1b05bcaa6e043d03">PxControllerShapeType::Enum</a> <a class="code" href="classPxControllerDesc.html#609846f3b5cc062d7c98686b669cca72" title="Returns the character controller type.">getType</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> mType; }
<a name="l00323"></a>00323
<a name="l00331"></a><a class="code" href="classPxControllerDesc.html#32b1a3f9f58902b31058b9c076fd8ae3">00331</a> <a class="code" href="structPxExtendedVec3.html">PxExtendedVec3</a> position;
<a name="l00332"></a>00332
<a name="l00341"></a><a class="code" href="classPxControllerDesc.html#f1a0990b26249f3114c41e20a9cb3087">00341</a> <a class="code" href="classPxVec3.html" title="3 Element vector class.">PxVec3</a> upDirection;
<a name="l00342"></a>00342
<a name="l00357"></a><a class="code" href="classPxControllerDesc.html#adb1325a040c61b6cd29cfa94d24c180">00357</a> <a class="code" href="namespacephysx.html#b4cf332bdb6e8b183e40b6973acc1e9b">PxF32</a> slopeLimit;
<a name="l00358"></a>00358
<a name="l00370"></a><a class="code" href="classPxControllerDesc.html#c67b8bbd1150f4e9fb30e56e4a81a7e1">00370</a> <a class="code" href="namespacephysx.html#b4cf332bdb6e8b183e40b6973acc1e9b">PxF32</a> invisibleWallHeight;
<a name="l00371"></a>00371
<a name="l00395"></a><a class="code" href="classPxControllerDesc.html#36e184a8b3c7a4ffbd1f2ab934d37ae1">00395</a> <a class="code" href="namespacephysx.html#b4cf332bdb6e8b183e40b6973acc1e9b">PxF32</a> maxJumpHeight;
<a name="l00396"></a>00396
<a name="l00408"></a><a class="code" href="classPxControllerDesc.html#811b0354ee3c9c037dca94f7cae4205e">00408</a> <a class="code" href="namespacephysx.html#b4cf332bdb6e8b183e40b6973acc1e9b">PxF32</a> contactOffset;
<a name="l00409"></a>00409
<a name="l00421"></a><a class="code" href="classPxControllerDesc.html#51fe254a4807b832b2d34e884d856438">00421</a> <a class="code" href="namespacephysx.html#b4cf332bdb6e8b183e40b6973acc1e9b">PxF32</a> stepOffset;
<a name="l00422"></a>00422
<a name="l00430"></a><a class="code" href="classPxControllerDesc.html#6da1c7c40072c2419015dc40e754ab66">00430</a> <a class="code" href="namespacephysx.html#b4cf332bdb6e8b183e40b6973acc1e9b">PxF32</a> density;
<a name="l00431"></a>00431
<a name="l00440"></a><a class="code" href="classPxControllerDesc.html#c8f9db4e34061ab9193886159e1d76f7">00440</a> <a class="code" href="namespacephysx.html#b4cf332bdb6e8b183e40b6973acc1e9b">PxF32</a> scaleCoeff;
<a name="l00441"></a>00441
<a name="l00450"></a><a class="code" href="classPxControllerDesc.html#93930e888fcd4c2f7bafeac83621612e">00450</a> <a class="code" href="namespacephysx.html#b4cf332bdb6e8b183e40b6973acc1e9b">PxF32</a> volumeGrowth;
<a name="l00451"></a>00451
<a name="l00463"></a><a class="code" href="classPxControllerDesc.html#56056268aeb2b3c460060d593b1df118">00463</a> <a class="code" href="classPxUserControllerHitReport.html" title="User callback class for character controller events.">PxUserControllerHitReport</a>* reportCallback;
<a name="l00464"></a>00464
<a name="l00476"></a><a class="code" href="classPxControllerDesc.html#1638be92a0c32864ccd7f78a8035260a">00476</a> <a class="code" href="classPxControllerBehaviorCallback.html" title="User behavior callback.">PxControllerBehaviorCallback</a>* behaviorCallback;
<a name="l00477"></a>00477
<a name="l00487"></a><a class="code" href="classPxControllerDesc.html#d8286ec8cdb374997b9902a1ef21192c">00487</a> <a class="code" href="structPxControllerNonWalkableMode.html#4dd560c274d7c9076469ae267ffa87f2">PxControllerNonWalkableMode::Enum</a> nonWalkableMode;
<a name="l00488"></a>00488
<a name="l00498"></a><a class="code" href="classPxControllerDesc.html#7a249fbbf5920b61715eb518178496f1">00498</a> <a class="code" href="classPxMaterial.html" title="Material class to represent a set of surface properties.">PxMaterial</a>* material;
<a name="l00499"></a>00499
<a name="l00511"></a><a class="code" href="classPxControllerDesc.html#ce3cfde3ada3a9a4b12c7c117cf1d137">00511</a> <span class="keywordtype">bool</span> registerDeletionListener;
<a name="l00512"></a>00512
<a name="l00518"></a><a class="code" href="classPxControllerDesc.html#b1144ac32fd0a4173e8d3136ae3e604f">00518</a> <span class="keywordtype">void</span>* userData;
<a name="l00519"></a>00519
<a name="l00520"></a>00520 <span class="keyword">protected</span>:
<a name="l00521"></a><a class="code" href="classPxControllerDesc.html#dc3a15c47a52f31c449724fe71686d1b">00521</a> <span class="keyword">const</span> <a class="code" href="structPxControllerShapeType.html#46022b44cb41038a1b05bcaa6e043d03">PxControllerShapeType::Enum</a> mType;
<a name="l00522"></a>00522
<a name="l00526"></a>00526 <a class="code" href="group__foundation.html#gcb03347b642a2a5bdea1f9b305a6fbec">PX_INLINE</a> <a class="code" href="classPxControllerDesc.html" title="Descriptor class for a character controller.">PxControllerDesc</a>(<a class="code" href="structPxControllerShapeType.html#46022b44cb41038a1b05bcaa6e043d03">PxControllerShapeType::Enum</a>);
<a name="l00527"></a>00527 <a class="code" href="group__foundation.html#gcb03347b642a2a5bdea1f9b305a6fbec">PX_INLINE</a> <span class="keyword">virtual</span> ~<a class="code" href="classPxControllerDesc.html" title="Descriptor class for a character controller.">PxControllerDesc</a>();
<a name="l00528"></a>00528
<a name="l00532"></a>00532 <a class="code" href="group__foundation.html#gcb03347b642a2a5bdea1f9b305a6fbec">PX_INLINE</a> <a class="code" href="classPxControllerDesc.html" title="Descriptor class for a character controller.">PxControllerDesc</a>(<span class="keyword">const</span> <a class="code" href="classPxControllerDesc.html" title="Descriptor class for a character controller.">PxControllerDesc</a>&);
<a name="l00533"></a>00533
<a name="l00537"></a>00537 <a class="code" href="group__foundation.html#gcb03347b642a2a5bdea1f9b305a6fbec">PX_INLINE</a> <a class="code" href="classPxControllerDesc.html" title="Descriptor class for a character controller.">PxControllerDesc</a>& operator=(<span class="keyword">const</span> <a class="code" href="classPxControllerDesc.html" title="Descriptor class for a character controller.">PxControllerDesc</a>&);
<a name="l00538"></a>00538
<a name="l00539"></a>00539 <a class="code" href="group__foundation.html#gcb03347b642a2a5bdea1f9b305a6fbec">PX_INLINE</a> <span class="keywordtype">void</span> copy(<span class="keyword">const</span> <a class="code" href="classPxControllerDesc.html" title="Descriptor class for a character controller.">PxControllerDesc</a>&);
<a name="l00540"></a>00540 };
<a name="l00541"></a>00541
<a name="l00542"></a><a class="code" href="group__character.html#g749a16c7bcdb8341d346abe43c023c12">00542</a> <a class="code" href="group__foundation.html#gcb03347b642a2a5bdea1f9b305a6fbec">PX_INLINE</a> <a class="code" href="group__character.html#g749a16c7bcdb8341d346abe43c023c12" title="constructor sets to default.">PxControllerDesc::PxControllerDesc</a>(<a class="code" href="structPxControllerShapeType.html#46022b44cb41038a1b05bcaa6e043d03">PxControllerShapeType::Enum</a> t) : mType(t)
<a name="l00543"></a>00543 {
<a name="l00544"></a>00544 <a class="code" href="classPxControllerDesc.html#f1a0990b26249f3114c41e20a9cb3087" title="Specifies the &#39;up&#39; direction.">upDirection</a> = <a class="code" href="classPxVec3.html" title="3 Element vector class.">PxVec3</a>(0.0f, 1.0f, 0.0f);
<a name="l00545"></a>00545 <a class="code" href="classPxControllerDesc.html#adb1325a040c61b6cd29cfa94d24c180" title="The maximum slope which the character can walk up.">slopeLimit</a> = 0.707f;
<a name="l00546"></a>00546 <a class="code" href="classPxControllerDesc.html#811b0354ee3c9c037dca94f7cae4205e" title="The contact offset used by the controller.">contactOffset</a> = 0.1f;
<a name="l00547"></a>00547 <a class="code" href="classPxControllerDesc.html#51fe254a4807b832b2d34e884d856438" title="Defines the maximum height of an obstacle which the character can climb.">stepOffset</a> = 0.5f;
<a name="l00548"></a>00548 <a class="code" href="classPxControllerDesc.html#6da1c7c40072c2419015dc40e754ab66" title="Density of underlying kinematic actor.">density</a> = 10.0f;
<a name="l00549"></a>00549 <a class="code" href="classPxControllerDesc.html#c8f9db4e34061ab9193886159e1d76f7" title="Scale coefficient for underlying kinematic actor.">scaleCoeff</a> = 0.8f;
<a name="l00550"></a>00550 <a class="code" href="classPxControllerDesc.html#93930e888fcd4c2f7bafeac83621612e" title="Cached volume growth.">volumeGrowth</a> = 1.5f;
<a name="l00551"></a>00551 <a class="code" href="classPxControllerDesc.html#56056268aeb2b3c460060d593b1df118" title="Specifies a user report callback.">reportCallback</a> = NULL;
<a name="l00552"></a>00552 <a class="code" href="classPxControllerDesc.html#1638be92a0c32864ccd7f78a8035260a" title="Specifies a user behavior callback.">behaviorCallback</a> = NULL;
<a name="l00553"></a>00553 <a class="code" href="classPxControllerDesc.html#b1144ac32fd0a4173e8d3136ae3e604f" title="User specified data associated with the controller.">userData</a> = NULL;
<a name="l00554"></a>00554 <a class="code" href="classPxControllerDesc.html#d8286ec8cdb374997b9902a1ef21192c" title="The non-walkable mode controls if a character controller slides or not on a non-walkable...">nonWalkableMode</a> = <a class="code" href="structPxControllerNonWalkableMode.html#4dd560c274d7c9076469ae267ffa87f2da7953fa71ceda3b66aeeb078e8f6f35" title="Stops character from climbing up non-walkable slopes, but doesn&#39;t move it otherwise...">PxControllerNonWalkableMode::ePREVENT_CLIMBING</a>;
<a name="l00555"></a>00555 <a class="code" href="classPxControllerDesc.html#32b1a3f9f58902b31058b9c076fd8ae3" title="The position of the character.">position</a>.<a class="code" href="structPxExtendedVec3.html#f467c20427874ad2a922b2092f551923">x</a> = <a class="code" href="group__character.html#gfbd2fb84a13cdeb156b671e895d165b9">PxExtended</a>(0.0);
<a name="l00556"></a>00556 <a class="code" href="classPxControllerDesc.html#32b1a3f9f58902b31058b9c076fd8ae3" title="The position of the character.">position</a>.<a class="code" href="structPxExtendedVec3.html#121a719eeda5db48ec97dacd0a7ca006">y</a> = <a class="code" href="group__character.html#gfbd2fb84a13cdeb156b671e895d165b9">PxExtended</a>(0.0);
<a name="l00557"></a>00557 <a class="code" href="classPxControllerDesc.html#32b1a3f9f58902b31058b9c076fd8ae3" title="The position of the character.">position</a>.<a class="code" href="structPxExtendedVec3.html#cd8eee43103488e5873d778b25cdd12b">z</a> = <a class="code" href="group__character.html#gfbd2fb84a13cdeb156b671e895d165b9">PxExtended</a>(0.0);
<a name="l00558"></a>00558 <a class="code" href="classPxControllerDesc.html#7a249fbbf5920b61715eb518178496f1" title="The material for the actor associated with the controller.">material</a> = NULL;
<a name="l00559"></a>00559 <a class="code" href="classPxControllerDesc.html#c67b8bbd1150f4e9fb30e56e4a81a7e1" title="Height of invisible walls created around non-walkable triangles.">invisibleWallHeight</a> = 0.0f;
<a name="l00560"></a>00560 <a class="code" href="classPxControllerDesc.html#36e184a8b3c7a4ffbd1f2ab934d37ae1" title="Maximum height a jumping character can reach.">maxJumpHeight</a> = 0.0f;
<a name="l00561"></a>00561 <a class="code" href="classPxControllerDesc.html#ce3cfde3ada3a9a4b12c7c117cf1d137" title="Use a deletion listener to get informed about released objects and clear internal...">registerDeletionListener</a> = <span class="keyword">true</span>;
<a name="l00562"></a>00562 }
<a name="l00563"></a>00563
<a name="l00564"></a><a class="code" href="group__character.html#g3144636d9207dbed885c9579898987a5">00564</a> <a class="code" href="group__foundation.html#gcb03347b642a2a5bdea1f9b305a6fbec">PX_INLINE</a> <a class="code" href="group__character.html#g749a16c7bcdb8341d346abe43c023c12" title="constructor sets to default.">PxControllerDesc::PxControllerDesc</a>(<span class="keyword">const</span> <a class="code" href="classPxControllerDesc.html" title="Descriptor class for a character controller.">PxControllerDesc</a>& other) : mType(other.mType)
<a name="l00565"></a>00565 {
<a name="l00566"></a>00566 <a class="code" href="group__character.html#gf9c49d2828ce1a5d48d828145a67ae14">copy</a>(other);
<a name="l00567"></a>00567 }
<a name="l00568"></a>00568
<a name="l00569"></a><a class="code" href="group__character.html#ge237ed6fc1c29cdf83cda84e7e0c8b39">00569</a> <a class="code" href="group__foundation.html#gcb03347b642a2a5bdea1f9b305a6fbec">PX_INLINE</a> <a class="code" href="classPxControllerDesc.html" title="Descriptor class for a character controller.">PxControllerDesc</a>& <a class="code" href="group__character.html#ge237ed6fc1c29cdf83cda84e7e0c8b39" title="assignment operator.">PxControllerDesc::operator=</a>(<span class="keyword">const</span> <a class="code" href="classPxControllerDesc.html" title="Descriptor class for a character controller.">PxControllerDesc</a>& other)
<a name="l00570"></a>00570 {
<a name="l00571"></a>00571 <a class="code" href="group__character.html#gf9c49d2828ce1a5d48d828145a67ae14">copy</a>(other);
<a name="l00572"></a>00572 <span class="keywordflow">return</span> *<span class="keyword">this</span>;
<a name="l00573"></a>00573 }
<a name="l00574"></a>00574
<a name="l00575"></a><a class="code" href="group__character.html#gf9c49d2828ce1a5d48d828145a67ae14">00575</a> <a class="code" href="group__foundation.html#gcb03347b642a2a5bdea1f9b305a6fbec">PX_INLINE</a> <span class="keywordtype">void</span> <a class="code" href="group__character.html#gf9c49d2828ce1a5d48d828145a67ae14">PxControllerDesc::copy</a>(<span class="keyword">const</span> <a class="code" href="classPxControllerDesc.html" title="Descriptor class for a character controller.">PxControllerDesc</a>& other)
<a name="l00576"></a>00576 {
<a name="l00577"></a>00577 <a class="code" href="classPxControllerDesc.html#f1a0990b26249f3114c41e20a9cb3087" title="Specifies the &#39;up&#39; direction.">upDirection</a> = other.<a class="code" href="classPxControllerDesc.html#f1a0990b26249f3114c41e20a9cb3087" title="Specifies the &#39;up&#39; direction.">upDirection</a>;
<a name="l00578"></a>00578 <a class="code" href="classPxControllerDesc.html#adb1325a040c61b6cd29cfa94d24c180" title="The maximum slope which the character can walk up.">slopeLimit</a> = other.<a class="code" href="classPxControllerDesc.html#adb1325a040c61b6cd29cfa94d24c180" title="The maximum slope which the character can walk up.">slopeLimit</a>;
<a name="l00579"></a>00579 <a class="code" href="classPxControllerDesc.html#811b0354ee3c9c037dca94f7cae4205e" title="The contact offset used by the controller.">contactOffset</a> = other.<a class="code" href="classPxControllerDesc.html#811b0354ee3c9c037dca94f7cae4205e" title="The contact offset used by the controller.">contactOffset</a>;
<a name="l00580"></a>00580 <a class="code" href="classPxControllerDesc.html#51fe254a4807b832b2d34e884d856438" title="Defines the maximum height of an obstacle which the character can climb.">stepOffset</a> = other.<a class="code" href="classPxControllerDesc.html#51fe254a4807b832b2d34e884d856438" title="Defines the maximum height of an obstacle which the character can climb.">stepOffset</a>;
<a name="l00581"></a>00581 <a class="code" href="classPxControllerDesc.html#6da1c7c40072c2419015dc40e754ab66" title="Density of underlying kinematic actor.">density</a> = other.<a class="code" href="classPxControllerDesc.html#6da1c7c40072c2419015dc40e754ab66" title="Density of underlying kinematic actor.">density</a>;
<a name="l00582"></a>00582 <a class="code" href="classPxControllerDesc.html#c8f9db4e34061ab9193886159e1d76f7" title="Scale coefficient for underlying kinematic actor.">scaleCoeff</a> = other.<a class="code" href="classPxControllerDesc.html#c8f9db4e34061ab9193886159e1d76f7" title="Scale coefficient for underlying kinematic actor.">scaleCoeff</a>;
<a name="l00583"></a>00583 <a class="code" href="classPxControllerDesc.html#93930e888fcd4c2f7bafeac83621612e" title="Cached volume growth.">volumeGrowth</a> = other.<a class="code" href="classPxControllerDesc.html#93930e888fcd4c2f7bafeac83621612e" title="Cached volume growth.">volumeGrowth</a>;
<a name="l00584"></a>00584 <a class="code" href="classPxControllerDesc.html#56056268aeb2b3c460060d593b1df118" title="Specifies a user report callback.">reportCallback</a> = other.<a class="code" href="classPxControllerDesc.html#56056268aeb2b3c460060d593b1df118" title="Specifies a user report callback.">reportCallback</a>;
<a name="l00585"></a>00585 <a class="code" href="classPxControllerDesc.html#1638be92a0c32864ccd7f78a8035260a" title="Specifies a user behavior callback.">behaviorCallback</a> = other.<a class="code" href="classPxControllerDesc.html#1638be92a0c32864ccd7f78a8035260a" title="Specifies a user behavior callback.">behaviorCallback</a>;
<a name="l00586"></a>00586 <a class="code" href="classPxControllerDesc.html#b1144ac32fd0a4173e8d3136ae3e604f" title="User specified data associated with the controller.">userData</a> = other.<a class="code" href="classPxControllerDesc.html#b1144ac32fd0a4173e8d3136ae3e604f" title="User specified data associated with the controller.">userData</a>;
<a name="l00587"></a>00587 <a class="code" href="classPxControllerDesc.html#d8286ec8cdb374997b9902a1ef21192c" title="The non-walkable mode controls if a character controller slides or not on a non-walkable...">nonWalkableMode</a> = other.<a class="code" href="classPxControllerDesc.html#d8286ec8cdb374997b9902a1ef21192c" title="The non-walkable mode controls if a character controller slides or not on a non-walkable...">nonWalkableMode</a>;
<a name="l00588"></a>00588 <a class="code" href="classPxControllerDesc.html#32b1a3f9f58902b31058b9c076fd8ae3" title="The position of the character.">position</a>.<a class="code" href="structPxExtendedVec3.html#f467c20427874ad2a922b2092f551923">x</a> = other.<a class="code" href="classPxControllerDesc.html#32b1a3f9f58902b31058b9c076fd8ae3" title="The position of the character.">position</a>.<a class="code" href="structPxExtendedVec3.html#f467c20427874ad2a922b2092f551923">x</a>;
<a name="l00589"></a>00589 <a class="code" href="classPxControllerDesc.html#32b1a3f9f58902b31058b9c076fd8ae3" title="The position of the character.">position</a>.<a class="code" href="structPxExtendedVec3.html#121a719eeda5db48ec97dacd0a7ca006">y</a> = other.<a class="code" href="classPxControllerDesc.html#32b1a3f9f58902b31058b9c076fd8ae3" title="The position of the character.">position</a>.<a class="code" href="structPxExtendedVec3.html#121a719eeda5db48ec97dacd0a7ca006">y</a>;
<a name="l00590"></a>00590 <a class="code" href="classPxControllerDesc.html#32b1a3f9f58902b31058b9c076fd8ae3" title="The position of the character.">position</a>.<a class="code" href="structPxExtendedVec3.html#cd8eee43103488e5873d778b25cdd12b">z</a> = other.<a class="code" href="classPxControllerDesc.html#32b1a3f9f58902b31058b9c076fd8ae3" title="The position of the character.">position</a>.<a class="code" href="structPxExtendedVec3.html#cd8eee43103488e5873d778b25cdd12b">z</a>;
<a name="l00591"></a>00591 <a class="code" href="classPxControllerDesc.html#7a249fbbf5920b61715eb518178496f1" title="The material for the actor associated with the controller.">material</a> = other.<a class="code" href="classPxControllerDesc.html#7a249fbbf5920b61715eb518178496f1" title="The material for the actor associated with the controller.">material</a>;
<a name="l00592"></a>00592 <a class="code" href="classPxControllerDesc.html#c67b8bbd1150f4e9fb30e56e4a81a7e1" title="Height of invisible walls created around non-walkable triangles.">invisibleWallHeight</a> = other.<a class="code" href="classPxControllerDesc.html#c67b8bbd1150f4e9fb30e56e4a81a7e1" title="Height of invisible walls created around non-walkable triangles.">invisibleWallHeight</a>;
<a name="l00593"></a>00593 <a class="code" href="classPxControllerDesc.html#36e184a8b3c7a4ffbd1f2ab934d37ae1" title="Maximum height a jumping character can reach.">maxJumpHeight</a> = other.<a class="code" href="classPxControllerDesc.html#36e184a8b3c7a4ffbd1f2ab934d37ae1" title="Maximum height a jumping character can reach.">maxJumpHeight</a>;
<a name="l00594"></a>00594 <a class="code" href="classPxControllerDesc.html#ce3cfde3ada3a9a4b12c7c117cf1d137" title="Use a deletion listener to get informed about released objects and clear internal...">registerDeletionListener</a> = other.<a class="code" href="classPxControllerDesc.html#ce3cfde3ada3a9a4b12c7c117cf1d137" title="Use a deletion listener to get informed about released objects and clear internal...">registerDeletionListener</a>;
<a name="l00595"></a>00595 }
<a name="l00596"></a>00596
<a name="l00597"></a><a class="code" href="group__character.html#geea81704d1af3dec82b411b53d39b7e0">00597</a> <a class="code" href="group__foundation.html#gcb03347b642a2a5bdea1f9b305a6fbec">PX_INLINE</a> <a class="code" href="group__character.html#geea81704d1af3dec82b411b53d39b7e0">PxControllerDesc::~PxControllerDesc</a>()
<a name="l00598"></a>00598 {
<a name="l00599"></a>00599 }
<a name="l00600"></a>00600
<a name="l00601"></a><a class="code" href="group__character.html#g4bc247ac0f6c9cf1a0baa75c6b1c5ce1">00601</a> <a class="code" href="group__foundation.html#gcb03347b642a2a5bdea1f9b305a6fbec">PX_INLINE</a> <span class="keywordtype">bool</span> <a class="code" href="group__character.html#g4bc247ac0f6c9cf1a0baa75c6b1c5ce1" title="returns true if the current settings are valid">PxControllerDesc::isValid</a>()<span class="keyword"> const</span>
<a name="l00602"></a>00602 <span class="keyword"></span>{
<a name="l00603"></a>00603 <span class="keywordflow">if</span>( <a class="code" href="classPxControllerDesc.html#dc3a15c47a52f31c449724fe71686d1b" title="The type of the controller. This gets set by the derived class&#39; ctor, the user...">mType</a>!=<a class="code" href="structPxControllerShapeType.html#46022b44cb41038a1b05bcaa6e043d03b43bc932646395ab414f8f4acd18f1e8" title="A box controller.">PxControllerShapeType::eBOX</a>
<a name="l00604"></a>00604 && <a class="code" href="classPxControllerDesc.html#dc3a15c47a52f31c449724fe71686d1b" title="The type of the controller. This gets set by the derived class&#39; ctor, the user...">mType</a>!=<a class="code" href="structPxControllerShapeType.html#46022b44cb41038a1b05bcaa6e043d03121f8b7104f6e1d6bc258a1150f38ee0" title="A capsule controller.">PxControllerShapeType::eCAPSULE</a>)
<a name="l00605"></a>00605 <span class="keywordflow">return</span> <span class="keyword">false</span>;
<a name="l00606"></a>00606 <span class="keywordflow">if</span>(<a class="code" href="classPxControllerDesc.html#c8f9db4e34061ab9193886159e1d76f7" title="Scale coefficient for underlying kinematic actor.">scaleCoeff</a><0.0f) <span class="keywordflow">return</span> <span class="keyword">false</span>;
<a name="l00607"></a>00607 <span class="keywordflow">if</span>(<a class="code" href="classPxControllerDesc.html#93930e888fcd4c2f7bafeac83621612e" title="Cached volume growth.">volumeGrowth</a><1.0f) <span class="keywordflow">return</span> <span class="keyword">false</span>;
<a name="l00608"></a>00608 <span class="keywordflow">if</span>(<a class="code" href="classPxControllerDesc.html#6da1c7c40072c2419015dc40e754ab66" title="Density of underlying kinematic actor.">density</a><0.0f) <span class="keywordflow">return</span> <span class="keyword">false</span>;
<a name="l00609"></a>00609 <span class="keywordflow">if</span>(<a class="code" href="classPxControllerDesc.html#adb1325a040c61b6cd29cfa94d24c180" title="The maximum slope which the character can walk up.">slopeLimit</a><0.0f) <span class="keywordflow">return</span> <span class="keyword">false</span>;
<a name="l00610"></a>00610 <span class="keywordflow">if</span>(<a class="code" href="classPxControllerDesc.html#51fe254a4807b832b2d34e884d856438" title="Defines the maximum height of an obstacle which the character can climb.">stepOffset</a><0.0f) <span class="keywordflow">return</span> <span class="keyword">false</span>;
<a name="l00611"></a>00611 <span class="keywordflow">if</span>(<a class="code" href="classPxControllerDesc.html#811b0354ee3c9c037dca94f7cae4205e" title="The contact offset used by the controller.">contactOffset</a><=0.0f) <span class="keywordflow">return</span> <span class="keyword">false</span>;
<a name="l00612"></a>00612 <span class="keywordflow">if</span>(!<a class="code" href="classPxControllerDesc.html#7a249fbbf5920b61715eb518178496f1" title="The material for the actor associated with the controller.">material</a>) <span class="keywordflow">return</span> <span class="keyword">false</span>;
<a name="l00613"></a>00613
<a name="l00614"></a>00614 <span class="keywordflow">return</span> <span class="keyword">true</span>;
<a name="l00615"></a>00615 }
<a name="l00616"></a>00616
<a name="l00617"></a>00617
<a name="l00623"></a><a class="code" href="classPxController.html">00623</a> <span class="keyword">class </span><a class="code" href="classPxController.html" title="Base class for character controllers.">PxController</a>
<a name="l00624"></a>00624 {
<a name="l00625"></a>00625 <span class="keyword">public</span>:
<a name="l00626"></a>00626 <span class="comment">//*********************************************************************</span>
<a name="l00627"></a>00627 <span class="comment">// DEPRECATED FUNCTIONS:</span>
<a name="l00628"></a>00628 <span class="comment">//</span>
<a name="l00629"></a>00629 <span class="comment">// PX_DEPRECATED virtual void setInteraction(PxCCTInteractionMode::Enum flag) = 0;</span>
<a name="l00630"></a>00630 <span class="comment">// PX_DEPRECATED virtual PxCCTInteractionMode::Enum getInteraction() const = 0;</span>
<a name="l00631"></a>00631 <span class="comment">// PX_DEPRECATED virtual void setGroupsBitmask(PxU32 bitmask) = 0;</span>
<a name="l00632"></a>00632 <span class="comment">// PX_DEPRECATED virtual PxU32 getGroupsBitmask() const = 0;</span>
<a name="l00633"></a>00633 <span class="comment">//</span>
<a name="l00634"></a>00634 <span class="comment">// => replaced with:</span>
<a name="l00635"></a>00635 <span class="comment">//</span>
<a name="l00636"></a>00636 <span class="comment">// PxControllerFilters::mCCTFilterCallback. Please define a PxControllerFilterCallback object and emulate the old interaction mode there.</span>
<a name="l00637"></a>00637 <span class="comment">//</span>
<a name="l00638"></a>00638 <span class="comment">//*********************************************************************</span>
<a name="l00639"></a>00639
<a name="l00645"></a>00645 <span class="keyword">virtual</span> <a class="code" href="structPxControllerShapeType.html#46022b44cb41038a1b05bcaa6e043d03">PxControllerShapeType::Enum</a> <a class="code" href="classPxController.html#d98589ad22dcdcedaf1c5fa9f0f40b53" title="Return the type of controller.">getType</a>() <span class="keyword">const</span> = 0;
<a name="l00646"></a>00646
<a name="l00650"></a>00650 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classPxController.html#0ed314c5bf5dd95f9f340de15efb5776" title="Releases the controller.">release</a>() = 0;
<a name="l00651"></a>00651
<a name="l00663"></a>00663 <span class="keyword">virtual</span> <a class="code" href="classPxFlags.html" title="Container for bitfield flag variables associated with a specific enum type.">PxControllerCollisionFlags</a> <a class="code" href="classPxController.html#1cbd9da6b634f45585df92bb71e37782" title="Moves the character using a &quot;collide-and-slide&quot; algorithm.">move</a>(<span class="keyword">const</span> <a class="code" href="classPxVec3.html" title="3 Element vector class.">PxVec3</a>& disp, <a class="code" href="namespacephysx.html#b4cf332bdb6e8b183e40b6973acc1e9b">PxF32</a> minDist, <a class="code" href="namespacephysx.html#b4cf332bdb6e8b183e40b6973acc1e9b">PxF32</a> elapsedTime, <span class="keyword">const</span> <a class="code" href="classPxControllerFilters.html" title="Filtering data for &quot;move&quot; call.">PxControllerFilters</a>& filters, <span class="keyword">const</span> <a class="code" href="classPxObstacleContext.html" title="Context class for obstacles.">PxObstacleContext</a>* obstacles=NULL) = 0;
<a name="l00664"></a>00664
<a name="l00680"></a>00680 <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="classPxController.html#2687b4fabb77f2998ce31bffccc74a78" title="Sets controller&#39;s position.">setPosition</a>(<span class="keyword">const</span> <a class="code" href="structPxExtendedVec3.html">PxExtendedVec3</a>& position) = 0;
<a name="l00681"></a>00681
<a name="l00695"></a>00695 <span class="keyword">virtual</span> <span class="keyword">const</span> <a class="code" href="structPxExtendedVec3.html">PxExtendedVec3</a>& <a class="code" href="classPxController.html#ca54bef0663caf75613a5542e54d318e" title="Retrieve the raw position of the controller.">getPosition</a>() <span class="keyword">const</span> = 0;
<a name="l00696"></a>00696
<a name="l00713"></a>00713 <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="classPxController.html#b09889972859bf03168d1d48434094ff" title="Set controller&#39;s foot position.">setFootPosition</a>(<span class="keyword">const</span> <a class="code" href="structPxExtendedVec3.html">PxExtendedVec3</a>& position) = 0;
<a name="l00714"></a>00714
<a name="l00724"></a>00724 <span class="keyword">virtual</span> <a class="code" href="structPxExtendedVec3.html">PxExtendedVec3</a> <a class="code" href="classPxController.html#401af38fab565432d05b87112b26b816" title="Retrieve the &quot;foot&quot; position of the controller, i.e. the position of the...">getFootPosition</a>() <span class="keyword">const</span> = 0;
<a name="l00725"></a>00725
<a name="l00733"></a>00733 <span class="keyword">virtual</span> <a class="code" href="classPxRigidDynamic.html" title="PxRigidDynamic represents a dynamic rigid simulation object in the physics SDK.">PxRigidDynamic</a>* <a class="code" href="classPxController.html#3754e17468322484fa5fd7034a208653" title="Get the rigid body actor associated with this controller (see PhysX documentation)...">getActor</a>() <span class="keyword">const</span> = 0;
<a name="l00734"></a>00734
<a name="l00742"></a>00742 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classPxController.html#6cad9ee5c32ccbf80ec47465a07dcdc3" title="The step height.">setStepOffset</a>(<span class="keyword">const</span> <a class="code" href="namespacephysx.html#b4cf332bdb6e8b183e40b6973acc1e9b">PxF32</a> offset) =0;
<a name="l00743"></a>00743
<a name="l00751"></a>00751 <span class="keyword">virtual</span> <a class="code" href="namespacephysx.html#b4cf332bdb6e8b183e40b6973acc1e9b">PxF32</a> <a class="code" href="classPxController.html#2a46763eb7541abe5d1c73eacca4639c" title="Retrieve the step height.">getStepOffset</a>() <span class="keyword">const</span> =0;
<a name="l00752"></a>00752
<a name="l00760"></a>00760 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classPxController.html#8f30123d5e7d45c6fdb1992cf8c748ef" title="Sets the non-walkable mode for the CCT.">setNonWalkableMode</a>(<a class="code" href="structPxControllerNonWalkableMode.html#4dd560c274d7c9076469ae267ffa87f2">PxControllerNonWalkableMode::Enum</a> flag) = 0;
<a name="l00761"></a>00761
<a name="l00769"></a>00769 <span class="keyword">virtual</span> <a class="code" href="structPxControllerNonWalkableMode.html#4dd560c274d7c9076469ae267ffa87f2">PxControllerNonWalkableMode::Enum</a> <a class="code" href="classPxController.html#d16b10c1e20376c23ce81af23b5ef880" title="Retrieves the non-walkable mode for the CCT.">getNonWalkableMode</a>() <span class="keyword">const</span> = 0;
<a name="l00770"></a>00770
<a name="l00778"></a>00778 <span class="keyword">virtual</span> <a class="code" href="namespacephysx.html#b4cf332bdb6e8b183e40b6973acc1e9b">PxF32</a> <a class="code" href="classPxController.html#836a426813b11552b4dfb481e0ba576f" title="Retrieve the contact offset.">getContactOffset</a>() <span class="keyword">const</span> =0;
<a name="l00779"></a>00779
<a name="l00787"></a>00787 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classPxController.html#6bf15ba0b66b3f271fdb2f2c6cb8c68b" title="Sets the contact offset.">setContactOffset</a>(<a class="code" href="namespacephysx.html#b4cf332bdb6e8b183e40b6973acc1e9b">PxF32</a> offset) =0;
<a name="l00788"></a>00788
<a name="l00796"></a>00796 <span class="keyword">virtual</span> <a class="code" href="classPxVec3.html" title="3 Element vector class.">PxVec3</a> <a class="code" href="classPxController.html#d8fe2f181b59bcbee150f786bb41adfe" title="Retrieve the &#39;up&#39; direction.">getUpDirection</a>() <span class="keyword">const</span> =0;
<a name="l00797"></a>00797
<a name="l00805"></a>00805 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classPxController.html#3393ba5043c3534712d8f362a9872cfc" title="Sets the &#39;up&#39; direction.">setUpDirection</a>(<span class="keyword">const</span> <a class="code" href="classPxVec3.html" title="3 Element vector class.">PxVec3</a>& up) =0;
<a name="l00806"></a>00806
<a name="l00814"></a>00814 <span class="keyword">virtual</span> <a class="code" href="namespacephysx.html#b4cf332bdb6e8b183e40b6973acc1e9b">PxF32</a> <a class="code" href="classPxController.html#7e03e7863dd2036f673b084f3ce94629" title="Retrieve the slope limit.">getSlopeLimit</a>() <span class="keyword">const</span> =0;
<a name="l00815"></a>00815
<a name="l00827"></a>00827 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classPxController.html#5e3a554fe03319301360df65122f22c8" title="Sets the slope limit.">setSlopeLimit</a>(<a class="code" href="namespacephysx.html#b4cf332bdb6e8b183e40b6973acc1e9b">PxF32</a> slopeLimit) =0;
<a name="l00828"></a>00828
<a name="l00844"></a>00844 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classPxController.html#4d65669022c2f65926fde8112e72c500" title="Flushes internal geometry cache.">invalidateCache</a>() = 0;
<a name="l00845"></a>00845
<a name="l00851"></a>00851 <span class="keyword">virtual</span> <a class="code" href="classPxScene.html" title="A scene is a collection of bodies, particle systems and constraints which can interact...">PxScene</a>* <a class="code" href="classPxController.html#3a7134907855142bcae10e462958a61e" title="Retrieve the scene associated with the controller.">getScene</a>() = 0;
<a name="l00852"></a>00852
<a name="l00860"></a>00860 <span class="keyword">virtual</span> <span class="keywordtype">void</span>* <a class="code" href="classPxController.html#74cdda2b323e76b66ffc6a5c02376e92" title="Returns the user data associated with this controller.">getUserData</a>() <span class="keyword">const</span> = 0;
<a name="l00861"></a>00861
<a name="l00869"></a>00869 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classPxController.html#2b6c1841bafa53877baa3dca8543c9ca" title="Sets the user data associated with this controller.">setUserData</a>(<span class="keywordtype">void</span>* userData) = 0;
<a name="l00870"></a>00870
<a name="l00878"></a>00878 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classPxController.html#d694218683ad584f6120bc001c0d1616" title="Returns information about the controller&#39;s internal state.">getState</a>(<a class="code" href="structPxControllerState.html" title="Describes a controller&#39;s internal state.">PxControllerState</a>& state) <span class="keyword">const</span> = 0;
<a name="l00879"></a>00879
<a name="l00887"></a>00887 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classPxController.html#e98a10df99157bdaed67a05795fb3599" title="Returns the controller&#39;s internal statistics.">getStats</a>(<a class="code" href="structPxControllerStats.html" title="Describes a controller&#39;s internal statistics.">PxControllerStats</a>& stats) <span class="keyword">const</span> = 0;
<a name="l00888"></a>00888
<a name="l00899"></a>00899 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classPxController.html#4b982db163cd5189357eee4c26430cf6" title="Resizes the controller.">resize</a>(<a class="code" href="namespacephysx.html#727d2d8426e2a21ebbc522fa65c3f97a">PxReal</a> height) = 0;
<a name="l00900"></a>00900
<a name="l00901"></a>00901 <span class="keyword">protected</span>:
<a name="l00902"></a><a class="code" href="classPxController.html#4694a2b9523adf437e190e0d15257ef1">00902</a> <a class="code" href="group__foundation.html#gcb03347b642a2a5bdea1f9b305a6fbec">PX_INLINE</a> <a class="code" href="classPxController.html#4694a2b9523adf437e190e0d15257ef1">PxController</a>() {}
<a name="l00903"></a><a class="code" href="classPxController.html#b4f1f687e01ff03d36cf295da28ee381">00903</a> <span class="keyword">virtual</span> <a class="code" href="classPxController.html#b4f1f687e01ff03d36cf295da28ee381">~PxController</a>() {}
<a name="l00904"></a>00904 };
<a name="l00905"></a>00905
<a name="l00906"></a>00906 <span class="preprocessor">#if !PX_DOXYGEN</span>
<a name="l00907"></a>00907 <span class="preprocessor"></span>} <span class="comment">// namespace physx</span>
<a name="l00908"></a>00908 <span class="preprocessor">#endif</span>
<a name="l00909"></a>00909 <span class="preprocessor"></span>
<a name="l00911"></a>00911 <span class="preprocessor">#endif</span>
</pre></div></div>
<hr style="width: 100%; height: 2px;"><br>
Copyright © 2008-2017 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>
|