Files
PhysX4.1/physx/documentation/PhysXAPI/files/structPxCombineMode.html
2025-11-28 23:13:44 +05:30

164 lines
9.4 KiB
HTML

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.14"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>PxCombineMode Struct Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(initResizable);
/* @license-end */</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 56px;">
<td id="projectlogo"><img alt="Logo" src="PhysXLogoBlack.png"/></td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.14 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
initMenu('',true,false,'search.php','Search');
$(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
<div id="nav-tree">
<div id="nav-tree-contents">
<div id="nav-sync" class="sync"></div>
</div>
</div>
<div id="splitbar" style="-moz-user-select:none;"
class="ui-resizable-handle">
</div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('structPxCombineMode.html','');});
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>
<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0"
name="MSearchResults" id="MSearchResults">
</iframe>
</div>
<div class="header">
<div class="summary">
<a href="#pub-types">Public Types</a> &#124;
<a href="structPxCombineMode-members.html">List of all members</a> </div>
<div class="headertitle">
<div class="title">PxCombineMode Struct Reference<div class="ingroups"><a class="el" href="group__physics.html">Physics</a></div></div> </div>
</div><!--header-->
<div class="contents">
<p>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="structPxCombineMode.html#details">More...</a></p>
<p><code>#include &lt;<a class="el" href="PxMaterial_8h_source.html">PxMaterial.h</a>&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-types"></a>
Public Types</h2></td></tr>
<tr class="memitem:a7d586f7800efb63ee14c7a24e0eb6727"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structPxCombineMode.html#a7d586f7800efb63ee14c7a24e0eb6727">Enum</a> { <br />
&#160;&#160;<a class="el" href="structPxCombineMode.html#a7d586f7800efb63ee14c7a24e0eb6727a2c12a95b4b7cde20d845c629be849c92">eAVERAGE</a> = 0,
<a class="el" href="structPxCombineMode.html#a7d586f7800efb63ee14c7a24e0eb6727a5020741270303f7e4253d8f646b18683">eMIN</a> = 1,
<a class="el" href="structPxCombineMode.html#a7d586f7800efb63ee14c7a24e0eb6727a70c797fd2ce4c8afde0e0c5054d5aa35">eMULTIPLY</a> = 2,
<a class="el" href="structPxCombineMode.html#a7d586f7800efb63ee14c7a24e0eb6727ae36f28e4a23a58e6a32b0b350bc834d1">eMAX</a> = 3,
<br />
&#160;&#160;<a class="el" href="structPxCombineMode.html#a7d586f7800efb63ee14c7a24e0eb6727abba784e2067e321833bc88759cdb0039">eN_VALUES</a> = 4,
<a class="el" href="structPxCombineMode.html#a7d586f7800efb63ee14c7a24e0eb6727a8aa4ff19d77a29323c9a1556dd85d71b">ePAD_32</a> = 0x7fffffff
<br />
}</td></tr>
<tr class="separator:a7d586f7800efb63ee14c7a24e0eb6727"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>enumeration that determines the way in which two material properties will be combined to yield a friction or restitution coefficient for a collision. </p>
<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>
<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>
<p>For this reason the following combine behaviors are available:</p>
<p>eAVERAGE eMIN eMULTIPLY eMAX</p>
<p>The effective combine mode for the pair is maximum(material0.combineMode, material1.combineMode).</p>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="classPxMaterial.html#a15c32fcd28a63a02caad0247dd2e9835" title="Sets the friction combine mode. ">PxMaterial.setFrictionCombineMode()</a> <a class="el" href="classPxMaterial.html#a0d97b1335e367b8f27f32f6c3766f5a8" title="Retrieves the friction combine mode. ">PxMaterial.getFrictionCombineMode()</a> <a class="el" href="classPxMaterial.html#a8f9930b0e18a932e428a061891e4683f" title="Sets the restitution combine mode. ">PxMaterial.setRestitutionCombineMode()</a> <a class="el" href="classPxMaterial.html#a0d97b1335e367b8f27f32f6c3766f5a8" title="Retrieves the friction combine mode. ">PxMaterial.getFrictionCombineMode()</a> </dd></dl>
</div><h2 class="groupheader">Member Enumeration Documentation</h2>
<a id="a7d586f7800efb63ee14c7a24e0eb6727"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a7d586f7800efb63ee14c7a24e0eb6727">&#9670;&nbsp;</a></span>Enum</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">enum <a class="el" href="structPxCombineMode.html#a7d586f7800efb63ee14c7a24e0eb6727">PxCombineMode::Enum</a></td>
</tr>
</table>
</div><div class="memdoc">
<table class="fieldtable">
<tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><a id="a7d586f7800efb63ee14c7a24e0eb6727a2c12a95b4b7cde20d845c629be849c92"></a>eAVERAGE&#160;</td><td class="fielddoc"><p>Average: (a + b)/2. </p>
</td></tr>
<tr><td class="fieldname"><a id="a7d586f7800efb63ee14c7a24e0eb6727a5020741270303f7e4253d8f646b18683"></a>eMIN&#160;</td><td class="fielddoc"><p>Minimum: minimum(a,b) </p>
</td></tr>
<tr><td class="fieldname"><a id="a7d586f7800efb63ee14c7a24e0eb6727a70c797fd2ce4c8afde0e0c5054d5aa35"></a>eMULTIPLY&#160;</td><td class="fielddoc"><p>Multiply: a*b. </p>
</td></tr>
<tr><td class="fieldname"><a id="a7d586f7800efb63ee14c7a24e0eb6727ae36f28e4a23a58e6a32b0b350bc834d1"></a>eMAX&#160;</td><td class="fielddoc"><p>Maximum: maximum(a,b) </p>
</td></tr>
<tr><td class="fieldname"><a id="a7d586f7800efb63ee14c7a24e0eb6727abba784e2067e321833bc88759cdb0039"></a>eN_VALUES&#160;</td><td class="fielddoc"><p>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. </p>
</td></tr>
<tr><td class="fieldname"><a id="a7d586f7800efb63ee14c7a24e0eb6727a8aa4ff19d77a29323c9a1556dd85d71b"></a>ePAD_32&#160;</td><td class="fielddoc"><p>This is not a valid combine mode, it is to assure that the size of the enum type is big enough. </p>
</td></tr>
</table>
</div>
</div>
<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></li>
</ul>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- HTML footer for doxygen 1.8.14-->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
<ul>
<li class="navelem"><a class="el" href="structPxCombineMode.html">PxCombineMode</a></li>
<li class="footer">Copyright &copy; 2008-2021 NVIDIA Corporation, 2788 San Tomas Expressway, Santa Clara, CA 95051 U.S.A. All rights reserved. <a href="http://www.nvidia.com ">www.nvidia.com</a></li>
</ul>
</div>
</body>
</html>