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
|
<html>
<head>
<title>NVIDIA(R) PhysX(R) SDK 3.4 API Reference: PxParticleFluid 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>PxParticleFluid Class Reference<br>
<small>
[<a class="el" href="group__particles.html">particles (deprecated)</a>]</small>
</h1><!-- doxytag: class="PxParticleFluid" --><!-- doxytag: inherits="PxParticleBase" -->The particle fluid class represents the main module for particle based fluid simulation. (deprecated) SPH (Smoothed Particle Hydrodynamics) is used to animate the particles. This class inherits the properties of the <a class="el" href="classPxParticleBase.html" title="The particle base class represents the shared module for particle based simulation...">PxParticleBase</a> class and adds particle-particle interactions.
<a href="#_details">More...</a>
<p>
<code>#include <<a class="el" href="PxParticleFluid_8h-source.html">PxParticleFluid.h</a>></code>
<p>
<div class="dynheader">
Inheritance diagram for PxParticleFluid:</div>
<div class="dynsection">
<p><center><img src="classPxParticleFluid__inherit__graph.png" border="0" usemap="#PxParticleFluid__inherit__map" alt="Inheritance graph"></center>
<map name="PxParticleFluid__inherit__map">
<area shape="rect" href="classPxParticleBase.html" title="The particle base class represents the shared module for particle based simulation..." alt="PxParticleBase" coords="7,155,105,176"><area shape="rect" href="classPxActor.html" title="PxActor is the base class for the main simulation objects in the physics SDK." alt="PxActor" coords="29,86,83,107"><area shape="rect" href="classPxBase.html" title="Base class for objects that can be members of a PxCollection." alt="PxBase" coords="28,16,84,38"></map>
<center><font size="2">[<a target="top" href="graph_legend.html">legend</a>]</font></center></div>
<div class="dynheader">
Collaboration diagram for PxParticleFluid:</div>
<div class="dynsection">
<p><center><img src="classPxParticleFluid__coll__graph.png" border="0" usemap="#PxParticleFluid__coll__map" alt="Collaboration graph"></center>
<map name="PxParticleFluid__coll__map">
<area shape="rect" href="classPxParticleBase.html" title="The particle base class represents the shared module for particle based simulation..." alt="PxParticleBase" coords="76,250,175,272"><area shape="rect" href="classPxActor.html" title="PxActor is the base class for the main simulation objects in the physics SDK." alt="PxActor" coords="99,178,152,200"><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="classPxParticleFluid-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 const char * </td><td class="memItemRight" valign="bottom"><a class="el" href="classPxParticleFluid.html#1ed3457d33695b2bc6742ea45e2d99e9">getConcreteTypeName</a> () const </td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Returns string name of dynamic type. <a href="#1ed3457d33695b2bc6742ea45e2d99e9"></a><br></td></tr>
<tr><td colspan="2"><div class="groupHeader">Particle Access and Manipulation</div></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual <a class="el" href="classPxParticleFluidReadData.html">PxParticleFluidReadData</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classPxParticleFluid.html#a00477b4e0b5621d7c9d584ad1f97191">lockParticleFluidReadData</a> (<a class="el" href="classPxFlags.html">PxDataAccessFlags</a> flags)=0</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Locks the particle data and provides the data descriptor for accessing the particles including fluid particle densities. <a href="#a00477b4e0b5621d7c9d584ad1f97191"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual <a class="el" href="classPxParticleFluidReadData.html">PxParticleFluidReadData</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classPxParticleFluid.html#32d7cf762fd8d1e71b961b0565c06f95">lockParticleFluidReadData</a> ()=0</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Locks the particle data and provides the data descriptor for accessing the particles including fluid particle densities. <a href="#32d7cf762fd8d1e71b961b0565c06f95"></a><br></td></tr>
<tr><td colspan="2"><div class="groupHeader">Particle Fluid Parameters</div></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual PxReal </td><td class="memItemRight" valign="bottom"><a class="el" href="classPxParticleFluid.html#20a0cdb50445cf6db5d4438567fb21c8">getStiffness</a> () const =0</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Returns the fluid stiffness. <a href="#20a0cdb50445cf6db5d4438567fb21c8"></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="classPxParticleFluid.html#334f8a10e7d00c29f3989b906b429fc5">setStiffness</a> (PxReal stiffness)=0</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Sets the fluid stiffness (must be positive). <a href="#334f8a10e7d00c29f3989b906b429fc5"></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="classPxParticleFluid.html#b75d9cc1304f3a9074bb6291215bad8c">getViscosity</a> () const =0</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Returns the fluid viscosity. <a href="#b75d9cc1304f3a9074bb6291215bad8c"></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="classPxParticleFluid.html#51e95f09eeb9730130fb2c139bd2be4c">setViscosity</a> (PxReal viscosity)=0</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Sets the fluid viscosity (must be positive). <a href="#51e95f09eeb9730130fb2c139bd2be4c"></a><br></td></tr>
<tr><td colspan="2"><div class="groupHeader">Particle Fluid Property Read Back</div></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual PxReal </td><td class="memItemRight" valign="bottom"><a class="el" href="classPxParticleFluid.html#5d371c0e7abcc93f5158cd964d29a6a1">getRestParticleDistance</a> () const =0</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Returns the typical distance of particles in the relaxed state of the fluid. <a href="#5d371c0e7abcc93f5158cd964d29a6a1"></a><br></td></tr>
<tr><td colspan="2"><div class="groupHeader">Particle Fluid Parameters</div></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classPxParticleFluid.html#6f649af954b4fda3c6a72e689637e07f">setRestParticleDistance</a> (PxReal restParticleDistance)=0</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Sets the typical distance of particles in the relaxed state of the fluid. <a href="#6f649af954b4fda3c6a72e689637e07f"></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="classPxParticleFluid.html#a47d7c6c87f093ecf774b1a164b294b5">PxParticleFluid</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">PX_INLINE </td><td class="memItemRight" valign="bottom"><a class="el" href="classPxParticleFluid.html#1355760c2e345ab70190308946fbd825">PxParticleFluid</a> (<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="classPxParticleFluid.html#2025a7991e04e74dc8c62b38784b205d">~PxParticleFluid</a> ()</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classPxParticleFluid.html#0db52e5bf2c3ba3ee1e4c2eec3a18a74">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="#0db52e5bf2c3ba3ee1e4c2eec3a18a74"></a><br></td></tr>
</table>
<hr><a name="_details"></a><h2>Detailed Description</h2>
The particle fluid class represents the main module for particle based fluid simulation. (deprecated) SPH (Smoothed Particle Hydrodynamics) is used to animate the particles. This class inherits the properties of the <a class="el" href="classPxParticleBase.html" title="The particle base class represents the shared module for particle based simulation...">PxParticleBase</a> class and adds particle-particle interactions.
<p>
There are two kinds of particle interaction forces which govern the behaviour of the fluid: <ol>
<li>
Pressure forces: These forces result from particle densities higher than the "rest density" of the fluid. The rest density is given by specifying the inter-particle distance at which the fluid is in its relaxed state. Particles which are closer than the rest spacing are pushed away from each other. </li>
<li>
Viscosity forces: These forces act on neighboring particles depending on the difference of their velocities. Particles drag other particles with them which is used to simulate the viscous behaviour of the fluid. </li>
</ol>
<p>
For a good introduction to SPH fluid simulation, see <a href="http://www.matthiasmueller.info/publications/sca03.pdf">http://www.matthiasmueller.info/publications/sca03.pdf</a><p>
<dl compact><dt><b><a class="el" href="deprecated.html#_deprecated000091">Deprecated:</a></b></dt><dd>The PhysX particle feature has been deprecated in PhysX version 3.4</dd></dl>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="classPxParticleBase.html" title="The particle base class represents the shared module for particle based simulation...">PxParticleBase</a>, <a class="el" href="classPxParticleFluidReadData.html" title="Data layout descriptor for reading fluid particle data from the SDK. (deprecated)...">PxParticleFluidReadData</a>, <a class="el" href="classPxPhysics.html#ea19c431d479c76fe44f64291c872744" title="Creates a particle fluid. (deprecated).">PxPhysics.createParticleFluid</a> </dd></dl>
<hr><h2>Constructor & Destructor Documentation</h2>
<a class="anchor" name="a47d7c6c87f093ecf774b1a164b294b5"></a><!-- doxytag: member="PxParticleFluid::PxParticleFluid" ref="a47d7c6c87f093ecf774b1a164b294b5" args="(PxType concreteType, PxBaseFlags baseFlags)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">PX_INLINE PxParticleFluid::PxParticleFluid </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="1355760c2e345ab70190308946fbd825"></a><!-- doxytag: member="PxParticleFluid::PxParticleFluid" ref="1355760c2e345ab70190308946fbd825" args="(PxBaseFlags baseFlags)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">PX_INLINE PxParticleFluid::PxParticleFluid </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="2025a7991e04e74dc8c62b38784b205d"></a><!-- doxytag: member="PxParticleFluid::~PxParticleFluid" ref="2025a7991e04e74dc8c62b38784b205d" args="()" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">virtual PxParticleFluid::~PxParticleFluid </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="1ed3457d33695b2bc6742ea45e2d99e9"></a><!-- doxytag: member="PxParticleFluid::getConcreteTypeName" ref="1ed3457d33695b2bc6742ea45e2d99e9" args="() const " -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">virtual const char* PxParticleFluid::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="5d371c0e7abcc93f5158cd964d29a6a1"></a><!-- doxytag: member="PxParticleFluid::getRestParticleDistance" ref="5d371c0e7abcc93f5158cd964d29a6a1" args="() const =0" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">virtual PxReal PxParticleFluid::getRestParticleDistance </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 typical distance of particles in the relaxed state of the fluid.
<p>
<dl class="return" compact><dt><b>Returns:</b></dt><dd>Rest particle distance. </dd></dl>
</div>
</div><p>
<a class="anchor" name="20a0cdb50445cf6db5d4438567fb21c8"></a><!-- doxytag: member="PxParticleFluid::getStiffness" ref="20a0cdb50445cf6db5d4438567fb21c8" args="() const =0" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">virtual PxReal PxParticleFluid::getStiffness </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 fluid stiffness.
<p>
<dl class="return" compact><dt><b>Returns:</b></dt><dd>The fluid stiffness. </dd></dl>
</div>
</div><p>
<a class="anchor" name="b75d9cc1304f3a9074bb6291215bad8c"></a><!-- doxytag: member="PxParticleFluid::getViscosity" ref="b75d9cc1304f3a9074bb6291215bad8c" args="() const =0" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">virtual PxReal PxParticleFluid::getViscosity </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 fluid viscosity.
<p>
<dl class="return" compact><dt><b>Returns:</b></dt><dd>The viscosity of the fluid. </dd></dl>
</div>
</div><p>
<a class="anchor" name="0db52e5bf2c3ba3ee1e4c2eec3a18a74"></a><!-- doxytag: member="PxParticleFluid::isKindOf" ref="0db52e5bf2c3ba3ee1e4c2eec3a18a74" args="(const char *name) const " -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">virtual bool PxParticleFluid::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="classPxParticleBase.html#61ea48642f847d81588a2c9e442fe8a0">PxParticleBase</a>.</p>
<p>References <a class="el" href="PxParticleBase_8h-source.html#l00456">PxParticleBase::isKindOf()</a>.</p>
</div>
</div><p>
<a class="anchor" name="32d7cf762fd8d1e71b961b0565c06f95"></a><!-- doxytag: member="PxParticleFluid::lockParticleFluidReadData" ref="32d7cf762fd8d1e71b961b0565c06f95" args="()=0" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">virtual <a class="el" href="classPxParticleFluidReadData.html">PxParticleFluidReadData</a>* PxParticleFluid::lockParticleFluidReadData </td>
<td>(</td>
<td class="paramname"> </td>
<td> ) </td>
<td><code> [pure virtual]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Locks the particle data and provides the data descriptor for accessing the particles including fluid particle densities.
<p>
<dl class="note" compact><dt><b>Note:</b></dt><dd>This is the same as calling lockParticleFluidReadData(PxDataAccessFlag::eREADABLE). </dd></dl>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="classPxParticleFluidReadData.html" title="Data layout descriptor for reading fluid particle data from the SDK. (deprecated)...">PxParticleFluidReadData</a> <p>
<a class="el" href="classPxParticleBase.html#83e1673959b4e6f954173368a6c78ef6" title="Locks the particle read data and provides the data descriptor for accessing the particles...">PxParticleBase::lockParticleReadData()</a> </dd></dl>
</div>
</div><p>
<a class="anchor" name="a00477b4e0b5621d7c9d584ad1f97191"></a><!-- doxytag: member="PxParticleFluid::lockParticleFluidReadData" ref="a00477b4e0b5621d7c9d584ad1f97191" args="(PxDataAccessFlags flags)=0" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">virtual <a class="el" href="classPxParticleFluidReadData.html">PxParticleFluidReadData</a>* PxParticleFluid::lockParticleFluidReadData </td>
<td>(</td>
<td class="paramtype"><a class="el" href="classPxFlags.html">PxDataAccessFlags</a> </td>
<td class="paramname"> <em>flags</em> </td>
<td> ) </td>
<td><code> [pure virtual]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Locks the particle data and provides the data descriptor for accessing the particles including fluid particle densities.
<p>
<dl class="note" compact><dt><b>Note:</b></dt><dd>Only <a class="el" href="structPxDataAccessFlag.html#b6bd468adf2809435d24c9fe4882b6be308b2107e1616517458c104350a72064">PxDataAccessFlag::eREADABLE</a> and <a class="el" href="structPxDataAccessFlag.html#b6bd468adf2809435d24c9fe4882b6beae2ed54d2a15462a9565fbe3554a9024">PxDataAccessFlag::eDEVICE</a> are supported, <a class="el" href="structPxDataAccessFlag.html#b6bd468adf2809435d24c9fe4882b6be93bbaa658d1b07527d2cb719e910e12a">PxDataAccessFlag::eWRITABLE</a> will be ignored. </dd></dl>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="classPxParticleFluidReadData.html" title="Data layout descriptor for reading fluid particle data from the SDK. (deprecated)...">PxParticleFluidReadData</a> <p>
<a class="el" href="classPxParticleBase.html#83e1673959b4e6f954173368a6c78ef6" title="Locks the particle read data and provides the data descriptor for accessing the particles...">PxParticleBase::lockParticleReadData()</a> </dd></dl>
</div>
</div><p>
<a class="anchor" name="6f649af954b4fda3c6a72e689637e07f"></a><!-- doxytag: member="PxParticleFluid::setRestParticleDistance" ref="6f649af954b4fda3c6a72e689637e07f" args="(PxReal restParticleDistance)=0" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">virtual void PxParticleFluid::setRestParticleDistance </td>
<td>(</td>
<td class="paramtype">PxReal </td>
<td class="paramname"> <em>restParticleDistance</em> </td>
<td> ) </td>
<td><code> [pure virtual]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Sets the typical distance of particles in the relaxed state of the fluid.
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>restParticleDistance</em> </td><td>The new restParticleDistance of the fluid. </td></tr>
</table>
</dl>
</div>
</div><p>
<a class="anchor" name="334f8a10e7d00c29f3989b906b429fc5"></a><!-- doxytag: member="PxParticleFluid::setStiffness" ref="334f8a10e7d00c29f3989b906b429fc5" args="(PxReal stiffness)=0" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">virtual void PxParticleFluid::setStiffness </td>
<td>(</td>
<td class="paramtype">PxReal </td>
<td class="paramname"> <em>stiffness</em> </td>
<td> ) </td>
<td><code> [pure virtual]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Sets the fluid stiffness (must be positive).
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>stiffness</em> </td><td>The new fluid stiffness. </td></tr>
</table>
</dl>
</div>
</div><p>
<a class="anchor" name="51e95f09eeb9730130fb2c139bd2be4c"></a><!-- doxytag: member="PxParticleFluid::setViscosity" ref="51e95f09eeb9730130fb2c139bd2be4c" args="(PxReal viscosity)=0" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">virtual void PxParticleFluid::setViscosity </td>
<td>(</td>
<td class="paramtype">PxReal </td>
<td class="paramname"> <em>viscosity</em> </td>
<td> ) </td>
<td><code> [pure virtual]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Sets the fluid viscosity (must be positive).
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>viscosity</em> </td><td>The new viscosity of the fluid. </td></tr>
</table>
</dl>
</div>
</div><p>
<hr>The documentation for this class was generated from the following file:<ul>
<li><a class="el" href="PxParticleFluid_8h-source.html">PxParticleFluid.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>
|