_soft_body_motion_properties_8h_source.html 96 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml" lang="en-US">
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
  5. <meta http-equiv="X-UA-Compatible" content="IE=11"/>
  6. <meta name="generator" content="Doxygen 1.12.0"/>
  7. <meta name="viewport" content="width=device-width, initial-scale=1"/>
  8. <title>Jolt Physics: Jolt/Physics/SoftBody/SoftBodyMotionProperties.h Source File</title>
  9. <link href="tabs.css" rel="stylesheet" type="text/css"/>
  10. <script type="text/javascript" src="jquery.js"></script>
  11. <script type="text/javascript" src="dynsections.js"></script>
  12. <script type="text/javascript" src="clipboard.js"></script>
  13. <link href="navtree.css" rel="stylesheet" type="text/css"/>
  14. <script type="text/javascript" src="navtreedata.js"></script>
  15. <script type="text/javascript" src="navtree.js"></script>
  16. <script type="text/javascript" src="resize.js"></script>
  17. <script type="text/javascript" src="cookie.js"></script>
  18. <link href="search/search.css" rel="stylesheet" type="text/css"/>
  19. <script type="text/javascript" src="search/searchdata.js"></script>
  20. <script type="text/javascript" src="search/search.js"></script>
  21. <script type="text/x-mathjax-config">
  22. MathJax.Hub.Config({
  23. extensions: ["tex2jax.js"],
  24. jax: ["input/TeX","output/HTML-CSS"],
  25. });
  26. </script>
  27. <script type="text/javascript" async="async" src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/MathJax.js"></script>
  28. <link href="doxygen.css" rel="stylesheet" type="text/css" />
  29. </head>
  30. <body>
  31. <div id="top"><!-- do not remove this div, it is closed by doxygen! -->
  32. <div id="titlearea">
  33. <table cellspacing="0" cellpadding="0">
  34. <tbody>
  35. <tr id="projectrow">
  36. <td id="projectlogo"><img alt="Logo" src="LogoSmall.png"/></td>
  37. <td id="projectalign">
  38. <div id="projectname">Jolt Physics
  39. </div>
  40. <div id="projectbrief">A multi core friendly Game Physics Engine</div>
  41. </td>
  42. </tr>
  43. </tbody>
  44. </table>
  45. </div>
  46. <!-- end header part -->
  47. <!-- Generated by Doxygen 1.12.0 -->
  48. <script type="text/javascript">
  49. /* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
  50. var searchBox = new SearchBox("searchBox", "search/",'.html');
  51. /* @license-end */
  52. </script>
  53. <script type="text/javascript">
  54. /* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
  55. $(function() { codefold.init(0); });
  56. /* @license-end */
  57. </script>
  58. <script type="text/javascript" src="menudata.js"></script>
  59. <script type="text/javascript" src="menu.js"></script>
  60. <script type="text/javascript">
  61. /* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
  62. $(function() {
  63. initMenu('',true,false,'search.php','Search',true);
  64. $(function() { init_search(); });
  65. });
  66. /* @license-end */
  67. </script>
  68. <div id="main-nav"></div>
  69. </div><!-- top -->
  70. <div id="side-nav" class="ui-resizable side-nav-resizable">
  71. <div id="nav-tree">
  72. <div id="nav-tree-contents">
  73. <div id="nav-sync" class="sync"></div>
  74. </div>
  75. </div>
  76. <div id="splitbar" style="-moz-user-select:none;"
  77. class="ui-resizable-handle">
  78. </div>
  79. </div>
  80. <script type="text/javascript">
  81. /* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
  82. $(function(){initNavTree('_soft_body_motion_properties_8h_source.html',''); initResizable(true); });
  83. /* @license-end */
  84. </script>
  85. <div id="doc-content">
  86. <!-- window showing the filter options -->
  87. <div id="MSearchSelectWindow"
  88. onmouseover="return searchBox.OnSearchSelectShow()"
  89. onmouseout="return searchBox.OnSearchSelectHide()"
  90. onkeydown="return searchBox.OnSearchSelectKey(event)">
  91. </div>
  92. <!-- iframe showing the search results (closed by default) -->
  93. <div id="MSearchResultsWindow">
  94. <div id="MSearchResults">
  95. <div class="SRPage">
  96. <div id="SRIndex">
  97. <div id="SRResults"></div>
  98. <div class="SRStatus" id="Loading">Loading...</div>
  99. <div class="SRStatus" id="Searching">Searching...</div>
  100. <div class="SRStatus" id="NoMatches">No Matches</div>
  101. </div>
  102. </div>
  103. </div>
  104. </div>
  105. <div class="header">
  106. <div class="headertitle"><div class="title">SoftBodyMotionProperties.h</div></div>
  107. </div><!--header-->
  108. <div class="contents">
  109. <a href="_soft_body_motion_properties_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a id="l00001" name="l00001"></a><span class="lineno"> 1</span><span class="comment">// Jolt Physics Library (https://github.com/jrouwe/JoltPhysics)</span></div>
  110. <div class="line"><a id="l00002" name="l00002"></a><span class="lineno"> 2</span><span class="comment">// SPDX-FileCopyrightText: 2023 Jorrit Rouwe</span></div>
  111. <div class="line"><a id="l00003" name="l00003"></a><span class="lineno"> 3</span><span class="comment">// SPDX-License-Identifier: MIT</span></div>
  112. <div class="line"><a id="l00004" name="l00004"></a><span class="lineno"> 4</span> </div>
  113. <div class="line"><a id="l00005" name="l00005"></a><span class="lineno"> 5</span><span class="preprocessor">#pragma once</span></div>
  114. <div class="line"><a id="l00006" name="l00006"></a><span class="lineno"> 6</span> </div>
  115. <div class="line"><a id="l00007" name="l00007"></a><span class="lineno"> 7</span><span class="preprocessor">#include &lt;<a class="code" href="_a_a_box_8h.html">Jolt/Geometry/AABox.h</a>&gt;</span></div>
  116. <div class="line"><a id="l00008" name="l00008"></a><span class="lineno"> 8</span><span class="preprocessor">#include &lt;<a class="code" href="_body_i_d_8h.html">Jolt/Physics/Body/BodyID.h</a>&gt;</span></div>
  117. <div class="line"><a id="l00009" name="l00009"></a><span class="lineno"> 9</span><span class="preprocessor">#include &lt;<a class="code" href="_motion_properties_8h.html">Jolt/Physics/Body/MotionProperties.h</a>&gt;</span></div>
  118. <div class="line"><a id="l00010" name="l00010"></a><span class="lineno"> 10</span><span class="preprocessor">#include &lt;<a class="code" href="_transformed_shape_8h.html">Jolt/Physics/Collision/TransformedShape.h</a>&gt;</span></div>
  119. <div class="line"><a id="l00011" name="l00011"></a><span class="lineno"> 11</span><span class="preprocessor">#include &lt;<a class="code" href="_soft_body_shared_settings_8h.html">Jolt/Physics/SoftBody/SoftBodySharedSettings.h</a>&gt;</span></div>
  120. <div class="line"><a id="l00012" name="l00012"></a><span class="lineno"> 12</span><span class="preprocessor">#include &lt;<a class="code" href="_soft_body_vertex_8h.html">Jolt/Physics/SoftBody/SoftBodyVertex.h</a>&gt;</span></div>
  121. <div class="line"><a id="l00013" name="l00013"></a><span class="lineno"> 13</span><span class="preprocessor">#include &lt;<a class="code" href="_soft_body_update_context_8h.html">Jolt/Physics/SoftBody/SoftBodyUpdateContext.h</a>&gt;</span></div>
  122. <div class="line"><a id="l00014" name="l00014"></a><span class="lineno"> 14</span> </div>
  123. <div class="line"><a id="l00015" name="l00015"></a><span class="lineno"> 15</span><a class="code hl_define" href="_core_8h.html#ad14098b68b8c44ea6112601031268405">JPH_NAMESPACE_BEGIN</a></div>
  124. <div class="line"><a id="l00016" name="l00016"></a><span class="lineno"> 16</span> </div>
  125. <div class="line"><a id="l00017" name="l00017"></a><span class="lineno"> 17</span><span class="keyword">class </span><a class="code hl_class" href="class_physics_system.html">PhysicsSystem</a>;</div>
  126. <div class="line"><a id="l00018" name="l00018"></a><span class="lineno"> 18</span><span class="keyword">class </span><a class="code hl_class" href="class_body_interface.html">BodyInterface</a>;</div>
  127. <div class="line"><a id="l00019" name="l00019"></a><span class="lineno"> 19</span><span class="keyword">class </span><a class="code hl_class" href="class_body_lock_interface.html">BodyLockInterface</a>;</div>
  128. <div class="line"><a id="l00020" name="l00020"></a><span class="lineno"> 20</span><span class="keyword">struct </span><a class="code hl_struct" href="struct_physics_settings.html">PhysicsSettings</a>;</div>
  129. <div class="line"><a id="l00021" name="l00021"></a><span class="lineno"> 21</span><span class="keyword">class </span><a class="code hl_class" href="class_body.html">Body</a>;</div>
  130. <div class="line"><a id="l00022" name="l00022"></a><span class="lineno"> 22</span><span class="keyword">class </span><a class="code hl_class" href="class_shape.html">Shape</a>;</div>
  131. <div class="line"><a id="l00023" name="l00023"></a><span class="lineno"> 23</span><span class="keyword">class </span><a class="code hl_class" href="class_soft_body_creation_settings.html">SoftBodyCreationSettings</a>;</div>
  132. <div class="line"><a id="l00024" name="l00024"></a><span class="lineno"> 24</span><span class="keyword">class </span><a class="code hl_class" href="class_temp_allocator.html">TempAllocator</a>;</div>
  133. <div class="line"><a id="l00025" name="l00025"></a><span class="lineno"> 25</span><span class="preprocessor">#ifdef JPH_DEBUG_RENDERER</span></div>
  134. <div class="line"><a id="l00026" name="l00026"></a><span class="lineno"> 26</span><span class="keyword">class </span><a class="code hl_class" href="class_debug_renderer.html">DebugRenderer</a>;</div>
  135. <div class="line"><a id="l00027" name="l00027"></a><span class="lineno"> 27</span><span class="keyword">enum class</span> <a class="code hl_enumeration" href="_body_manager_8h.html#af3216c8a98a28ccd29f5e19f037a59e2">ESoftBodyConstraintColor</a>;</div>
  136. <div class="line"><a id="l00028" name="l00028"></a><span class="lineno"> 28</span><span class="preprocessor">#endif </span><span class="comment">// JPH_DEBUG_RENDERER</span></div>
  137. <div class="line"><a id="l00029" name="l00029"></a><span class="lineno"> 29</span> </div>
  138. <div class="line"><a id="l00031" name="l00031"></a><span class="lineno"> 31</span><span class="comment">//</span></div>
  139. <div class="line"><a id="l00032" name="l00032"></a><span class="lineno"> 32</span><span class="comment">// Based on: XPBD, Extended Position Based Dynamics, Matthias Muller, Ten Minute Physics</span></div>
  140. <div class="line"><a id="l00033" name="l00033"></a><span class="lineno"> 33</span><span class="comment">// See: https://matthias-research.github.io/pages/tenMinutePhysics/09-xpbd.pdf</span></div>
  141. <div class="foldopen" id="foldopen00034" data-start="{" data-end="};">
  142. <div class="line"><a id="l00034" name="l00034"></a><span class="lineno"><a class="line" href="class_soft_body_motion_properties.html"> 34</a></span><span class="keyword">class </span><a class="code hl_define" href="_core_8h.html#a2712a9b0f778ab9d1aa5118b4e8e6bd8">JPH_EXPORT</a> <a class="code hl_class" href="class_soft_body_motion_properties.html">SoftBodyMotionProperties</a> : <span class="keyword">public</span> <a class="code hl_class" href="class_motion_properties.html">MotionProperties</a></div>
  143. <div class="line"><a id="l00035" name="l00035"></a><span class="lineno"> 35</span>{</div>
  144. <div class="line"><a id="l00036" name="l00036"></a><span class="lineno"> 36</span><span class="keyword">public</span>:</div>
  145. <div class="line"><a id="l00037" name="l00037"></a><span class="lineno"><a class="line" href="class_soft_body_motion_properties.html#a75df336bf9ce1b362efe2777604debbe"> 37</a></span> <span class="keyword">using </span><a class="code hl_class" href="class_soft_body_vertex.html">Vertex</a> = <a class="code hl_class" href="class_soft_body_vertex.html">SoftBodyVertex</a>;</div>
  146. <div class="line"><a id="l00038" name="l00038"></a><span class="lineno"><a class="line" href="class_soft_body_motion_properties.html#a25971eb4086d1c55443efcb298cc89e6"> 38</a></span> <span class="keyword">using </span><a class="code hl_struct" href="struct_soft_body_shared_settings_1_1_edge.html">Edge</a> = <a class="code hl_struct" href="struct_soft_body_shared_settings_1_1_edge.html">SoftBodySharedSettings::Edge</a>;</div>
  147. <div class="line"><a id="l00039" name="l00039"></a><span class="lineno"><a class="line" href="class_soft_body_motion_properties.html#a5253ba49fbc97e54c734e6e831c530bd"> 39</a></span> <span class="keyword">using </span><a class="code hl_struct" href="struct_soft_body_shared_settings_1_1_rod_stretch_shear.html">RodStretchShear</a> = <a class="code hl_struct" href="struct_soft_body_shared_settings_1_1_rod_stretch_shear.html">SoftBodySharedSettings::RodStretchShear</a>;</div>
  148. <div class="line"><a id="l00040" name="l00040"></a><span class="lineno"><a class="line" href="class_soft_body_motion_properties.html#ab56e4e1048e6875fbb74189c49b71df4"> 40</a></span> <span class="keyword">using </span><a class="code hl_struct" href="struct_soft_body_shared_settings_1_1_rod_bend_twist.html">RodBendTwist</a> = <a class="code hl_struct" href="struct_soft_body_shared_settings_1_1_rod_bend_twist.html">SoftBodySharedSettings::RodBendTwist</a>;</div>
  149. <div class="line"><a id="l00041" name="l00041"></a><span class="lineno"><a class="line" href="class_soft_body_motion_properties.html#a3016ae78b7466b87d8695c82df9f2663"> 41</a></span> <span class="keyword">using </span><a class="code hl_struct" href="struct_soft_body_shared_settings_1_1_face.html">Face</a> = <a class="code hl_struct" href="struct_soft_body_shared_settings_1_1_face.html">SoftBodySharedSettings::Face</a>;</div>
  150. <div class="line"><a id="l00042" name="l00042"></a><span class="lineno"><a class="line" href="class_soft_body_motion_properties.html#a3d2f1db97c2adadf7b27190e0486192a"> 42</a></span> <span class="keyword">using </span><a class="code hl_struct" href="struct_soft_body_shared_settings_1_1_dihedral_bend.html">DihedralBend</a> = <a class="code hl_struct" href="struct_soft_body_shared_settings_1_1_dihedral_bend.html">SoftBodySharedSettings::DihedralBend</a>;</div>
  151. <div class="line"><a id="l00043" name="l00043"></a><span class="lineno"><a class="line" href="class_soft_body_motion_properties.html#abb014fb4190d9ac04aa5c3faa1556214"> 43</a></span> <span class="keyword">using </span><a class="code hl_struct" href="struct_soft_body_shared_settings_1_1_volume.html">Volume</a> = <a class="code hl_struct" href="struct_soft_body_shared_settings_1_1_volume.html">SoftBodySharedSettings::Volume</a>;</div>
  152. <div class="line"><a id="l00044" name="l00044"></a><span class="lineno"><a class="line" href="class_soft_body_motion_properties.html#aca958392d6456c1d9cff6f4d54cac4f9"> 44</a></span> <span class="keyword">using </span><a class="code hl_class" href="class_soft_body_shared_settings_1_1_inv_bind.html">InvBind</a> = <a class="code hl_class" href="class_soft_body_shared_settings_1_1_inv_bind.html">SoftBodySharedSettings::InvBind</a>;</div>
  153. <div class="line"><a id="l00045" name="l00045"></a><span class="lineno"><a class="line" href="class_soft_body_motion_properties.html#a1a429c3683fb36c70ff13f57c8084f2f"> 45</a></span> <span class="keyword">using </span><a class="code hl_class" href="class_soft_body_shared_settings_1_1_skin_weight.html">SkinWeight</a> = <a class="code hl_class" href="class_soft_body_shared_settings_1_1_skin_weight.html">SoftBodySharedSettings::SkinWeight</a>;</div>
  154. <div class="line"><a id="l00046" name="l00046"></a><span class="lineno"><a class="line" href="class_soft_body_motion_properties.html#a18d7bb8ddc939b3e9fe20a57cd99d722"> 46</a></span> <span class="keyword">using </span><a class="code hl_class" href="class_soft_body_shared_settings_1_1_skinned.html">Skinned</a> = <a class="code hl_class" href="class_soft_body_shared_settings_1_1_skinned.html">SoftBodySharedSettings::Skinned</a>;</div>
  155. <div class="line"><a id="l00047" name="l00047"></a><span class="lineno"><a class="line" href="class_soft_body_motion_properties.html#a5e65775ab2b941a5ea195e714b07eb4e"> 47</a></span> <span class="keyword">using </span><a class="code hl_class" href="class_soft_body_shared_settings_1_1_l_r_a.html">LRA</a> = <a class="code hl_class" href="class_soft_body_shared_settings_1_1_l_r_a.html">SoftBodySharedSettings::LRA</a>;</div>
  156. <div class="line"><a id="l00048" name="l00048"></a><span class="lineno"> 48</span> </div>
  157. <div class="line"><a id="l00050" name="l00050"></a><span class="lineno"> 50</span> <span class="keywordtype">void</span> Initialize(<span class="keyword">const</span> <a class="code hl_class" href="class_soft_body_creation_settings.html">SoftBodyCreationSettings</a> &amp;inSettings);</div>
  158. <div class="line"><a id="l00051" name="l00051"></a><span class="lineno"> 51</span> </div>
  159. <div class="line"><a id="l00053" name="l00053"></a><span class="lineno"><a class="line" href="class_soft_body_motion_properties.html#af56ddceaa1945447bf214647d44ca8f1"> 53</a></span> <span class="keyword">const</span> <a class="code hl_class" href="class_soft_body_shared_settings.html">SoftBodySharedSettings</a> * <a class="code hl_function" href="class_soft_body_motion_properties.html#af56ddceaa1945447bf214647d44ca8f1">GetSettings</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> mSettings; }</div>
  160. <div class="line"><a id="l00054" name="l00054"></a><span class="lineno"> 54</span> </div>
  161. <div class="line"><a id="l00056" name="l00056"></a><span class="lineno"><a class="line" href="class_soft_body_motion_properties.html#a39f8a1dd664ca0cdbbaed3893885e60a"> 56</a></span> <span class="keyword">const</span> <a class="code hl_class" href="class_array.html">Array&lt;Vertex&gt;</a> &amp; <a class="code hl_function" href="class_soft_body_motion_properties.html#a39f8a1dd664ca0cdbbaed3893885e60a">GetVertices</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> mVertices; }</div>
  162. <div class="line"><a id="l00057" name="l00057"></a><span class="lineno"><a class="line" href="class_soft_body_motion_properties.html#a14aaefdff39da80c5d00f3733618bebb"> 57</a></span> <a class="code hl_class" href="class_array.html">Array&lt;Vertex&gt;</a> &amp; <a class="code hl_function" href="class_soft_body_motion_properties.html#a14aaefdff39da80c5d00f3733618bebb">GetVertices</a>() { <span class="keywordflow">return</span> mVertices; }</div>
  163. <div class="line"><a id="l00058" name="l00058"></a><span class="lineno"> 58</span> </div>
  164. <div class="line"><a id="l00060" name="l00060"></a><span class="lineno"><a class="line" href="class_soft_body_motion_properties.html#aa2581182a2773f19f17bb868419eced1"> 60</a></span> <span class="keyword">const</span> <a class="code hl_class" href="class_soft_body_vertex.html">Vertex</a> &amp; <a class="code hl_function" href="class_soft_body_motion_properties.html#aa2581182a2773f19f17bb868419eced1">GetVertex</a>(<a class="code hl_typedef" href="_core_8h.html#a69aa29b598b851b0640aa225a9e5d61d">uint</a> inIndex)<span class="keyword"> const </span>{ <span class="keywordflow">return</span> mVertices[inIndex]; }</div>
  165. <div class="line"><a id="l00061" name="l00061"></a><span class="lineno"><a class="line" href="class_soft_body_motion_properties.html#a043b0f7b9bcc457d12af67a184c82b8e"> 61</a></span> <a class="code hl_class" href="class_soft_body_vertex.html">Vertex</a> &amp; <a class="code hl_function" href="class_soft_body_motion_properties.html#a043b0f7b9bcc457d12af67a184c82b8e">GetVertex</a>(<a class="code hl_typedef" href="_core_8h.html#a69aa29b598b851b0640aa225a9e5d61d">uint</a> inIndex) { <span class="keywordflow">return</span> mVertices[inIndex]; }</div>
  166. <div class="line"><a id="l00062" name="l00062"></a><span class="lineno"> 62</span> </div>
  167. <div class="line"><a id="l00064" name="l00064"></a><span class="lineno"><a class="line" href="class_soft_body_motion_properties.html#ab897342b62eecb50abf364ce5be7d7a6"> 64</a></span> <a class="code hl_class" href="class_quat.html">Quat</a> <a class="code hl_function" href="class_soft_body_motion_properties.html#ab897342b62eecb50abf364ce5be7d7a6">GetRodRotation</a>(<a class="code hl_typedef" href="_core_8h.html#a69aa29b598b851b0640aa225a9e5d61d">uint</a> inIndex)<span class="keyword"> const </span>{ <span class="keywordflow">return</span> mRodStates[inIndex].mRotation; }</div>
  168. <div class="line"><a id="l00065" name="l00065"></a><span class="lineno"><a class="line" href="class_soft_body_motion_properties.html#ac18e13a54816a14ce4c3531dc3fff217"> 65</a></span> <a class="code hl_class" href="class_vec3.html">Vec3</a> <a class="code hl_function" href="class_soft_body_motion_properties.html#ac18e13a54816a14ce4c3531dc3fff217">GetRodAngularVelocity</a>(<a class="code hl_typedef" href="_core_8h.html#a69aa29b598b851b0640aa225a9e5d61d">uint</a> inIndex)<span class="keyword"> const </span>{ <span class="keywordflow">return</span> mRodStates[inIndex].mAngularVelocity; }</div>
  169. <div class="line"><a id="l00066" name="l00066"></a><span class="lineno"> 66</span> </div>
  170. <div class="line"><a id="l00068" name="l00068"></a><span class="lineno"><a class="line" href="class_soft_body_motion_properties.html#a1fc5838f0275d998d9431767dc516a71"> 68</a></span> <span class="keyword">const</span> <a class="code hl_class" href="class_array.html">PhysicsMaterialList</a> &amp; <a class="code hl_function" href="class_soft_body_motion_properties.html#a1fc5838f0275d998d9431767dc516a71">GetMaterials</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> mSettings-&gt;mMaterials; }</div>
  171. <div class="line"><a id="l00069" name="l00069"></a><span class="lineno"> 69</span> </div>
  172. <div class="line"><a id="l00071" name="l00071"></a><span class="lineno"><a class="line" href="class_soft_body_motion_properties.html#a8166377ba1eaf8dea4589bc90e8baf23"> 71</a></span> <span class="keyword">const</span> <a class="code hl_class" href="class_array.html">Array&lt;Face&gt;</a> &amp; <a class="code hl_function" href="class_soft_body_motion_properties.html#a8166377ba1eaf8dea4589bc90e8baf23">GetFaces</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> mSettings-&gt;mFaces; }</div>
  173. <div class="line"><a id="l00072" name="l00072"></a><span class="lineno"> 72</span> </div>
  174. <div class="line"><a id="l00074" name="l00074"></a><span class="lineno"><a class="line" href="class_soft_body_motion_properties.html#afcbcb8a86be08dddf2f33027741d321b"> 74</a></span> <span class="keyword">const</span> <a class="code hl_struct" href="struct_soft_body_shared_settings_1_1_face.html">Face</a> &amp; <a class="code hl_function" href="class_soft_body_motion_properties.html#afcbcb8a86be08dddf2f33027741d321b">GetFace</a>(<a class="code hl_typedef" href="_core_8h.html#a69aa29b598b851b0640aa225a9e5d61d">uint</a> inIndex)<span class="keyword"> const </span>{ <span class="keywordflow">return</span> mSettings-&gt;mFaces[inIndex]; }</div>
  175. <div class="line"><a id="l00075" name="l00075"></a><span class="lineno"> 75</span> </div>
  176. <div class="line"><a id="l00077" name="l00077"></a><span class="lineno"><a class="line" href="class_soft_body_motion_properties.html#adc98275db06cee84d06be488a9806ca5"> 77</a></span> <a class="code hl_typedef" href="_core_8h.html#a8f95e75e58492e87412191fabadd8ca8">uint32</a> <a class="code hl_function" href="class_soft_body_motion_properties.html#adc98275db06cee84d06be488a9806ca5">GetNumIterations</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> mNumIterations; }</div>
  177. <div class="line"><a id="l00078" name="l00078"></a><span class="lineno"><a class="line" href="class_soft_body_motion_properties.html#aac3e3c0fc3d111fbe3765188b781c7e0"> 78</a></span> <span class="keywordtype">void</span> <a class="code hl_function" href="class_soft_body_motion_properties.html#aac3e3c0fc3d111fbe3765188b781c7e0">SetNumIterations</a>(<a class="code hl_typedef" href="_core_8h.html#a8f95e75e58492e87412191fabadd8ca8">uint32</a> inNumIterations) { mNumIterations = inNumIterations; }</div>
  178. <div class="line"><a id="l00079" name="l00079"></a><span class="lineno"> 79</span> </div>
  179. <div class="line"><a id="l00081" name="l00081"></a><span class="lineno"><a class="line" href="class_soft_body_motion_properties.html#ae15a2a2fdf14951fe7d9cd22e9e848e6"> 81</a></span> <span class="keywordtype">float</span> <a class="code hl_function" href="class_soft_body_motion_properties.html#ae15a2a2fdf14951fe7d9cd22e9e848e6">GetPressure</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> mPressure; }</div>
  180. <div class="line"><a id="l00082" name="l00082"></a><span class="lineno"><a class="line" href="class_soft_body_motion_properties.html#a6d55ac6913186e4f8e715e5b4470e657"> 82</a></span> <span class="keywordtype">void</span> <a class="code hl_function" href="class_soft_body_motion_properties.html#a6d55ac6913186e4f8e715e5b4470e657">SetPressure</a>(<span class="keywordtype">float</span> inPressure) { mPressure = inPressure; }</div>
  181. <div class="line"><a id="l00083" name="l00083"></a><span class="lineno"> 83</span> </div>
  182. <div class="line"><a id="l00085" name="l00085"></a><span class="lineno"><a class="line" href="class_soft_body_motion_properties.html#ac798aa56fce5a89d404e164c4b483ddd"> 85</a></span> <span class="keywordtype">bool</span> <a class="code hl_function" href="class_soft_body_motion_properties.html#ac798aa56fce5a89d404e164c4b483ddd">GetUpdatePosition</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> mUpdatePosition; }</div>
  183. <div class="line"><a id="l00086" name="l00086"></a><span class="lineno"><a class="line" href="class_soft_body_motion_properties.html#a4f74fee0d91efe0291d43f7f6433440c"> 86</a></span> <span class="keywordtype">void</span> <a class="code hl_function" href="class_soft_body_motion_properties.html#a4f74fee0d91efe0291d43f7f6433440c">SetUpdatePosition</a>(<span class="keywordtype">bool</span> inUpdatePosition) { mUpdatePosition = inUpdatePosition; }</div>
  184. <div class="line"><a id="l00087" name="l00087"></a><span class="lineno"> 87</span> </div>
  185. <div class="line"><a id="l00089" name="l00089"></a><span class="lineno"><a class="line" href="class_soft_body_motion_properties.html#a4a78fad964069c002621f44287b87d14"> 89</a></span> <span class="keywordtype">bool</span> <a class="code hl_function" href="class_soft_body_motion_properties.html#a4a78fad964069c002621f44287b87d14">GetFacesDoubleSided</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> mFacesDoubleSided; }</div>
  186. <div class="line"><a id="l00090" name="l00090"></a><span class="lineno"><a class="line" href="class_soft_body_motion_properties.html#a79333ffe09d6a9c24f64bee2beec9850"> 90</a></span> <span class="keywordtype">void</span> <a class="code hl_function" href="class_soft_body_motion_properties.html#a79333ffe09d6a9c24f64bee2beec9850">SetFacesDoubleSided</a>(<span class="keywordtype">bool</span> inDoubleSided) { mFacesDoubleSided = inDoubleSided; }</div>
  187. <div class="line"><a id="l00091" name="l00091"></a><span class="lineno"> 91</span> </div>
  188. <div class="line"><a id="l00093" name="l00093"></a><span class="lineno"><a class="line" href="class_soft_body_motion_properties.html#a0211a0376f1d3fcbe20eb246d3ba01db"> 93</a></span> <span class="keywordtype">bool</span> <a class="code hl_function" href="class_soft_body_motion_properties.html#a0211a0376f1d3fcbe20eb246d3ba01db">GetEnableSkinConstraints</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> mEnableSkinConstraints; }</div>
  189. <div class="line"><a id="l00094" name="l00094"></a><span class="lineno"><a class="line" href="class_soft_body_motion_properties.html#ae8b38e6b097ed9f37d9b8e844c200a4f"> 94</a></span> <span class="keywordtype">void</span> <a class="code hl_function" href="class_soft_body_motion_properties.html#ae8b38e6b097ed9f37d9b8e844c200a4f">SetEnableSkinConstraints</a>(<span class="keywordtype">bool</span> inEnableSkinConstraints) { mEnableSkinConstraints = inEnableSkinConstraints; }</div>
  190. <div class="line"><a id="l00095" name="l00095"></a><span class="lineno"> 95</span> </div>
  191. <div class="line"><a id="l00097" name="l00097"></a><span class="lineno"><a class="line" href="class_soft_body_motion_properties.html#a6201339ce0eaf31374525cf645c7babb"> 97</a></span> <span class="keywordtype">float</span> <a class="code hl_function" href="class_soft_body_motion_properties.html#a6201339ce0eaf31374525cf645c7babb">GetSkinnedMaxDistanceMultiplier</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> mSkinnedMaxDistanceMultiplier; }</div>
  192. <div class="line"><a id="l00098" name="l00098"></a><span class="lineno"><a class="line" href="class_soft_body_motion_properties.html#a1f4346ba3a5bf7c26f8db600a29ccd29"> 98</a></span> <span class="keywordtype">void</span> <a class="code hl_function" href="class_soft_body_motion_properties.html#a1f4346ba3a5bf7c26f8db600a29ccd29">SetSkinnedMaxDistanceMultiplier</a>(<span class="keywordtype">float</span> inSkinnedMaxDistanceMultiplier) { mSkinnedMaxDistanceMultiplier = inSkinnedMaxDistanceMultiplier; }</div>
  193. <div class="line"><a id="l00099" name="l00099"></a><span class="lineno"> 99</span> </div>
  194. <div class="line"><a id="l00101" name="l00101"></a><span class="lineno"><a class="line" href="class_soft_body_motion_properties.html#ab1f801e523f267881a8a81f8056c6287"> 101</a></span> <span class="keywordtype">float</span> <a class="code hl_function" href="class_soft_body_motion_properties.html#ab1f801e523f267881a8a81f8056c6287">GetVertexRadius</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> mVertexRadius; }</div>
  195. <div class="line"><a id="l00102" name="l00102"></a><span class="lineno"><a class="line" href="class_soft_body_motion_properties.html#ac3e7ae937f4b79b8b2b0166d8edb9fb7"> 102</a></span> <span class="keywordtype">void</span> <a class="code hl_function" href="class_soft_body_motion_properties.html#ac3e7ae937f4b79b8b2b0166d8edb9fb7">SetVertexRadius</a>(<span class="keywordtype">float</span> inVertexRadius) { <a class="code hl_define" href="_issue_reporting_8h.html#aaf6b1df827e11b7ca5f6f8778bd8f8cd">JPH_ASSERT</a>(mVertexRadius &gt;= 0.0f); mVertexRadius = inVertexRadius; }</div>
  196. <div class="line"><a id="l00103" name="l00103"></a><span class="lineno"> 103</span> </div>
  197. <div class="line"><a id="l00105" name="l00105"></a><span class="lineno"><a class="line" href="class_soft_body_motion_properties.html#a9e0c2b0a3a39fb1d97c1318c7b65f9f0"> 105</a></span> <span class="keyword">const</span> <a class="code hl_class" href="class_a_a_box.html">AABox</a> &amp; <a class="code hl_function" href="class_soft_body_motion_properties.html#a9e0c2b0a3a39fb1d97c1318c7b65f9f0">GetLocalBounds</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> mLocalBounds; }</div>
  198. <div class="line"><a id="l00106" name="l00106"></a><span class="lineno"> 106</span> </div>
  199. <div class="line"><a id="l00108" name="l00108"></a><span class="lineno"><a class="line" href="class_soft_body_motion_properties.html#acfcc07bc8fe8e5a34767df2383eaf7ff"> 108</a></span> <span class="keywordtype">float</span> <a class="code hl_function" href="class_soft_body_motion_properties.html#acfcc07bc8fe8e5a34767df2383eaf7ff">GetVolume</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> GetVolumeTimesSix() / 6.0f; }</div>
  200. <div class="line"><a id="l00109" name="l00109"></a><span class="lineno"> 109</span> </div>
  201. <div class="line"><a id="l00111" name="l00111"></a><span class="lineno"> 111</span> <span class="keywordtype">void</span> <a class="code hl_enumvalue" href="_body_creation_settings_8h.html#a758835911f67742d0ad74841f6bdbe38a945736934966a328b226aea49bb2ead6">CalculateMassAndInertia</a>();</div>
  202. <div class="line"><a id="l00112" name="l00112"></a><span class="lineno"> 112</span> </div>
  203. <div class="line"><a id="l00113" name="l00113"></a><span class="lineno"> 113</span><span class="preprocessor">#ifdef JPH_DEBUG_RENDERER</span></div>
  204. <div class="line"><a id="l00115" name="l00115"></a><span class="lineno"> 115</span> <span class="keywordtype">void</span> DrawVertices(<a class="code hl_class" href="class_debug_renderer.html">DebugRenderer</a> *inRenderer, <a class="code hl_class" href="class_mat44.html">RMat44Arg</a> inCenterOfMassTransform) <span class="keyword">const</span>;</div>
  205. <div class="line"><a id="l00116" name="l00116"></a><span class="lineno"> 116</span> <span class="keywordtype">void</span> DrawVertexVelocities(<a class="code hl_class" href="class_debug_renderer.html">DebugRenderer</a> *inRenderer, <a class="code hl_class" href="class_mat44.html">RMat44Arg</a> inCenterOfMassTransform) <span class="keyword">const</span>;</div>
  206. <div class="line"><a id="l00117" name="l00117"></a><span class="lineno"> 117</span> <span class="keywordtype">void</span> DrawEdgeConstraints(<a class="code hl_class" href="class_debug_renderer.html">DebugRenderer</a> *inRenderer, <a class="code hl_class" href="class_mat44.html">RMat44Arg</a> inCenterOfMassTransform, <a class="code hl_enumeration" href="_body_manager_8h.html#af3216c8a98a28ccd29f5e19f037a59e2">ESoftBodyConstraintColor</a> inConstraintColor) <span class="keyword">const</span>;</div>
  207. <div class="line"><a id="l00118" name="l00118"></a><span class="lineno"> 118</span> <span class="keywordtype">void</span> DrawRods(<a class="code hl_class" href="class_debug_renderer.html">DebugRenderer</a> *inRenderer, <a class="code hl_class" href="class_mat44.html">RMat44Arg</a> inCenterOfMassTransform, <a class="code hl_enumeration" href="_body_manager_8h.html#af3216c8a98a28ccd29f5e19f037a59e2">ESoftBodyConstraintColor</a> inConstraintColor) <span class="keyword">const</span>;</div>
  208. <div class="line"><a id="l00119" name="l00119"></a><span class="lineno"> 119</span> <span class="keywordtype">void</span> DrawRodStates(<a class="code hl_class" href="class_debug_renderer.html">DebugRenderer</a> *inRenderer, <a class="code hl_class" href="class_mat44.html">RMat44Arg</a> inCenterOfMassTransform, <a class="code hl_enumeration" href="_body_manager_8h.html#af3216c8a98a28ccd29f5e19f037a59e2">ESoftBodyConstraintColor</a> inConstraintColor) <span class="keyword">const</span>;</div>
  209. <div class="line"><a id="l00120" name="l00120"></a><span class="lineno"> 120</span> <span class="keywordtype">void</span> DrawRodBendTwistConstraints(<a class="code hl_class" href="class_debug_renderer.html">DebugRenderer</a> *inRenderer, <a class="code hl_class" href="class_mat44.html">RMat44Arg</a> inCenterOfMassTransform, <a class="code hl_enumeration" href="_body_manager_8h.html#af3216c8a98a28ccd29f5e19f037a59e2">ESoftBodyConstraintColor</a> inConstraintColor) <span class="keyword">const</span>;</div>
  210. <div class="line"><a id="l00121" name="l00121"></a><span class="lineno"> 121</span> <span class="keywordtype">void</span> DrawBendConstraints(<a class="code hl_class" href="class_debug_renderer.html">DebugRenderer</a> *inRenderer, <a class="code hl_class" href="class_mat44.html">RMat44Arg</a> inCenterOfMassTransform, <a class="code hl_enumeration" href="_body_manager_8h.html#af3216c8a98a28ccd29f5e19f037a59e2">ESoftBodyConstraintColor</a> inConstraintColor) <span class="keyword">const</span>;</div>
  211. <div class="line"><a id="l00122" name="l00122"></a><span class="lineno"> 122</span> <span class="keywordtype">void</span> DrawVolumeConstraints(<a class="code hl_class" href="class_debug_renderer.html">DebugRenderer</a> *inRenderer, <a class="code hl_class" href="class_mat44.html">RMat44Arg</a> inCenterOfMassTransform, <a class="code hl_enumeration" href="_body_manager_8h.html#af3216c8a98a28ccd29f5e19f037a59e2">ESoftBodyConstraintColor</a> inConstraintColor) <span class="keyword">const</span>;</div>
  212. <div class="line"><a id="l00123" name="l00123"></a><span class="lineno"> 123</span> <span class="keywordtype">void</span> DrawSkinConstraints(<a class="code hl_class" href="class_debug_renderer.html">DebugRenderer</a> *inRenderer, <a class="code hl_class" href="class_mat44.html">RMat44Arg</a> inCenterOfMassTransform, <a class="code hl_enumeration" href="_body_manager_8h.html#af3216c8a98a28ccd29f5e19f037a59e2">ESoftBodyConstraintColor</a> inConstraintColor) <span class="keyword">const</span>;</div>
  213. <div class="line"><a id="l00124" name="l00124"></a><span class="lineno"> 124</span> <span class="keywordtype">void</span> DrawLRAConstraints(<a class="code hl_class" href="class_debug_renderer.html">DebugRenderer</a> *inRenderer, <a class="code hl_class" href="class_mat44.html">RMat44Arg</a> inCenterOfMassTransform, <a class="code hl_enumeration" href="_body_manager_8h.html#af3216c8a98a28ccd29f5e19f037a59e2">ESoftBodyConstraintColor</a> inConstraintColor) <span class="keyword">const</span>;</div>
  214. <div class="line"><a id="l00125" name="l00125"></a><span class="lineno"> 125</span> <span class="keywordtype">void</span> DrawPredictedBounds(<a class="code hl_class" href="class_debug_renderer.html">DebugRenderer</a> *inRenderer, <a class="code hl_class" href="class_mat44.html">RMat44Arg</a> inCenterOfMassTransform) <span class="keyword">const</span>;</div>
  215. <div class="line"><a id="l00126" name="l00126"></a><span class="lineno"> 126</span><span class="preprocessor">#endif </span><span class="comment">// JPH_DEBUG_RENDERER</span></div>
  216. <div class="line"><a id="l00127" name="l00127"></a><span class="lineno"> 127</span> </div>
  217. <div class="line"><a id="l00129" name="l00129"></a><span class="lineno"> 129</span> <span class="keywordtype">void</span> <a class="code hl_function" href="class_motion_properties.html#a9e308e4fb4cbb6c7dad8fe6b65d71aca">SaveState</a>(<a class="code hl_class" href="class_state_recorder.html">StateRecorder</a> &amp;inStream) <span class="keyword">const</span>;</div>
  218. <div class="line"><a id="l00130" name="l00130"></a><span class="lineno"> 130</span> </div>
  219. <div class="line"><a id="l00132" name="l00132"></a><span class="lineno"> 132</span> <span class="keywordtype">void</span> <a class="code hl_function" href="class_motion_properties.html#a09a1e9e46776c7d15cdd2b19c4a146f6">RestoreState</a>(<a class="code hl_class" href="class_state_recorder.html">StateRecorder</a> &amp;inStream);</div>
  220. <div class="line"><a id="l00133" name="l00133"></a><span class="lineno"> 133</span> </div>
  221. <div class="line"><a id="l00140" name="l00140"></a><span class="lineno"> 140</span> <span class="keywordtype">void</span> SkinVertices(<a class="code hl_class" href="class_mat44.html">RMat44Arg</a> inCenterOfMassTransform, <span class="keyword">const</span> <a class="code hl_class" href="class_mat44.html">Mat44</a> *inJointMatrices, <a class="code hl_typedef" href="_core_8h.html#a69aa29b598b851b0640aa225a9e5d61d">uint</a> inNumJoints, <span class="keywordtype">bool</span> inHardSkinAll, <a class="code hl_class" href="class_temp_allocator.html">TempAllocator</a> &amp;ioTempAllocator);</div>
  222. <div class="line"><a id="l00141" name="l00141"></a><span class="lineno"> 141</span> </div>
  223. <div class="line"><a id="l00153" name="l00153"></a><span class="lineno"> 153</span> <span class="keywordtype">void</span> CustomUpdate(<span class="keywordtype">float</span> inDeltaTime, <a class="code hl_class" href="class_body.html">Body</a> &amp;ioSoftBody, <a class="code hl_class" href="class_physics_system.html">PhysicsSystem</a> &amp;inSystem);</div>
  224. <div class="line"><a id="l00154" name="l00154"></a><span class="lineno"> 154</span> </div>
  225. <div class="line"><a id="l00156" name="l00156"></a><span class="lineno"> 156</span> <span class="comment">// FUNCTIONS BELOW THIS LINE ARE FOR INTERNAL USE ONLY</span></div>
  226. <div class="line"><a id="l00158" name="l00158"></a><span class="lineno"> 158</span> </div>
  227. <div class="line"><a id="l00160" name="l00160"></a><span class="lineno"> 160</span> <span class="keywordtype">void</span> InitializeUpdateContext(<span class="keywordtype">float</span> inDeltaTime, <a class="code hl_class" href="class_body.html">Body</a> &amp;inSoftBody, <span class="keyword">const</span> <a class="code hl_class" href="class_physics_system.html">PhysicsSystem</a> &amp;inSystem, SoftBodyUpdateContext &amp;ioContext);</div>
  228. <div class="line"><a id="l00161" name="l00161"></a><span class="lineno"> 161</span> </div>
  229. <div class="line"><a id="l00163" name="l00163"></a><span class="lineno"> 163</span> <span class="keywordtype">void</span> DetermineCollidingShapes(<span class="keyword">const</span> SoftBodyUpdateContext &amp;inContext, <span class="keyword">const</span> <a class="code hl_class" href="class_physics_system.html">PhysicsSystem</a> &amp;inSystem, <span class="keyword">const</span> <a class="code hl_class" href="class_body_lock_interface.html">BodyLockInterface</a> &amp;inBodyLockInterface);</div>
  230. <div class="line"><a id="l00164" name="l00164"></a><span class="lineno"> 164</span> </div>
  231. <div class="foldopen" id="foldopen00166" data-start="{" data-end="};">
  232. <div class="line"><a id="l00166" name="l00166"></a><span class="lineno"><a class="line" href="class_soft_body_motion_properties.html#a0f968ca89a547af5c8978c966e327682"> 166</a></span> <span class="keyword">enum class</span> <a class="code hl_enumeration" href="class_soft_body_motion_properties.html#a0f968ca89a547af5c8978c966e327682">EStatus</a></div>
  233. <div class="line"><a id="l00167" name="l00167"></a><span class="lineno"> 167</span> {</div>
  234. <div class="line"><a id="l00168" name="l00168"></a><span class="lineno"> 168</span> NoWork = 1 &lt;&lt; 0, </div>
  235. <div class="line"><a id="l00169" name="l00169"></a><span class="lineno"> 169</span> DidWork = 1 &lt;&lt; 1, </div>
  236. <div class="line"><a id="l00170" name="l00170"></a><span class="lineno"> 170</span> Done = 1 &lt;&lt; 2, </div>
  237. <div class="line"><a id="l00171" name="l00171"></a><span class="lineno"> 171</span> };</div>
  238. </div>
  239. <div class="line"><a id="l00172" name="l00172"></a><span class="lineno"> 172</span> </div>
  240. <div class="line"><a id="l00174" name="l00174"></a><span class="lineno"> 174</span> EStatus ParallelUpdate(SoftBodyUpdateContext &amp;ioContext, <span class="keyword">const</span> <a class="code hl_struct" href="struct_physics_settings.html">PhysicsSettings</a> &amp;inPhysicsSettings);</div>
  241. <div class="line"><a id="l00175" name="l00175"></a><span class="lineno"> 175</span> </div>
  242. <div class="line"><a id="l00177" name="l00177"></a><span class="lineno"> 177</span> <span class="keywordtype">void</span> UpdateRigidBodyVelocities(<span class="keyword">const</span> SoftBodyUpdateContext &amp;inContext, <a class="code hl_class" href="class_body_interface.html">BodyInterface</a> &amp;inBodyInterface);</div>
  243. <div class="line"><a id="l00178" name="l00178"></a><span class="lineno"> 178</span> </div>
  244. <div class="line"><a id="l00179" name="l00179"></a><span class="lineno"> 179</span><span class="keyword">private</span>:</div>
  245. <div class="line"><a id="l00180" name="l00180"></a><span class="lineno"> 180</span> <span class="comment">// SoftBodyManifold needs to have access to CollidingShape</span></div>
  246. <div class="line"><a id="l00181" name="l00181"></a><span class="lineno"><a class="line" href="class_soft_body_motion_properties.html#a733acf8aae3ee3af252725fd38bcc12a"> 181</a></span> <span class="keyword">friend</span> <span class="keyword">class </span><a class="code hl_class" href="class_soft_body_manifold.html">SoftBodyManifold</a>;</div>
  247. <div class="line"><a id="l00182" name="l00182"></a><span class="lineno"> 182</span> </div>
  248. <div class="line"><a id="l00183" name="l00183"></a><span class="lineno"> 183</span> <span class="comment">// Information about a leaf shape that we&#39;re colliding with</span></div>
  249. <div class="line"><a id="l00184" name="l00184"></a><span class="lineno"> 184</span> <span class="keyword">struct </span>LeafShape</div>
  250. <div class="line"><a id="l00185" name="l00185"></a><span class="lineno"> 185</span> {</div>
  251. <div class="line"><a id="l00186" name="l00186"></a><span class="lineno"> 186</span> LeafShape() = <span class="keywordflow">default</span>;</div>
  252. <div class="line"><a id="l00187" name="l00187"></a><span class="lineno"> 187</span> LeafShape(<a class="code hl_class" href="class_mat44.html">Mat44Arg</a> inTransform, <a class="code hl_class" href="class_vec3.html">Vec3Arg</a> inScale, <span class="keyword">const</span> <a class="code hl_class" href="class_shape.html">Shape</a> *inShape) : mTransform(inTransform), mScale(inScale), mShape(inShape) { }</div>
  253. <div class="line"><a id="l00188" name="l00188"></a><span class="lineno"> 188</span> </div>
  254. <div class="line"><a id="l00189" name="l00189"></a><span class="lineno"> 189</span> <a class="code hl_class" href="class_mat44.html">Mat44</a> mTransform; </div>
  255. <div class="line"><a id="l00190" name="l00190"></a><span class="lineno"> 190</span> <a class="code hl_class" href="class_vec3.html">Vec3</a> mScale; </div>
  256. <div class="line"><a id="l00191" name="l00191"></a><span class="lineno"> 191</span> <a class="code hl_class" href="class_ref_const.html">RefConst&lt;Shape&gt;</a> mShape; </div>
  257. <div class="line"><a id="l00192" name="l00192"></a><span class="lineno"> 192</span> };</div>
  258. <div class="line"><a id="l00193" name="l00193"></a><span class="lineno"> 193</span> </div>
  259. <div class="line"><a id="l00194" name="l00194"></a><span class="lineno"> 194</span> <span class="comment">// Collect information about the colliding bodies</span></div>
  260. <div class="line"><a id="l00195" name="l00195"></a><span class="lineno"> 195</span> <span class="keyword">struct </span>CollidingShape</div>
  261. <div class="line"><a id="l00196" name="l00196"></a><span class="lineno"> 196</span> {</div>
  262. <div class="line"><a id="l00198" name="l00198"></a><span class="lineno"> 198</span> <a class="code hl_class" href="class_vec3.html">Vec3</a> GetPointVelocity(<a class="code hl_class" href="class_vec3.html">Vec3Arg</a> inPointRelativeToCOM)<span class="keyword"> const</span></div>
  263. <div class="line"><a id="l00199" name="l00199"></a><span class="lineno"> 199</span><span class="keyword"> </span>{</div>
  264. <div class="line"><a id="l00200" name="l00200"></a><span class="lineno"> 200</span> <span class="keywordflow">return</span> mLinearVelocity + mAngularVelocity.<a class="code hl_function" href="class_vec3.html#a224811af391ccfd1e05282eda22d1de8">Cross</a>(inPointRelativeToCOM);</div>
  265. <div class="line"><a id="l00201" name="l00201"></a><span class="lineno"> 201</span> }</div>
  266. <div class="line"><a id="l00202" name="l00202"></a><span class="lineno"> 202</span> </div>
  267. <div class="line"><a id="l00203" name="l00203"></a><span class="lineno"> 203</span> <a class="code hl_class" href="class_mat44.html">Mat44</a> mCenterOfMassTransform; </div>
  268. <div class="line"><a id="l00204" name="l00204"></a><span class="lineno"> 204</span> <a class="code hl_class" href="class_array.html">Array&lt;LeafShape&gt;</a> mShapes; </div>
  269. <div class="line"><a id="l00205" name="l00205"></a><span class="lineno"> 205</span> <a class="code hl_class" href="class_body_i_d.html">BodyID</a> mBodyID; </div>
  270. <div class="line"><a id="l00206" name="l00206"></a><span class="lineno"> 206</span> <a class="code hl_enumeration" href="_motion_type_8h.html#a328245ddbb758681fad3c44c9d488fd8">EMotionType</a> mMotionType; </div>
  271. <div class="line"><a id="l00207" name="l00207"></a><span class="lineno"> 207</span> <span class="keywordtype">float</span> mInvMass; </div>
  272. <div class="line"><a id="l00208" name="l00208"></a><span class="lineno"> 208</span> <span class="keywordtype">float</span> mFriction; </div>
  273. <div class="line"><a id="l00209" name="l00209"></a><span class="lineno"> 209</span> <span class="keywordtype">float</span> mRestitution; </div>
  274. <div class="line"><a id="l00210" name="l00210"></a><span class="lineno"> 210</span> <span class="keywordtype">float</span> mSoftBodyInvMassScale; </div>
  275. <div class="line"><a id="l00211" name="l00211"></a><span class="lineno"> 211</span> <span class="keywordtype">bool</span> mUpdateVelocities; </div>
  276. <div class="line"><a id="l00212" name="l00212"></a><span class="lineno"> 212</span> <a class="code hl_class" href="class_mat44.html">Mat44</a> mInvInertia; </div>
  277. <div class="line"><a id="l00213" name="l00213"></a><span class="lineno"> 213</span> <a class="code hl_class" href="class_vec3.html">Vec3</a> mLinearVelocity; </div>
  278. <div class="line"><a id="l00214" name="l00214"></a><span class="lineno"> 214</span> <a class="code hl_class" href="class_vec3.html">Vec3</a> mAngularVelocity; </div>
  279. <div class="line"><a id="l00215" name="l00215"></a><span class="lineno"> 215</span> <a class="code hl_class" href="class_vec3.html">Vec3</a> mOriginalLinearVelocity; </div>
  280. <div class="line"><a id="l00216" name="l00216"></a><span class="lineno"> 216</span> <a class="code hl_class" href="class_vec3.html">Vec3</a> mOriginalAngularVelocity; </div>
  281. <div class="line"><a id="l00217" name="l00217"></a><span class="lineno"> 217</span> };</div>
  282. <div class="line"><a id="l00218" name="l00218"></a><span class="lineno"> 218</span> </div>
  283. <div class="line"><a id="l00219" name="l00219"></a><span class="lineno"> 219</span> <span class="comment">// Collect information about the colliding sensors</span></div>
  284. <div class="line"><a id="l00220" name="l00220"></a><span class="lineno"> 220</span> <span class="keyword">struct </span>CollidingSensor</div>
  285. <div class="line"><a id="l00221" name="l00221"></a><span class="lineno"> 221</span> {</div>
  286. <div class="line"><a id="l00222" name="l00222"></a><span class="lineno"> 222</span> <a class="code hl_class" href="class_mat44.html">Mat44</a> mCenterOfMassTransform; </div>
  287. <div class="line"><a id="l00223" name="l00223"></a><span class="lineno"> 223</span> <a class="code hl_class" href="class_array.html">Array&lt;LeafShape&gt;</a> mShapes; </div>
  288. <div class="line"><a id="l00224" name="l00224"></a><span class="lineno"> 224</span> <a class="code hl_class" href="class_body_i_d.html">BodyID</a> mBodyID; </div>
  289. <div class="line"><a id="l00225" name="l00225"></a><span class="lineno"> 225</span> <span class="keywordtype">bool</span> mHasContact; </div>
  290. <div class="line"><a id="l00226" name="l00226"></a><span class="lineno"> 226</span> };</div>
  291. <div class="line"><a id="l00227" name="l00227"></a><span class="lineno"> 227</span> </div>
  292. <div class="line"><a id="l00228" name="l00228"></a><span class="lineno"> 228</span> <span class="comment">// Information about the current state of a rod.</span></div>
  293. <div class="line"><a id="l00229" name="l00229"></a><span class="lineno"> 229</span> <span class="keyword">struct </span>RodState</div>
  294. <div class="line"><a id="l00230" name="l00230"></a><span class="lineno"> 230</span> {</div>
  295. <div class="line"><a id="l00231" name="l00231"></a><span class="lineno"> 231</span> <a class="code hl_class" href="class_quat.html">Quat</a> mRotation; </div>
  296. <div class="line"><a id="l00232" name="l00232"></a><span class="lineno"> 232</span> <span class="keyword">union</span></div>
  297. <div class="line"><a id="l00233" name="l00233"></a><span class="lineno"> 233</span> {</div>
  298. <div class="line"><a id="l00234" name="l00234"></a><span class="lineno"> 234</span> <a class="code hl_class" href="class_vec3.html">Vec3</a> mAngularVelocity; </div>
  299. <div class="line"><a id="l00235" name="l00235"></a><span class="lineno"> 235</span> <a class="code hl_class" href="class_quat.html">Quat</a> mPreviousRotationInternal; </div>
  300. <div class="line"><a id="l00236" name="l00236"></a><span class="lineno"> 236</span> };</div>
  301. <div class="line"><a id="l00237" name="l00237"></a><span class="lineno"> 237</span> };</div>
  302. <div class="line"><a id="l00238" name="l00238"></a><span class="lineno"> 238</span> </div>
  303. <div class="line"><a id="l00239" name="l00239"></a><span class="lineno"> 239</span> <span class="comment">// Information about the state of all skinned vertices</span></div>
  304. <div class="line"><a id="l00240" name="l00240"></a><span class="lineno"> 240</span> <span class="keyword">struct </span>SkinState</div>
  305. <div class="line"><a id="l00241" name="l00241"></a><span class="lineno"> 241</span> {</div>
  306. <div class="line"><a id="l00242" name="l00242"></a><span class="lineno"> 242</span> <a class="code hl_class" href="class_vec3.html">Vec3</a> mPreviousPosition = <a class="code hl_function" href="class_vec3.html#ad03c52ab27761bc1e64e33c47632ba51">Vec3::sZero</a>(); </div>
  307. <div class="line"><a id="l00243" name="l00243"></a><span class="lineno"> 243</span> <a class="code hl_class" href="class_vec3.html">Vec3</a> mPosition = <a class="code hl_function" href="class_vec3.html#aee68177ac267822e1823a9a0f7525014">Vec3::sNaN</a>(); </div>
  308. <div class="line"><a id="l00244" name="l00244"></a><span class="lineno"> 244</span> <a class="code hl_class" href="class_vec3.html">Vec3</a> mNormal = <a class="code hl_function" href="class_vec3.html#aee68177ac267822e1823a9a0f7525014">Vec3::sNaN</a>(); </div>
  309. <div class="line"><a id="l00245" name="l00245"></a><span class="lineno"> 245</span> };</div>
  310. <div class="line"><a id="l00246" name="l00246"></a><span class="lineno"> 246</span> </div>
  311. <div class="line"><a id="l00248" name="l00248"></a><span class="lineno"> 248</span> <span class="keywordtype">void</span> DetermineCollisionPlanes(<a class="code hl_typedef" href="_core_8h.html#a69aa29b598b851b0640aa225a9e5d61d">uint</a> inVertexStart, <a class="code hl_typedef" href="_core_8h.html#a69aa29b598b851b0640aa225a9e5d61d">uint</a> inNumVertices);</div>
  312. <div class="line"><a id="l00249" name="l00249"></a><span class="lineno"> 249</span> </div>
  313. <div class="line"><a id="l00251" name="l00251"></a><span class="lineno"> 251</span> <span class="keywordtype">void</span> DetermineSensorCollisions(CollidingSensor &amp;ioSensor);</div>
  314. <div class="line"><a id="l00252" name="l00252"></a><span class="lineno"> 252</span> </div>
  315. <div class="line"><a id="l00254" name="l00254"></a><span class="lineno"> 254</span> <span class="keywordtype">void</span> ApplyPressure(<span class="keyword">const</span> SoftBodyUpdateContext &amp;inContext);</div>
  316. <div class="line"><a id="l00255" name="l00255"></a><span class="lineno"> 255</span> </div>
  317. <div class="line"><a id="l00257" name="l00257"></a><span class="lineno"> 257</span> <span class="keywordtype">void</span> IntegratePositions(<span class="keyword">const</span> SoftBodyUpdateContext &amp;inContext);</div>
  318. <div class="line"><a id="l00258" name="l00258"></a><span class="lineno"> 258</span> </div>
  319. <div class="line"><a id="l00260" name="l00260"></a><span class="lineno"> 260</span> <span class="keywordtype">void</span> ApplyDihedralBendConstraints(<span class="keyword">const</span> SoftBodyUpdateContext &amp;inContext, <a class="code hl_typedef" href="_core_8h.html#a69aa29b598b851b0640aa225a9e5d61d">uint</a> inStartIndex, <a class="code hl_typedef" href="_core_8h.html#a69aa29b598b851b0640aa225a9e5d61d">uint</a> inEndIndex);</div>
  320. <div class="line"><a id="l00261" name="l00261"></a><span class="lineno"> 261</span> </div>
  321. <div class="line"><a id="l00263" name="l00263"></a><span class="lineno"> 263</span> <span class="keywordtype">void</span> ApplyVolumeConstraints(<span class="keyword">const</span> SoftBodyUpdateContext &amp;inContext, <a class="code hl_typedef" href="_core_8h.html#a69aa29b598b851b0640aa225a9e5d61d">uint</a> inStartIndex, <a class="code hl_typedef" href="_core_8h.html#a69aa29b598b851b0640aa225a9e5d61d">uint</a> inEndIndex);</div>
  322. <div class="line"><a id="l00264" name="l00264"></a><span class="lineno"> 264</span> </div>
  323. <div class="line"><a id="l00266" name="l00266"></a><span class="lineno"> 266</span> <span class="keywordtype">void</span> ApplySkinConstraints(<span class="keyword">const</span> SoftBodyUpdateContext &amp;inContext, <a class="code hl_typedef" href="_core_8h.html#a69aa29b598b851b0640aa225a9e5d61d">uint</a> inStartIndex, <a class="code hl_typedef" href="_core_8h.html#a69aa29b598b851b0640aa225a9e5d61d">uint</a> inEndIndex);</div>
  324. <div class="line"><a id="l00267" name="l00267"></a><span class="lineno"> 267</span> </div>
  325. <div class="line"><a id="l00269" name="l00269"></a><span class="lineno"> 269</span> <span class="keywordtype">void</span> ApplyEdgeConstraints(<span class="keyword">const</span> SoftBodyUpdateContext &amp;inContext, <a class="code hl_typedef" href="_core_8h.html#a69aa29b598b851b0640aa225a9e5d61d">uint</a> inStartIndex, <a class="code hl_typedef" href="_core_8h.html#a69aa29b598b851b0640aa225a9e5d61d">uint</a> inEndIndex);</div>
  326. <div class="line"><a id="l00270" name="l00270"></a><span class="lineno"> 270</span> </div>
  327. <div class="line"><a id="l00272" name="l00272"></a><span class="lineno"> 272</span> <span class="keywordtype">void</span> ApplyRodStretchShearConstraints(<span class="keyword">const</span> SoftBodyUpdateContext &amp;inContext, <a class="code hl_typedef" href="_core_8h.html#a69aa29b598b851b0640aa225a9e5d61d">uint</a> inStartIndex, <a class="code hl_typedef" href="_core_8h.html#a69aa29b598b851b0640aa225a9e5d61d">uint</a> inEndIndex);</div>
  328. <div class="line"><a id="l00273" name="l00273"></a><span class="lineno"> 273</span> <span class="keywordtype">void</span> ApplyRodBendTwistConstraints(<span class="keyword">const</span> SoftBodyUpdateContext &amp;inContext, <a class="code hl_typedef" href="_core_8h.html#a69aa29b598b851b0640aa225a9e5d61d">uint</a> inStartIndex, <a class="code hl_typedef" href="_core_8h.html#a69aa29b598b851b0640aa225a9e5d61d">uint</a> inEndIndex);</div>
  329. <div class="line"><a id="l00274" name="l00274"></a><span class="lineno"> 274</span> </div>
  330. <div class="line"><a id="l00276" name="l00276"></a><span class="lineno"> 276</span> <span class="keywordtype">void</span> ApplyLRAConstraints(<a class="code hl_typedef" href="_core_8h.html#a69aa29b598b851b0640aa225a9e5d61d">uint</a> inStartIndex, <a class="code hl_typedef" href="_core_8h.html#a69aa29b598b851b0640aa225a9e5d61d">uint</a> inEndIndex);</div>
  331. <div class="line"><a id="l00277" name="l00277"></a><span class="lineno"> 277</span> </div>
  332. <div class="line"><a id="l00279" name="l00279"></a><span class="lineno"> 279</span> <span class="keywordtype">void</span> ApplyCollisionConstraintsAndUpdateVelocities(<span class="keyword">const</span> SoftBodyUpdateContext &amp;inContext);</div>
  333. <div class="line"><a id="l00280" name="l00280"></a><span class="lineno"> 280</span> </div>
  334. <div class="line"><a id="l00282" name="l00282"></a><span class="lineno"> 282</span> <span class="keywordtype">void</span> UpdateSoftBodyState(SoftBodyUpdateContext &amp;ioContext, <span class="keyword">const</span> <a class="code hl_struct" href="struct_physics_settings.html">PhysicsSettings</a> &amp;inPhysicsSettings);</div>
  335. <div class="line"><a id="l00283" name="l00283"></a><span class="lineno"> 283</span> </div>
  336. <div class="line"><a id="l00285" name="l00285"></a><span class="lineno"> 285</span> <span class="keywordtype">void</span> StartFirstIteration(SoftBodyUpdateContext &amp;ioContext);</div>
  337. <div class="line"><a id="l00286" name="l00286"></a><span class="lineno"> 286</span> </div>
  338. <div class="line"><a id="l00288" name="l00288"></a><span class="lineno"> 288</span> <span class="keywordtype">void</span> StartNextIteration(<span class="keyword">const</span> SoftBodyUpdateContext &amp;ioContext);</div>
  339. <div class="line"><a id="l00289" name="l00289"></a><span class="lineno"> 289</span> </div>
  340. <div class="line"><a id="l00291" name="l00291"></a><span class="lineno"> 291</span> EStatus ParallelDetermineCollisionPlanes(SoftBodyUpdateContext &amp;ioContext);</div>
  341. <div class="line"><a id="l00292" name="l00292"></a><span class="lineno"> 292</span> </div>
  342. <div class="line"><a id="l00294" name="l00294"></a><span class="lineno"> 294</span> EStatus ParallelDetermineSensorCollisions(SoftBodyUpdateContext &amp;ioContext);</div>
  343. <div class="line"><a id="l00295" name="l00295"></a><span class="lineno"> 295</span> </div>
  344. <div class="line"><a id="l00297" name="l00297"></a><span class="lineno"> 297</span> EStatus ParallelApplyConstraints(SoftBodyUpdateContext &amp;ioContext, <span class="keyword">const</span> <a class="code hl_struct" href="struct_physics_settings.html">PhysicsSettings</a> &amp;inPhysicsSettings);</div>
  345. <div class="line"><a id="l00298" name="l00298"></a><span class="lineno"> 298</span> </div>
  346. <div class="line"><a id="l00300" name="l00300"></a><span class="lineno"> 300</span> <span class="keywordtype">void</span> ProcessGroup(<span class="keyword">const</span> SoftBodyUpdateContext &amp;ioContext, <a class="code hl_typedef" href="_core_8h.html#a69aa29b598b851b0640aa225a9e5d61d">uint</a> inGroupIndex);</div>
  347. <div class="line"><a id="l00301" name="l00301"></a><span class="lineno"> 301</span> </div>
  348. <div class="line"><a id="l00303" name="l00303"></a><span class="lineno"> 303</span> <span class="keywordtype">float</span> GetVolumeTimesSix() <span class="keyword">const</span>;</div>
  349. <div class="line"><a id="l00304" name="l00304"></a><span class="lineno"> 304</span> </div>
  350. <div class="line"><a id="l00305" name="l00305"></a><span class="lineno"> 305</span><span class="preprocessor">#ifdef JPH_DEBUG_RENDERER</span></div>
  351. <div class="line"><a id="l00307" name="l00307"></a><span class="lineno"> 307</span> <span class="keyword">template</span> &lt;<span class="keyword">typename</span> GetEndIndex, <span class="keyword">typename</span> DrawConstra<span class="keywordtype">int</span>&gt;</div>
  352. <div class="line"><a id="l00308" name="l00308"></a><span class="lineno"> 308</span> <span class="keyword">inline</span> <span class="keywordtype">void</span> DrawConstraints(<a class="code hl_enumeration" href="_body_manager_8h.html#af3216c8a98a28ccd29f5e19f037a59e2">ESoftBodyConstraintColor</a> inConstraintColor, <span class="keyword">const</span> GetEndIndex &amp;inGetEndIndex, <span class="keyword">const</span> DrawConstraint &amp;inDrawConstraint, <a class="code hl_class" href="class_color.html">ColorArg</a> inBaseColor) <span class="keyword">const</span>;</div>
  353. <div class="line"><a id="l00309" name="l00309"></a><span class="lineno"> 309</span> </div>
  354. <div class="line"><a id="l00310" name="l00310"></a><span class="lineno"> 310</span> <a class="code hl_class" href="class_mat44.html">RMat44</a> mSkinStateTransform = <a class="code hl_function" href="class_mat44.html#a1b8c82590f5034e8c7f35157fdfd944f">RMat44::sIdentity</a>(); </div>
  355. <div class="line"><a id="l00311" name="l00311"></a><span class="lineno"> 311</span><span class="preprocessor">#endif </span><span class="comment">// JPH_DEBUG_RENDERER</span></div>
  356. <div class="line"><a id="l00312" name="l00312"></a><span class="lineno"> 312</span> </div>
  357. <div class="line"><a id="l00313" name="l00313"></a><span class="lineno"> 313</span> <a class="code hl_class" href="class_ref_const.html">RefConst&lt;SoftBodySharedSettings&gt;</a> mSettings; </div>
  358. <div class="line"><a id="l00314" name="l00314"></a><span class="lineno"> 314</span> <a class="code hl_class" href="class_array.html">Array&lt;Vertex&gt;</a> mVertices; </div>
  359. <div class="line"><a id="l00315" name="l00315"></a><span class="lineno"> 315</span> <a class="code hl_class" href="class_array.html">Array&lt;RodState&gt;</a> mRodStates; </div>
  360. <div class="line"><a id="l00316" name="l00316"></a><span class="lineno"> 316</span> <a class="code hl_class" href="class_array.html">Array&lt;CollidingShape&gt;</a> mCollidingShapes; </div>
  361. <div class="line"><a id="l00317" name="l00317"></a><span class="lineno"> 317</span> <a class="code hl_class" href="class_array.html">Array&lt;CollidingSensor&gt;</a> mCollidingSensors; </div>
  362. <div class="line"><a id="l00318" name="l00318"></a><span class="lineno"> 318</span> <a class="code hl_class" href="class_array.html">Array&lt;SkinState&gt;</a> mSkinState; </div>
  363. <div class="line"><a id="l00319" name="l00319"></a><span class="lineno"> 319</span> <a class="code hl_class" href="class_a_a_box.html">AABox</a> mLocalBounds; </div>
  364. <div class="line"><a id="l00320" name="l00320"></a><span class="lineno"> 320</span> <a class="code hl_class" href="class_a_a_box.html">AABox</a> mLocalPredictedBounds; </div>
  365. <div class="line"><a id="l00321" name="l00321"></a><span class="lineno"> 321</span> <a class="code hl_typedef" href="_core_8h.html#a8f95e75e58492e87412191fabadd8ca8">uint32</a> mNumIterations; </div>
  366. <div class="line"><a id="l00322" name="l00322"></a><span class="lineno"> 322</span> <a class="code hl_typedef" href="_core_8h.html#a69aa29b598b851b0640aa225a9e5d61d">uint</a> mNumSensors; </div>
  367. <div class="line"><a id="l00323" name="l00323"></a><span class="lineno"> 323</span> <span class="keywordtype">float</span> mPressure; </div>
  368. <div class="line"><a id="l00324" name="l00324"></a><span class="lineno"> 324</span> <span class="keywordtype">float</span> mSkinnedMaxDistanceMultiplier = 1.0f; </div>
  369. <div class="line"><a id="l00325" name="l00325"></a><span class="lineno"> 325</span> <span class="keywordtype">float</span> mVertexRadius = 0.0f; </div>
  370. <div class="line"><a id="l00326" name="l00326"></a><span class="lineno"> 326</span> <span class="keywordtype">bool</span> mUpdatePosition; </div>
  371. <div class="line"><a id="l00327" name="l00327"></a><span class="lineno"> 327</span> <span class="keywordtype">bool</span> mFacesDoubleSided; </div>
  372. <div class="line"><a id="l00328" name="l00328"></a><span class="lineno"> 328</span> atomic&lt;bool&gt; mNeedContactCallback = <span class="keyword">false</span>; </div>
  373. <div class="line"><a id="l00329" name="l00329"></a><span class="lineno"> 329</span> <span class="keywordtype">bool</span> mEnableSkinConstraints = <span class="keyword">true</span>; </div>
  374. <div class="line"><a id="l00330" name="l00330"></a><span class="lineno"> 330</span> <span class="keywordtype">bool</span> mSkinStatePreviousPositionValid = <span class="keyword">false</span>; </div>
  375. <div class="line"><a id="l00331" name="l00331"></a><span class="lineno"> 331</span>};</div>
  376. </div>
  377. <div class="line"><a id="l00332" name="l00332"></a><span class="lineno"> 332</span> </div>
  378. <div class="line"><a id="l00333" name="l00333"></a><span class="lineno"> 333</span><a class="code hl_define" href="_core_8h.html#a73da8725998b00321a9db341202d650d">JPH_NAMESPACE_END</a></div>
  379. <div class="ttc" id="a_a_a_box_8h_html"><div class="ttname"><a href="_a_a_box_8h.html">AABox.h</a></div></div>
  380. <div class="ttc" id="a_body_creation_settings_8h_html_a758835911f67742d0ad74841f6bdbe38a945736934966a328b226aea49bb2ead6"><div class="ttname"><a href="_body_creation_settings_8h.html#a758835911f67742d0ad74841f6bdbe38a945736934966a328b226aea49bb2ead6">EOverrideMassProperties::CalculateMassAndInertia</a></div><div class="ttdeci">@ CalculateMassAndInertia</div><div class="ttdoc">Tells the system to calculate the mass and inertia based on density.</div></div>
  381. <div class="ttc" id="a_body_i_d_8h_html"><div class="ttname"><a href="_body_i_d_8h.html">BodyID.h</a></div></div>
  382. <div class="ttc" id="a_body_manager_8h_html_af3216c8a98a28ccd29f5e19f037a59e2"><div class="ttname"><a href="_body_manager_8h.html#af3216c8a98a28ccd29f5e19f037a59e2">ESoftBodyConstraintColor</a></div><div class="ttdeci">ESoftBodyConstraintColor</div><div class="ttdoc">Defines how to color soft body constraints.</div><div class="ttdef"><b>Definition</b> BodyManager.h:28</div></div>
  383. <div class="ttc" id="a_core_8h_html_a2712a9b0f778ab9d1aa5118b4e8e6bd8"><div class="ttname"><a href="_core_8h.html#a2712a9b0f778ab9d1aa5118b4e8e6bd8">JPH_EXPORT</a></div><div class="ttdeci">#define JPH_EXPORT</div><div class="ttdef"><b>Definition</b> Core.h:275</div></div>
  384. <div class="ttc" id="a_core_8h_html_a69aa29b598b851b0640aa225a9e5d61d"><div class="ttname"><a href="_core_8h.html#a69aa29b598b851b0640aa225a9e5d61d">uint</a></div><div class="ttdeci">unsigned int uint</div><div class="ttdef"><b>Definition</b> Core.h:500</div></div>
  385. <div class="ttc" id="a_core_8h_html_a73da8725998b00321a9db341202d650d"><div class="ttname"><a href="_core_8h.html#a73da8725998b00321a9db341202d650d">JPH_NAMESPACE_END</a></div><div class="ttdeci">#define JPH_NAMESPACE_END</div><div class="ttdef"><b>Definition</b> Core.h:425</div></div>
  386. <div class="ttc" id="a_core_8h_html_a8f95e75e58492e87412191fabadd8ca8"><div class="ttname"><a href="_core_8h.html#a8f95e75e58492e87412191fabadd8ca8">uint32</a></div><div class="ttdeci">std::uint32_t uint32</div><div class="ttdef"><b>Definition</b> Core.h:503</div></div>
  387. <div class="ttc" id="a_core_8h_html_ad14098b68b8c44ea6112601031268405"><div class="ttname"><a href="_core_8h.html#ad14098b68b8c44ea6112601031268405">JPH_NAMESPACE_BEGIN</a></div><div class="ttdeci">#define JPH_NAMESPACE_BEGIN</div><div class="ttdef"><b>Definition</b> Core.h:419</div></div>
  388. <div class="ttc" id="a_issue_reporting_8h_html_aaf6b1df827e11b7ca5f6f8778bd8f8cd"><div class="ttname"><a href="_issue_reporting_8h.html#aaf6b1df827e11b7ca5f6f8778bd8f8cd">JPH_ASSERT</a></div><div class="ttdeci">#define JPH_ASSERT(...)</div><div class="ttdef"><b>Definition</b> IssueReporting.h:33</div></div>
  389. <div class="ttc" id="a_motion_properties_8h_html"><div class="ttname"><a href="_motion_properties_8h.html">MotionProperties.h</a></div></div>
  390. <div class="ttc" id="a_motion_type_8h_html_a328245ddbb758681fad3c44c9d488fd8"><div class="ttname"><a href="_motion_type_8h.html#a328245ddbb758681fad3c44c9d488fd8">EMotionType</a></div><div class="ttdeci">EMotionType</div><div class="ttdoc">Motion type of a physics body.</div><div class="ttdef"><b>Definition</b> MotionType.h:11</div></div>
  391. <div class="ttc" id="a_soft_body_shared_settings_8h_html"><div class="ttname"><a href="_soft_body_shared_settings_8h.html">SoftBodySharedSettings.h</a></div></div>
  392. <div class="ttc" id="a_soft_body_update_context_8h_html"><div class="ttname"><a href="_soft_body_update_context_8h.html">SoftBodyUpdateContext.h</a></div></div>
  393. <div class="ttc" id="a_soft_body_vertex_8h_html"><div class="ttname"><a href="_soft_body_vertex_8h.html">SoftBodyVertex.h</a></div></div>
  394. <div class="ttc" id="a_transformed_shape_8h_html"><div class="ttname"><a href="_transformed_shape_8h.html">TransformedShape.h</a></div></div>
  395. <div class="ttc" id="aclass_a_a_box_html"><div class="ttname"><a href="class_a_a_box.html">AABox</a></div><div class="ttdoc">Axis aligned box.</div><div class="ttdef"><b>Definition</b> AABox.h:16</div></div>
  396. <div class="ttc" id="aclass_array_html"><div class="ttname"><a href="class_array.html">Array</a></div><div class="ttdef"><b>Definition</b> Array.h:36</div></div>
  397. <div class="ttc" id="aclass_body_html"><div class="ttname"><a href="class_body.html">Body</a></div><div class="ttdef"><b>Definition</b> Body.h:39</div></div>
  398. <div class="ttc" id="aclass_body_i_d_html"><div class="ttname"><a href="class_body_i_d.html">BodyID</a></div><div class="ttdoc">ID of a body. This is a way of reasoning about bodies in a multithreaded simulation while avoiding ra...</div><div class="ttdef"><b>Definition</b> BodyID.h:13</div></div>
  399. <div class="ttc" id="aclass_body_interface_html"><div class="ttname"><a href="class_body_interface.html">BodyInterface</a></div><div class="ttdef"><b>Definition</b> BodyInterface.h:36</div></div>
  400. <div class="ttc" id="aclass_body_lock_interface_html"><div class="ttname"><a href="class_body_lock_interface.html">BodyLockInterface</a></div><div class="ttdoc">Base class interface for locking a body. Usually you will use BodyLockRead / BodyLockWrite / BodyLock...</div><div class="ttdef"><b>Definition</b> BodyLockInterface.h:17</div></div>
  401. <div class="ttc" id="aclass_color_html"><div class="ttname"><a href="class_color.html">Color</a></div><div class="ttdoc">Class that holds an RGBA color with 8-bits per component.</div><div class="ttdef"><b>Definition</b> Color.h:16</div></div>
  402. <div class="ttc" id="aclass_debug_renderer_html"><div class="ttname"><a href="class_debug_renderer.html">DebugRenderer</a></div><div class="ttdef"><b>Definition</b> DebugRenderer.h:47</div></div>
  403. <div class="ttc" id="aclass_mat44_html"><div class="ttname"><a href="class_mat44.html">Mat44</a></div><div class="ttdoc">Holds a 4x4 matrix of floats, but supports also operations on the 3x3 upper left part of the matrix.</div><div class="ttdef"><b>Definition</b> Mat44.h:13</div></div>
  404. <div class="ttc" id="aclass_mat44_html_a1b8c82590f5034e8c7f35157fdfd944f"><div class="ttname"><a href="class_mat44.html#a1b8c82590f5034e8c7f35157fdfd944f">Mat44::sIdentity</a></div><div class="ttdeci">static JPH_INLINE Mat44 sIdentity()</div><div class="ttdoc">Identity matrix.</div><div class="ttdef"><b>Definition</b> Mat44.inl:35</div></div>
  405. <div class="ttc" id="aclass_motion_properties_html"><div class="ttname"><a href="class_motion_properties.html">MotionProperties</a></div><div class="ttdoc">The Body class only keeps track of state for static bodies, the MotionProperties class keeps the addi...</div><div class="ttdef"><b>Definition</b> MotionProperties.h:29</div></div>
  406. <div class="ttc" id="aclass_motion_properties_html_a09a1e9e46776c7d15cdd2b19c4a146f6"><div class="ttname"><a href="class_motion_properties.html#a09a1e9e46776c7d15cdd2b19c4a146f6">MotionProperties::RestoreState</a></div><div class="ttdeci">void RestoreState(StateRecorder &amp;inStream)</div><div class="ttdoc">Restoring state for replay.</div><div class="ttdef"><b>Definition</b> MotionProperties.cpp:78</div></div>
  407. <div class="ttc" id="aclass_motion_properties_html_a9e308e4fb4cbb6c7dad8fe6b65d71aca"><div class="ttname"><a href="class_motion_properties.html#a9e308e4fb4cbb6c7dad8fe6b65d71aca">MotionProperties::SaveState</a></div><div class="ttdeci">void SaveState(StateRecorder &amp;inStream) const</div><div class="ttdoc">Saving state for replay.</div><div class="ttdef"><b>Definition</b> MotionProperties.cpp:63</div></div>
  408. <div class="ttc" id="aclass_physics_system_html"><div class="ttname"><a href="class_physics_system.html">PhysicsSystem</a></div><div class="ttdef"><b>Definition</b> PhysicsSystem.h:30</div></div>
  409. <div class="ttc" id="aclass_quat_html"><div class="ttname"><a href="class_quat.html">Quat</a></div><div class="ttdef"><b>Definition</b> Quat.h:33</div></div>
  410. <div class="ttc" id="aclass_ref_const_html"><div class="ttname"><a href="class_ref_const.html">RefConst</a></div><div class="ttdef"><b>Definition</b> Reference.h:163</div></div>
  411. <div class="ttc" id="aclass_shape_html"><div class="ttname"><a href="class_shape.html">Shape</a></div><div class="ttdoc">Base class for all shapes (collision volume of a body). Defines a virtual interface for collision det...</div><div class="ttdef"><b>Definition</b> Shape.h:186</div></div>
  412. <div class="ttc" id="aclass_soft_body_creation_settings_html"><div class="ttname"><a href="class_soft_body_creation_settings.html">SoftBodyCreationSettings</a></div><div class="ttdef"><b>Definition</b> SoftBodyCreationSettings.h:18</div></div>
  413. <div class="ttc" id="aclass_soft_body_manifold_html"><div class="ttname"><a href="class_soft_body_manifold.html">SoftBodyManifold</a></div><div class="ttdoc">An interface to query which vertices of a soft body are colliding with other bodies.</div><div class="ttdef"><b>Definition</b> SoftBodyManifold.h:13</div></div>
  414. <div class="ttc" id="aclass_soft_body_motion_properties_html"><div class="ttname"><a href="class_soft_body_motion_properties.html">SoftBodyMotionProperties</a></div><div class="ttdoc">This class contains the runtime information of a soft body.</div><div class="ttdef"><b>Definition</b> SoftBodyMotionProperties.h:35</div></div>
  415. <div class="ttc" id="aclass_soft_body_motion_properties_html_a0211a0376f1d3fcbe20eb246d3ba01db"><div class="ttname"><a href="class_soft_body_motion_properties.html#a0211a0376f1d3fcbe20eb246d3ba01db">SoftBodyMotionProperties::GetEnableSkinConstraints</a></div><div class="ttdeci">bool GetEnableSkinConstraints() const</div><div class="ttdoc">Global setting to turn on/off skin constraints.</div><div class="ttdef"><b>Definition</b> SoftBodyMotionProperties.h:93</div></div>
  416. <div class="ttc" id="aclass_soft_body_motion_properties_html_a043b0f7b9bcc457d12af67a184c82b8e"><div class="ttname"><a href="class_soft_body_motion_properties.html#a043b0f7b9bcc457d12af67a184c82b8e">SoftBodyMotionProperties::GetVertex</a></div><div class="ttdeci">Vertex &amp; GetVertex(uint inIndex)</div><div class="ttdef"><b>Definition</b> SoftBodyMotionProperties.h:61</div></div>
  417. <div class="ttc" id="aclass_soft_body_motion_properties_html_a0f968ca89a547af5c8978c966e327682"><div class="ttname"><a href="class_soft_body_motion_properties.html#a0f968ca89a547af5c8978c966e327682">SoftBodyMotionProperties::EStatus</a></div><div class="ttdeci">EStatus</div><div class="ttdoc">Return code for ParallelUpdate.</div><div class="ttdef"><b>Definition</b> SoftBodyMotionProperties.h:167</div></div>
  418. <div class="ttc" id="aclass_soft_body_motion_properties_html_a14aaefdff39da80c5d00f3733618bebb"><div class="ttname"><a href="class_soft_body_motion_properties.html#a14aaefdff39da80c5d00f3733618bebb">SoftBodyMotionProperties::GetVertices</a></div><div class="ttdeci">Array&lt; Vertex &gt; &amp; GetVertices()</div><div class="ttdef"><b>Definition</b> SoftBodyMotionProperties.h:57</div></div>
  419. <div class="ttc" id="aclass_soft_body_motion_properties_html_a1f4346ba3a5bf7c26f8db600a29ccd29"><div class="ttname"><a href="class_soft_body_motion_properties.html#a1f4346ba3a5bf7c26f8db600a29ccd29">SoftBodyMotionProperties::SetSkinnedMaxDistanceMultiplier</a></div><div class="ttdeci">void SetSkinnedMaxDistanceMultiplier(float inSkinnedMaxDistanceMultiplier)</div><div class="ttdef"><b>Definition</b> SoftBodyMotionProperties.h:98</div></div>
  420. <div class="ttc" id="aclass_soft_body_motion_properties_html_a1fc5838f0275d998d9431767dc516a71"><div class="ttname"><a href="class_soft_body_motion_properties.html#a1fc5838f0275d998d9431767dc516a71">SoftBodyMotionProperties::GetMaterials</a></div><div class="ttdeci">const PhysicsMaterialList &amp; GetMaterials() const</div><div class="ttdoc">Get the materials of the soft body.</div><div class="ttdef"><b>Definition</b> SoftBodyMotionProperties.h:68</div></div>
  421. <div class="ttc" id="aclass_soft_body_motion_properties_html_a39f8a1dd664ca0cdbbaed3893885e60a"><div class="ttname"><a href="class_soft_body_motion_properties.html#a39f8a1dd664ca0cdbbaed3893885e60a">SoftBodyMotionProperties::GetVertices</a></div><div class="ttdeci">const Array&lt; Vertex &gt; &amp; GetVertices() const</div><div class="ttdoc">Get the vertices of the soft body.</div><div class="ttdef"><b>Definition</b> SoftBodyMotionProperties.h:56</div></div>
  422. <div class="ttc" id="aclass_soft_body_motion_properties_html_a4a78fad964069c002621f44287b87d14"><div class="ttname"><a href="class_soft_body_motion_properties.html#a4a78fad964069c002621f44287b87d14">SoftBodyMotionProperties::GetFacesDoubleSided</a></div><div class="ttdeci">bool GetFacesDoubleSided() const</div><div class="ttdoc">If the faces in this soft body should be treated as double sided for the purpose of collision detecti...</div><div class="ttdef"><b>Definition</b> SoftBodyMotionProperties.h:89</div></div>
  423. <div class="ttc" id="aclass_soft_body_motion_properties_html_a4f74fee0d91efe0291d43f7f6433440c"><div class="ttname"><a href="class_soft_body_motion_properties.html#a4f74fee0d91efe0291d43f7f6433440c">SoftBodyMotionProperties::SetUpdatePosition</a></div><div class="ttdeci">void SetUpdatePosition(bool inUpdatePosition)</div><div class="ttdef"><b>Definition</b> SoftBodyMotionProperties.h:86</div></div>
  424. <div class="ttc" id="aclass_soft_body_motion_properties_html_a6201339ce0eaf31374525cf645c7babb"><div class="ttname"><a href="class_soft_body_motion_properties.html#a6201339ce0eaf31374525cf645c7babb">SoftBodyMotionProperties::GetSkinnedMaxDistanceMultiplier</a></div><div class="ttdeci">float GetSkinnedMaxDistanceMultiplier() const</div><div class="ttdoc">Multiplier applied to Skinned::mMaxDistance to allow tightening or loosening of the skin constraints....</div><div class="ttdef"><b>Definition</b> SoftBodyMotionProperties.h:97</div></div>
  425. <div class="ttc" id="aclass_soft_body_motion_properties_html_a6d55ac6913186e4f8e715e5b4470e657"><div class="ttname"><a href="class_soft_body_motion_properties.html#a6d55ac6913186e4f8e715e5b4470e657">SoftBodyMotionProperties::SetPressure</a></div><div class="ttdeci">void SetPressure(float inPressure)</div><div class="ttdef"><b>Definition</b> SoftBodyMotionProperties.h:82</div></div>
  426. <div class="ttc" id="aclass_soft_body_motion_properties_html_a79333ffe09d6a9c24f64bee2beec9850"><div class="ttname"><a href="class_soft_body_motion_properties.html#a79333ffe09d6a9c24f64bee2beec9850">SoftBodyMotionProperties::SetFacesDoubleSided</a></div><div class="ttdeci">void SetFacesDoubleSided(bool inDoubleSided)</div><div class="ttdef"><b>Definition</b> SoftBodyMotionProperties.h:90</div></div>
  427. <div class="ttc" id="aclass_soft_body_motion_properties_html_a8166377ba1eaf8dea4589bc90e8baf23"><div class="ttname"><a href="class_soft_body_motion_properties.html#a8166377ba1eaf8dea4589bc90e8baf23">SoftBodyMotionProperties::GetFaces</a></div><div class="ttdeci">const Array&lt; Face &gt; &amp; GetFaces() const</div><div class="ttdoc">Get the faces of the soft body.</div><div class="ttdef"><b>Definition</b> SoftBodyMotionProperties.h:71</div></div>
  428. <div class="ttc" id="aclass_soft_body_motion_properties_html_a9e0c2b0a3a39fb1d97c1318c7b65f9f0"><div class="ttname"><a href="class_soft_body_motion_properties.html#a9e0c2b0a3a39fb1d97c1318c7b65f9f0">SoftBodyMotionProperties::GetLocalBounds</a></div><div class="ttdeci">const AABox &amp; GetLocalBounds() const</div><div class="ttdoc">Get local bounding box.</div><div class="ttdef"><b>Definition</b> SoftBodyMotionProperties.h:105</div></div>
  429. <div class="ttc" id="aclass_soft_body_motion_properties_html_aa2581182a2773f19f17bb868419eced1"><div class="ttname"><a href="class_soft_body_motion_properties.html#aa2581182a2773f19f17bb868419eced1">SoftBodyMotionProperties::GetVertex</a></div><div class="ttdeci">const Vertex &amp; GetVertex(uint inIndex) const</div><div class="ttdoc">Access an individual vertex.</div><div class="ttdef"><b>Definition</b> SoftBodyMotionProperties.h:60</div></div>
  430. <div class="ttc" id="aclass_soft_body_motion_properties_html_aac3e3c0fc3d111fbe3765188b781c7e0"><div class="ttname"><a href="class_soft_body_motion_properties.html#aac3e3c0fc3d111fbe3765188b781c7e0">SoftBodyMotionProperties::SetNumIterations</a></div><div class="ttdeci">void SetNumIterations(uint32 inNumIterations)</div><div class="ttdef"><b>Definition</b> SoftBodyMotionProperties.h:78</div></div>
  431. <div class="ttc" id="aclass_soft_body_motion_properties_html_ab1f801e523f267881a8a81f8056c6287"><div class="ttname"><a href="class_soft_body_motion_properties.html#ab1f801e523f267881a8a81f8056c6287">SoftBodyMotionProperties::GetVertexRadius</a></div><div class="ttdeci">float GetVertexRadius() const</div><div class="ttdoc">How big the particles are, can be used to push the vertices a little bit away from the surface of oth...</div><div class="ttdef"><b>Definition</b> SoftBodyMotionProperties.h:101</div></div>
  432. <div class="ttc" id="aclass_soft_body_motion_properties_html_ab897342b62eecb50abf364ce5be7d7a6"><div class="ttname"><a href="class_soft_body_motion_properties.html#ab897342b62eecb50abf364ce5be7d7a6">SoftBodyMotionProperties::GetRodRotation</a></div><div class="ttdeci">Quat GetRodRotation(uint inIndex) const</div><div class="ttdoc">Access to the state of rods.</div><div class="ttdef"><b>Definition</b> SoftBodyMotionProperties.h:64</div></div>
  433. <div class="ttc" id="aclass_soft_body_motion_properties_html_ac18e13a54816a14ce4c3531dc3fff217"><div class="ttname"><a href="class_soft_body_motion_properties.html#ac18e13a54816a14ce4c3531dc3fff217">SoftBodyMotionProperties::GetRodAngularVelocity</a></div><div class="ttdeci">Vec3 GetRodAngularVelocity(uint inIndex) const</div><div class="ttdef"><b>Definition</b> SoftBodyMotionProperties.h:65</div></div>
  434. <div class="ttc" id="aclass_soft_body_motion_properties_html_ac3e7ae937f4b79b8b2b0166d8edb9fb7"><div class="ttname"><a href="class_soft_body_motion_properties.html#ac3e7ae937f4b79b8b2b0166d8edb9fb7">SoftBodyMotionProperties::SetVertexRadius</a></div><div class="ttdeci">void SetVertexRadius(float inVertexRadius)</div><div class="ttdef"><b>Definition</b> SoftBodyMotionProperties.h:102</div></div>
  435. <div class="ttc" id="aclass_soft_body_motion_properties_html_ac798aa56fce5a89d404e164c4b483ddd"><div class="ttname"><a href="class_soft_body_motion_properties.html#ac798aa56fce5a89d404e164c4b483ddd">SoftBodyMotionProperties::GetUpdatePosition</a></div><div class="ttdeci">bool GetUpdatePosition() const</div><div class="ttdoc">Update the position of the body while simulating (set to false for something that is attached to the ...</div><div class="ttdef"><b>Definition</b> SoftBodyMotionProperties.h:85</div></div>
  436. <div class="ttc" id="aclass_soft_body_motion_properties_html_acfcc07bc8fe8e5a34767df2383eaf7ff"><div class="ttname"><a href="class_soft_body_motion_properties.html#acfcc07bc8fe8e5a34767df2383eaf7ff">SoftBodyMotionProperties::GetVolume</a></div><div class="ttdeci">float GetVolume() const</div><div class="ttdoc">Get the volume of the soft body. Note can become negative if the shape is inside out!</div><div class="ttdef"><b>Definition</b> SoftBodyMotionProperties.h:108</div></div>
  437. <div class="ttc" id="aclass_soft_body_motion_properties_html_adc98275db06cee84d06be488a9806ca5"><div class="ttname"><a href="class_soft_body_motion_properties.html#adc98275db06cee84d06be488a9806ca5">SoftBodyMotionProperties::GetNumIterations</a></div><div class="ttdeci">uint32 GetNumIterations() const</div><div class="ttdoc">Get the number of solver iterations.</div><div class="ttdef"><b>Definition</b> SoftBodyMotionProperties.h:77</div></div>
  438. <div class="ttc" id="aclass_soft_body_motion_properties_html_ae15a2a2fdf14951fe7d9cd22e9e848e6"><div class="ttname"><a href="class_soft_body_motion_properties.html#ae15a2a2fdf14951fe7d9cd22e9e848e6">SoftBodyMotionProperties::GetPressure</a></div><div class="ttdeci">float GetPressure() const</div><div class="ttdoc">Get the pressure of the soft body.</div><div class="ttdef"><b>Definition</b> SoftBodyMotionProperties.h:81</div></div>
  439. <div class="ttc" id="aclass_soft_body_motion_properties_html_ae8b38e6b097ed9f37d9b8e844c200a4f"><div class="ttname"><a href="class_soft_body_motion_properties.html#ae8b38e6b097ed9f37d9b8e844c200a4f">SoftBodyMotionProperties::SetEnableSkinConstraints</a></div><div class="ttdeci">void SetEnableSkinConstraints(bool inEnableSkinConstraints)</div><div class="ttdef"><b>Definition</b> SoftBodyMotionProperties.h:94</div></div>
  440. <div class="ttc" id="aclass_soft_body_motion_properties_html_af56ddceaa1945447bf214647d44ca8f1"><div class="ttname"><a href="class_soft_body_motion_properties.html#af56ddceaa1945447bf214647d44ca8f1">SoftBodyMotionProperties::GetSettings</a></div><div class="ttdeci">const SoftBodySharedSettings * GetSettings() const</div><div class="ttdoc">Get the shared settings of the soft body.</div><div class="ttdef"><b>Definition</b> SoftBodyMotionProperties.h:53</div></div>
  441. <div class="ttc" id="aclass_soft_body_motion_properties_html_afcbcb8a86be08dddf2f33027741d321b"><div class="ttname"><a href="class_soft_body_motion_properties.html#afcbcb8a86be08dddf2f33027741d321b">SoftBodyMotionProperties::GetFace</a></div><div class="ttdeci">const Face &amp; GetFace(uint inIndex) const</div><div class="ttdoc">Access to an individual face.</div><div class="ttdef"><b>Definition</b> SoftBodyMotionProperties.h:74</div></div>
  442. <div class="ttc" id="aclass_soft_body_shared_settings_1_1_inv_bind_html"><div class="ttname"><a href="class_soft_body_shared_settings_1_1_inv_bind.html">SoftBodySharedSettings::InvBind</a></div><div class="ttdoc">An inverse bind matrix take a skinned vertex from its bind pose into joint local space.</div><div class="ttdef"><b>Definition</b> SoftBodySharedSettings.h:226</div></div>
  443. <div class="ttc" id="aclass_soft_body_shared_settings_1_1_l_r_a_html"><div class="ttname"><a href="class_soft_body_shared_settings_1_1_l_r_a.html">SoftBodySharedSettings::LRA</a></div><div class="ttdef"><b>Definition</b> SoftBodySharedSettings.h:290</div></div>
  444. <div class="ttc" id="aclass_soft_body_shared_settings_1_1_skin_weight_html"><div class="ttname"><a href="class_soft_body_shared_settings_1_1_skin_weight.html">SoftBodySharedSettings::SkinWeight</a></div><div class="ttdoc">A joint and its skin weight.</div><div class="ttdef"><b>Definition</b> SoftBodySharedSettings.h:240</div></div>
  445. <div class="ttc" id="aclass_soft_body_shared_settings_1_1_skinned_html"><div class="ttname"><a href="class_soft_body_shared_settings_1_1_skinned.html">SoftBodySharedSettings::Skinned</a></div><div class="ttdoc">A constraint that skins a vertex to joints and limits the distance that the simulated vertex can trav...</div><div class="ttdef"><b>Definition</b> SoftBodySharedSettings.h:254</div></div>
  446. <div class="ttc" id="aclass_soft_body_shared_settings_html"><div class="ttname"><a href="class_soft_body_shared_settings.html">SoftBodySharedSettings</a></div><div class="ttdef"><b>Definition</b> SoftBodySharedSettings.h:16</div></div>
  447. <div class="ttc" id="aclass_soft_body_vertex_html"><div class="ttname"><a href="class_soft_body_vertex.html">SoftBodyVertex</a></div><div class="ttdef"><b>Definition</b> SoftBodyVertex.h:16</div></div>
  448. <div class="ttc" id="aclass_state_recorder_html"><div class="ttname"><a href="class_state_recorder.html">StateRecorder</a></div><div class="ttdef"><b>Definition</b> StateRecorder.h:110</div></div>
  449. <div class="ttc" id="aclass_temp_allocator_html"><div class="ttname"><a href="class_temp_allocator.html">TempAllocator</a></div><div class="ttdef"><b>Definition</b> TempAllocator.h:16</div></div>
  450. <div class="ttc" id="aclass_vec3_html"><div class="ttname"><a href="class_vec3.html">Vec3</a></div><div class="ttdef"><b>Definition</b> Vec3.h:17</div></div>
  451. <div class="ttc" id="aclass_vec3_html_a224811af391ccfd1e05282eda22d1de8"><div class="ttname"><a href="class_vec3.html#a224811af391ccfd1e05282eda22d1de8">Vec3::Cross</a></div><div class="ttdeci">JPH_INLINE Vec3 Cross(Vec3Arg inV2) const</div><div class="ttdoc">Cross product.</div><div class="ttdef"><b>Definition</b> Vec3.inl:595</div></div>
  452. <div class="ttc" id="aclass_vec3_html_ad03c52ab27761bc1e64e33c47632ba51"><div class="ttname"><a href="class_vec3.html#ad03c52ab27761bc1e64e33c47632ba51">Vec3::sZero</a></div><div class="ttdeci">static JPH_INLINE Vec3 sZero()</div><div class="ttdoc">Vector with all zeros.</div><div class="ttdef"><b>Definition</b> Vec3.inl:103</div></div>
  453. <div class="ttc" id="aclass_vec3_html_aee68177ac267822e1823a9a0f7525014"><div class="ttname"><a href="class_vec3.html#aee68177ac267822e1823a9a0f7525014">Vec3::sNaN</a></div><div class="ttdeci">static JPH_INLINE Vec3 sNaN()</div><div class="ttdoc">Vector with all NaN's.</div><div class="ttdef"><b>Definition</b> Vec3.inl:130</div></div>
  454. <div class="ttc" id="astruct_physics_settings_html"><div class="ttname"><a href="struct_physics_settings.html">PhysicsSettings</a></div><div class="ttdef"><b>Definition</b> PhysicsSettings.h:28</div></div>
  455. <div class="ttc" id="astruct_soft_body_shared_settings_1_1_dihedral_bend_html"><div class="ttname"><a href="struct_soft_body_shared_settings_1_1_dihedral_bend.html">SoftBodySharedSettings::DihedralBend</a></div><div class="ttdef"><b>Definition</b> SoftBodySharedSettings.h:192</div></div>
  456. <div class="ttc" id="astruct_soft_body_shared_settings_1_1_edge_html"><div class="ttname"><a href="struct_soft_body_shared_settings_1_1_edge.html">SoftBodySharedSettings::Edge</a></div><div class="ttdoc">An edge keeps two vertices at a constant distance using a spring: |x1 - x2| = rest length.</div><div class="ttdef"><b>Definition</b> SoftBodySharedSettings.h:158</div></div>
  457. <div class="ttc" id="astruct_soft_body_shared_settings_1_1_face_html"><div class="ttname"><a href="struct_soft_body_shared_settings_1_1_face.html">SoftBodySharedSettings::Face</a></div><div class="ttdoc">A face defines the surface of the body.</div><div class="ttdef"><b>Definition</b> SoftBodySharedSettings.h:142</div></div>
  458. <div class="ttc" id="astruct_soft_body_shared_settings_1_1_rod_bend_twist_html"><div class="ttname"><a href="struct_soft_body_shared_settings_1_1_rod_bend_twist.html">SoftBodySharedSettings::RodBendTwist</a></div><div class="ttdoc">A constraint that connects two Cosserat rods and limits bend and twist between the rods.</div><div class="ttdef"><b>Definition</b> SoftBodySharedSettings.h:332</div></div>
  459. <div class="ttc" id="astruct_soft_body_shared_settings_1_1_rod_stretch_shear_html"><div class="ttname"><a href="struct_soft_body_shared_settings_1_1_rod_stretch_shear.html">SoftBodySharedSettings::RodStretchShear</a></div><div class="ttdef"><b>Definition</b> SoftBodySharedSettings.h:313</div></div>
  460. <div class="ttc" id="astruct_soft_body_shared_settings_1_1_volume_html"><div class="ttname"><a href="struct_soft_body_shared_settings_1_1_volume.html">SoftBodySharedSettings::Volume</a></div><div class="ttdoc">Volume constraint, keeps the volume of a tetrahedron constant.</div><div class="ttdef"><b>Definition</b> SoftBodySharedSettings.h:209</div></div>
  461. </div><!-- fragment --></div><!-- contents -->
  462. </div><!-- doc-content -->
  463. <!-- start footer part -->
  464. <div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  465. <ul>
  466. <li class="navelem"><a class="el" href="dir_d99289a5d3c46cf26f14ff6c90658d9f.html">Jolt</a></li><li class="navelem"><a class="el" href="dir_a0f33af92addde396fc27b064c5eb8a9.html">Physics</a></li><li class="navelem"><a class="el" href="dir_66a6b8c22316d1d251831be4b52072a7.html">SoftBody</a></li><li class="navelem"><a class="el" href="_soft_body_motion_properties_8h.html">SoftBodyMotionProperties.h</a></li>
  467. <li class="footer">Generated by <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.12.0 </li>
  468. </ul>
  469. </div>
  470. </body>
  471. </html>