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
|
<html>
<head>
<title>NVIDIA(R) PhysX(R) SDK 3.4 API Reference: PxCombineMode Struct 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>PxCombineMode Struct Reference<br>
<small>
[<a class="el" href="group__physics.html">Physics</a>]</small>
</h1><!-- doxytag: class="PxCombineMode" -->enumeration that determines the way in which two material properties will be combined to yield a friction or restitution coefficient for a collision.
<a href="#_details">More...</a>
<p>
<code>#include <<a class="el" href="PxMaterial_8h-source.html">PxMaterial.h</a>></code>
<p>
<p>
<a href="structPxCombineMode-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 Types</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">enum </td><td class="memItemRight" valign="bottom"><a class="el" href="structPxCombineMode.html#7d586f7800efb63ee14c7a24e0eb6727">Enum</a> { <br>
<a class="el" href="structPxCombineMode.html#7d586f7800efb63ee14c7a24e0eb67272c12a95b4b7cde20d845c629be849c92">eAVERAGE</a> = 0,
<br>
<a class="el" href="structPxCombineMode.html#7d586f7800efb63ee14c7a24e0eb67275020741270303f7e4253d8f646b18683">eMIN</a> = 1,
<br>
<a class="el" href="structPxCombineMode.html#7d586f7800efb63ee14c7a24e0eb672770c797fd2ce4c8afde0e0c5054d5aa35">eMULTIPLY</a> = 2,
<br>
<a class="el" href="structPxCombineMode.html#7d586f7800efb63ee14c7a24e0eb6727e36f28e4a23a58e6a32b0b350bc834d1">eMAX</a> = 3,
<br>
<a class="el" href="structPxCombineMode.html#7d586f7800efb63ee14c7a24e0eb6727bba784e2067e321833bc88759cdb0039">eN_VALUES</a> = 4,
<br>
<a class="el" href="structPxCombineMode.html#7d586f7800efb63ee14c7a24e0eb67278aa4ff19d77a29323c9a1556dd85d71b">ePAD_32</a> = 0x7fffffff
<br>
}</td></tr>
</table>
<hr><a name="_details"></a><h2>Detailed Description</h2>
enumeration that determines the way in which two material properties will be combined to yield a friction or restitution coefficient for a collision.
<p>
When two actors come in contact with each other, they each have materials with various coefficients, but we only need a single set of coefficients for the pair.<p>
Physics doesn't have any inherent combinations because the coefficients are determined empirically on a case by case basis. However, simulating this with a pairwise lookup table is often impractical.<p>
For this reason the following combine behaviors are available:<p>
eAVERAGE eMIN eMULTIPLY eMAX<p>
The effective combine mode for the pair is maximum(material0.combineMode, material1.combineMode).<p>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="classPxMaterial.html#15c32fcd28a63a02caad0247dd2e9835" title="Sets the friction combine mode.">PxMaterial.setFrictionCombineMode()</a> <a class="el" href="classPxMaterial.html#0d97b1335e367b8f27f32f6c3766f5a8" title="Retrieves the friction combine mode.">PxMaterial.getFrictionCombineMode()</a> <a class="el" href="classPxMaterial.html#8f9930b0e18a932e428a061891e4683f" title="Sets the restitution combine mode.">PxMaterial.setRestitutionCombineMode()</a> <a class="el" href="classPxMaterial.html#0d97b1335e367b8f27f32f6c3766f5a8" title="Retrieves the friction combine mode.">PxMaterial.getFrictionCombineMode()</a> </dd></dl>
<hr><h2>Member Enumeration Documentation</h2>
<a class="anchor" name="7d586f7800efb63ee14c7a24e0eb6727"></a><!-- doxytag: member="PxCombineMode::Enum" ref="7d586f7800efb63ee14c7a24e0eb6727" args="" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">enum <a class="el" href="structPxCombineMode.html#7d586f7800efb63ee14c7a24e0eb6727">PxCombineMode::Enum</a> </td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
<dl compact><dt><b>Enumerator: </b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"><em><a class="anchor" name="7d586f7800efb63ee14c7a24e0eb67272c12a95b4b7cde20d845c629be849c92"></a><!-- doxytag: member="eAVERAGE" ref="7d586f7800efb63ee14c7a24e0eb67272c12a95b4b7cde20d845c629be849c92" args="" -->eAVERAGE</em> </td><td>
Average: (a + b)/2. </td></tr>
<tr><td valign="top"><em><a class="anchor" name="7d586f7800efb63ee14c7a24e0eb67275020741270303f7e4253d8f646b18683"></a><!-- doxytag: member="eMIN" ref="7d586f7800efb63ee14c7a24e0eb67275020741270303f7e4253d8f646b18683" args="" -->eMIN</em> </td><td>
Minimum: minimum(a,b). </td></tr>
<tr><td valign="top"><em><a class="anchor" name="7d586f7800efb63ee14c7a24e0eb672770c797fd2ce4c8afde0e0c5054d5aa35"></a><!-- doxytag: member="eMULTIPLY" ref="7d586f7800efb63ee14c7a24e0eb672770c797fd2ce4c8afde0e0c5054d5aa35" args="" -->eMULTIPLY</em> </td><td>
Multiply: a*b. </td></tr>
<tr><td valign="top"><em><a class="anchor" name="7d586f7800efb63ee14c7a24e0eb6727e36f28e4a23a58e6a32b0b350bc834d1"></a><!-- doxytag: member="eMAX" ref="7d586f7800efb63ee14c7a24e0eb6727e36f28e4a23a58e6a32b0b350bc834d1" args="" -->eMAX</em> </td><td>
Maximum: maximum(a,b). </td></tr>
<tr><td valign="top"><em><a class="anchor" name="7d586f7800efb63ee14c7a24e0eb6727bba784e2067e321833bc88759cdb0039"></a><!-- doxytag: member="eN_VALUES" ref="7d586f7800efb63ee14c7a24e0eb6727bba784e2067e321833bc88759cdb0039" args="" -->eN_VALUES</em> </td><td>
This is not a valid combine mode, it is a sentinel to denote the number of possible values. We assert that the variable's value is smaller than this. </td></tr>
<tr><td valign="top"><em><a class="anchor" name="7d586f7800efb63ee14c7a24e0eb67278aa4ff19d77a29323c9a1556dd85d71b"></a><!-- doxytag: member="ePAD_32" ref="7d586f7800efb63ee14c7a24e0eb67278aa4ff19d77a29323c9a1556dd85d71b" args="" -->ePAD_32</em> </td><td>
This is not a valid combine mode, it is to assure that the size of the enum type is big enough. </td></tr>
</table>
</dl>
</div>
</div><p>
<hr>The documentation for this struct was generated from the following file:<ul>
<li><a class="el" href="PxMaterial_8h-source.html">PxMaterial.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>
|