| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247 |
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
- <html xmlns="http://www.w3.org/1999/xhtml" lang="en-US">
- <head>
- <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
- <meta http-equiv="X-UA-Compatible" content="IE=11"/>
- <meta name="generator" content="Doxygen 1.12.0"/>
- <meta name="viewport" content="width=device-width, initial-scale=1"/>
- <title>Jolt Physics: Jolt/Physics/SoftBody/SoftBodyShape.h Source File</title>
- <link href="tabs.css" rel="stylesheet" type="text/css"/>
- <script type="text/javascript" src="jquery.js"></script>
- <script type="text/javascript" src="dynsections.js"></script>
- <script type="text/javascript" src="clipboard.js"></script>
- <link href="navtree.css" rel="stylesheet" type="text/css"/>
- <script type="text/javascript" src="navtreedata.js"></script>
- <script type="text/javascript" src="navtree.js"></script>
- <script type="text/javascript" src="resize.js"></script>
- <script type="text/javascript" src="cookie.js"></script>
- <link href="search/search.css" rel="stylesheet" type="text/css"/>
- <script type="text/javascript" src="search/searchdata.js"></script>
- <script type="text/javascript" src="search/search.js"></script>
- <script type="text/x-mathjax-config">
- MathJax.Hub.Config({
- extensions: ["tex2jax.js"],
- jax: ["input/TeX","output/HTML-CSS"],
- });
- </script>
- <script type="text/javascript" async="async" src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/MathJax.js"></script>
- <link href="doxygen.css" rel="stylesheet" type="text/css" />
- </head>
- <body>
- <div id="top"><!-- do not remove this div, it is closed by doxygen! -->
- <div id="titlearea">
- <table cellspacing="0" cellpadding="0">
- <tbody>
- <tr id="projectrow">
- <td id="projectlogo"><img alt="Logo" src="LogoSmall.png"/></td>
- <td id="projectalign">
- <div id="projectname">Jolt Physics
- </div>
- <div id="projectbrief">A multi core friendly Game Physics Engine</div>
- </td>
- </tr>
- </tbody>
- </table>
- </div>
- <!-- end header part -->
- <!-- Generated by Doxygen 1.12.0 -->
- <script type="text/javascript">
- /* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
- var searchBox = new SearchBox("searchBox", "search/",'.html');
- /* @license-end */
- </script>
- <script type="text/javascript">
- /* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
- $(function() { codefold.init(0); });
- /* @license-end */
- </script>
- <script type="text/javascript" src="menudata.js"></script>
- <script type="text/javascript" src="menu.js"></script>
- <script type="text/javascript">
- /* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
- $(function() {
- initMenu('',true,false,'search.php','Search',true);
- $(function() { init_search(); });
- });
- /* @license-end */
- </script>
- <div id="main-nav"></div>
- </div><!-- top -->
- <div id="side-nav" class="ui-resizable side-nav-resizable">
- <div id="nav-tree">
- <div id="nav-tree-contents">
- <div id="nav-sync" class="sync"></div>
- </div>
- </div>
- <div id="splitbar" style="-moz-user-select:none;"
- class="ui-resizable-handle">
- </div>
- </div>
- <script type="text/javascript">
- /* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
- $(function(){initNavTree('_soft_body_shape_8h_source.html',''); initResizable(true); });
- /* @license-end */
- </script>
- <div id="doc-content">
- <!-- window showing the filter options -->
- <div id="MSearchSelectWindow"
- onmouseover="return searchBox.OnSearchSelectShow()"
- onmouseout="return searchBox.OnSearchSelectHide()"
- onkeydown="return searchBox.OnSearchSelectKey(event)">
- </div>
- <!-- iframe showing the search results (closed by default) -->
- <div id="MSearchResultsWindow">
- <div id="MSearchResults">
- <div class="SRPage">
- <div id="SRIndex">
- <div id="SRResults"></div>
- <div class="SRStatus" id="Loading">Loading...</div>
- <div class="SRStatus" id="Searching">Searching...</div>
- <div class="SRStatus" id="NoMatches">No Matches</div>
- </div>
- </div>
- </div>
- </div>
- <div class="header">
- <div class="headertitle"><div class="title">SoftBodyShape.h</div></div>
- </div><!--header-->
- <div class="contents">
- <a href="_soft_body_shape_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>
- <div class="line"><a id="l00002" name="l00002"></a><span class="lineno"> 2</span><span class="comment">// SPDX-FileCopyrightText: 2023 Jorrit Rouwe</span></div>
- <div class="line"><a id="l00003" name="l00003"></a><span class="lineno"> 3</span><span class="comment">// SPDX-License-Identifier: MIT</span></div>
- <div class="line"><a id="l00004" name="l00004"></a><span class="lineno"> 4</span> </div>
- <div class="line"><a id="l00005" name="l00005"></a><span class="lineno"> 5</span><span class="preprocessor">#pragma once</span></div>
- <div class="line"><a id="l00006" name="l00006"></a><span class="lineno"> 6</span> </div>
- <div class="line"><a id="l00007" name="l00007"></a><span class="lineno"> 7</span><span class="preprocessor">#include <<a class="code" href="_shape_8h.html">Jolt/Physics/Collision/Shape/Shape.h</a>></span></div>
- <div class="line"><a id="l00008" name="l00008"></a><span class="lineno"> 8</span> </div>
- <div class="line"><a id="l00009" name="l00009"></a><span class="lineno"> 9</span><a class="code hl_define" href="_core_8h.html#ad14098b68b8c44ea6112601031268405">JPH_NAMESPACE_BEGIN</a></div>
- <div class="line"><a id="l00010" name="l00010"></a><span class="lineno"> 10</span> </div>
- <div class="line"><a id="l00011" name="l00011"></a><span class="lineno"> 11</span><span class="keyword">class </span><a class="code hl_class" href="class_soft_body_motion_properties.html">SoftBodyMotionProperties</a>;</div>
- <div class="line"><a id="l00012" name="l00012"></a><span class="lineno"> 12</span><span class="keyword">class </span><a class="code hl_class" href="class_collide_shape_settings.html">CollideShapeSettings</a>;</div>
- <div class="line"><a id="l00013" name="l00013"></a><span class="lineno"> 13</span> </div>
- <div class="foldopen" id="foldopen00015" data-start="{" data-end="};">
- <div class="line"><a id="l00015" name="l00015"></a><span class="lineno"><a class="line" href="class_soft_body_shape.html"> 15</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_shape.html">SoftBodyShape</a> final : <span class="keyword">public</span> <a class="code hl_class" href="class_shape.html">Shape</a></div>
- <div class="line"><a id="l00016" name="l00016"></a><span class="lineno"> 16</span>{</div>
- <div class="line"><a id="l00017" name="l00017"></a><span class="lineno"> 17</span><span class="keyword">public</span>:</div>
- <div class="line"><a id="l00018" name="l00018"></a><span class="lineno"> 18</span> <a class="code hl_define" href="_memory_8h.html#a91074fb218fe28954a0938c099ddd9e0">JPH_OVERRIDE_NEW_DELETE</a></div>
- <div class="line"><a id="l00019" name="l00019"></a><span class="lineno"> 19</span> </div>
- <div class="line"><a id="l00021" name="l00021"></a><span class="lineno"><a class="line" href="class_soft_body_shape.html#a4536dbf0d8d3cf1d44639bf82edf3496"> 21</a></span> <a class="code hl_function" href="class_soft_body_shape.html#a4536dbf0d8d3cf1d44639bf82edf3496">SoftBodyShape</a>() : <a class="code hl_class" href="class_shape.html">Shape</a>(<a class="code hl_enumeration" href="_shape_8h.html#ad64a1c665070a3100e456e54073554a5">EShapeType</a>::<a class="code hl_enumvalue" href="_body_type_8h.html#ab494e27db6c263f9e31556ad388eb666aaae0baf0b48c5dcbb8097a4b857f077d">SoftBody</a>, <a class="code hl_enumeration" href="_shape_8h.html#aa332e0529e75b83aad91881c8d32551b">EShapeSubType</a>::<a class="code hl_enumvalue" href="_body_type_8h.html#ab494e27db6c263f9e31556ad388eb666aaae0baf0b48c5dcbb8097a4b857f077d">SoftBody</a>) { }</div>
- <div class="line"><a id="l00022" name="l00022"></a><span class="lineno"> 22</span> </div>
- <div class="line"><a id="l00024" name="l00024"></a><span class="lineno"> 24</span> <a class="code hl_typedef" href="_core_8h.html#a69aa29b598b851b0640aa225a9e5d61d">uint</a> GetSubShapeIDBits() <span class="keyword">const</span>;</div>
- <div class="line"><a id="l00025" name="l00025"></a><span class="lineno"> 25</span> </div>
- <div class="line"><a id="l00027" name="l00027"></a><span class="lineno"> 27</span> <a class="code hl_typedef" href="_core_8h.html#a8f95e75e58492e87412191fabadd8ca8">uint32</a> GetFaceIndex(<span class="keyword">const</span> <a class="code hl_class" href="class_sub_shape_i_d.html">SubShapeID</a> &inSubShapeID) <span class="keyword">const</span>;</div>
- <div class="line"><a id="l00028" name="l00028"></a><span class="lineno"> 28</span> </div>
- <div class="line"><a id="l00029" name="l00029"></a><span class="lineno"> 29</span> <span class="comment">// See Shape</span></div>
- <div class="line"><a id="l00030" name="l00030"></a><span class="lineno"><a class="line" href="class_soft_body_shape.html#ab0e06455cdee319947603a03d4d653fe"> 30</a></span> <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code hl_function" href="class_soft_body_shape.html#ab0e06455cdee319947603a03d4d653fe">MustBeStatic</a>()<span class="keyword"> const override </span>{ <span class="keywordflow">return</span> <span class="keyword">false</span>; }</div>
- <div class="line"><a id="l00031" name="l00031"></a><span class="lineno"><a class="line" href="class_soft_body_shape.html#ade435c48ffcf2c054b84dedd23e87148"> 31</a></span> <span class="keyword">virtual</span> <a class="code hl_class" href="class_vec3.html">Vec3</a> <a class="code hl_function" href="class_soft_body_shape.html#ade435c48ffcf2c054b84dedd23e87148">GetCenterOfMass</a>()<span class="keyword"> const override </span>{ <span class="keywordflow">return</span> <a class="code hl_function" href="class_vec3.html#ad03c52ab27761bc1e64e33c47632ba51">Vec3::sZero</a>(); }</div>
- <div class="line"><a id="l00032" name="l00032"></a><span class="lineno"> 32</span> <span class="keyword">virtual</span> <a class="code hl_class" href="class_a_a_box.html">AABox</a> <a class="code hl_function" href="class_shape.html#a30ea165596e01df087f6e4980ed6b0cb">GetLocalBounds</a>() <span class="keyword">const override</span>;</div>
- <div class="line"><a id="l00033" name="l00033"></a><span class="lineno"><a class="line" href="class_soft_body_shape.html#a3ff7ce4976bb19746e58ac06d90f1695"> 33</a></span> <span class="keyword">virtual</span> <a class="code hl_typedef" href="_core_8h.html#a69aa29b598b851b0640aa225a9e5d61d">uint</a> <a class="code hl_function" href="class_soft_body_shape.html#a3ff7ce4976bb19746e58ac06d90f1695">GetSubShapeIDBitsRecursive</a>()<span class="keyword"> const override </span>{ <span class="keywordflow">return</span> GetSubShapeIDBits(); }</div>
- <div class="line"><a id="l00034" name="l00034"></a><span class="lineno"><a class="line" href="class_soft_body_shape.html#a5c4e7f0e89d968da93b5759b642d5493"> 34</a></span> <span class="keyword">virtual</span> <span class="keywordtype">float</span> <a class="code hl_function" href="class_soft_body_shape.html#a5c4e7f0e89d968da93b5759b642d5493">GetInnerRadius</a>()<span class="keyword"> const override </span>{ <span class="keywordflow">return</span> 0.0f; }</div>
- <div class="line"><a id="l00035" name="l00035"></a><span class="lineno"><a class="line" href="class_soft_body_shape.html#ac8e3e81fea2706ab86fcf9aa9302d40d"> 35</a></span> <span class="keyword">virtual</span> <a class="code hl_class" href="class_mass_properties.html">MassProperties</a> <a class="code hl_function" href="class_soft_body_shape.html#ac8e3e81fea2706ab86fcf9aa9302d40d">GetMassProperties</a>()<span class="keyword"> const override </span>{ <span class="keywordflow">return</span> <a class="code hl_class" href="class_mass_properties.html">MassProperties</a>(); }</div>
- <div class="line"><a id="l00036" name="l00036"></a><span class="lineno"> 36</span> <span class="keyword">virtual</span> <span class="keyword">const</span> <a class="code hl_class" href="class_physics_material.html">PhysicsMaterial</a> * <a class="code hl_function" href="class_shape.html#a7f92a050d292158b83ef016eb5d3f168">GetMaterial</a>(<span class="keyword">const</span> <a class="code hl_class" href="class_sub_shape_i_d.html">SubShapeID</a> &inSubShapeID) <span class="keyword">const override</span>;</div>
- <div class="line"><a id="l00037" name="l00037"></a><span class="lineno"> 37</span> <span class="keyword">virtual</span> <a class="code hl_class" href="class_vec3.html">Vec3</a> <a class="code hl_function" href="class_shape.html#adc7c6aeed1cde2ae1be099a4a5a4bd0c">GetSurfaceNormal</a>(<span class="keyword">const</span> <a class="code hl_class" href="class_sub_shape_i_d.html">SubShapeID</a> &inSubShapeID, <a class="code hl_class" href="class_vec3.html">Vec3Arg</a> inLocalSurfacePosition) <span class="keyword">const override</span>;</div>
- <div class="line"><a id="l00038" name="l00038"></a><span class="lineno"> 38</span> <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code hl_function" href="class_shape.html#a4f6591e1a1329278568bc99b035c9928">GetSupportingFace</a>(<span class="keyword">const</span> <a class="code hl_class" href="class_sub_shape_i_d.html">SubShapeID</a> &inSubShapeID, <a class="code hl_class" href="class_vec3.html">Vec3Arg</a> inDirection, <a class="code hl_class" href="class_vec3.html">Vec3Arg</a> inScale, <a class="code hl_class" href="class_mat44.html">Mat44Arg</a> inCenterOfMassTransform, SupportingFace &outVertices) <span class="keyword">const override</span>;</div>
- <div class="line"><a id="l00039" name="l00039"></a><span class="lineno"> 39</span> <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code hl_function" href="class_shape.html#a99f077aa0ffef0d518ced9b69ca21d18">GetSubmergedVolume</a>(<a class="code hl_class" href="class_mat44.html">Mat44Arg</a> inCenterOfMassTransform, <a class="code hl_class" href="class_vec3.html">Vec3Arg</a> inScale, <span class="keyword">const</span> <a class="code hl_class" href="class_plane.html">Plane</a> &inSurface, <span class="keywordtype">float</span> &outTotalVolume, <span class="keywordtype">float</span> &outSubmergedVolume, <a class="code hl_class" href="class_vec3.html">Vec3</a> &outCenterOfBuoyancy</div>
- <div class="line"><a id="l00040" name="l00040"></a><span class="lineno"> 40</span>#ifdef JPH_DEBUG_RENDERER <span class="comment">// Not using JPH_IF_DEBUG_RENDERER for Doxygen</span></div>
- <div class="line"><a id="l00041" name="l00041"></a><span class="lineno"> 41</span> , <a class="code hl_class" href="class_vec3.html">RVec3Arg</a> inBaseOffset</div>
- <div class="line"><a id="l00042" name="l00042"></a><span class="lineno"> 42</span>#endif</div>
- <div class="line"><a id="l00043" name="l00043"></a><span class="lineno"> 43</span> ) <span class="keyword">const override</span>;</div>
- <div class="line"><a id="l00044" name="l00044"></a><span class="lineno"> 44</span><span class="preprocessor">#ifdef JPH_DEBUG_RENDERER</span></div>
- <div class="line"><a id="l00045" name="l00045"></a><span class="lineno"> 45</span> <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code hl_function" href="class_shape.html#af00149d141125f15e56d9aa82f07b6d4">Draw</a>(<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_class" href="class_vec3.html">Vec3Arg</a> inScale, <a class="code hl_class" href="class_color.html">ColorArg</a> inColor, <span class="keywordtype">bool</span> inUseMaterialColors, <span class="keywordtype">bool</span> inDrawWireframe) <span class="keyword">const override</span>;</div>
- <div class="line"><a id="l00046" name="l00046"></a><span class="lineno"> 46</span><span class="preprocessor">#endif </span><span class="comment">// JPH_DEBUG_RENDERER</span></div>
- <div class="line"><a id="l00047" name="l00047"></a><span class="lineno"> 47</span> <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code hl_function" href="class_shape.html#a955ec1953bc94c6c910dc4dc16114732">CastRay</a>(<span class="keyword">const</span> <a class="code hl_struct" href="struct_ray_cast.html">RayCast</a> &inRay, <span class="keyword">const</span> <a class="code hl_class" href="class_sub_shape_i_d_creator.html">SubShapeIDCreator</a> &inSubShapeIDCreator, <a class="code hl_class" href="class_ray_cast_result.html">RayCastResult</a> &ioHit) <span class="keyword">const override</span>;</div>
- <div class="line"><a id="l00048" name="l00048"></a><span class="lineno"> 48</span> <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code hl_function" href="class_shape.html#a955ec1953bc94c6c910dc4dc16114732">CastRay</a>(<span class="keyword">const</span> <a class="code hl_struct" href="struct_ray_cast.html">RayCast</a> &inRay, <span class="keyword">const</span> <a class="code hl_class" href="class_ray_cast_settings.html">RayCastSettings</a> &inRayCastSettings, <span class="keyword">const</span> <a class="code hl_class" href="class_sub_shape_i_d_creator.html">SubShapeIDCreator</a> &inSubShapeIDCreator, <a class="code hl_class" href="class_collision_collector.html">CastRayCollector</a> &ioCollector, <span class="keyword">const</span> <a class="code hl_class" href="class_shape_filter.html">ShapeFilter</a> &inShapeFilter = { }) <span class="keyword">const</span> <span class="keyword">override</span>;</div>
- <div class="line"><a id="l00049" name="l00049"></a><span class="lineno"> 49</span> <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code hl_function" href="class_shape.html#af6e77d16736434769d72152bf059a126">CollidePoint</a>(<a class="code hl_class" href="class_vec3.html">Vec3Arg</a> inPoint, <span class="keyword">const</span> <a class="code hl_class" href="class_sub_shape_i_d_creator.html">SubShapeIDCreator</a> &inSubShapeIDCreator, <a class="code hl_class" href="class_collision_collector.html">CollidePointCollector</a> &ioCollector, <span class="keyword">const</span> <a class="code hl_class" href="class_shape_filter.html">ShapeFilter</a> &inShapeFilter = { }) <span class="keyword">const</span> <span class="keyword">override</span>;</div>
- <div class="line"><a id="l00050" name="l00050"></a><span class="lineno"> 50</span> <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code hl_function" href="class_shape.html#aa0b3c774b4ac685b7c97c02d20fc8627">CollideSoftBodyVertices</a>(<a class="code hl_class" href="class_mat44.html">Mat44Arg</a> inCenterOfMassTransform, <a class="code hl_class" href="class_vec3.html">Vec3Arg</a> inScale, <span class="keyword">const</span> <a class="code hl_class" href="class_collide_soft_body_vertex_iterator.html">CollideSoftBodyVertexIterator</a> &inVertices, <a class="code hl_typedef" href="_core_8h.html#a69aa29b598b851b0640aa225a9e5d61d">uint</a> inNumVertices, <span class="keywordtype">int</span> inCollidingShapeIndex) <span class="keyword">const override</span>;</div>
- <div class="line"><a id="l00051" name="l00051"></a><span class="lineno"> 51</span> <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code hl_function" href="class_shape.html#a703f5419cf3f3cb216cbe0433ce1a625">GetTrianglesStart</a>(GetTrianglesContext &ioContext, <span class="keyword">const</span> <a class="code hl_class" href="class_a_a_box.html">AABox</a> &inBox, <a class="code hl_class" href="class_vec3.html">Vec3Arg</a> inPositionCOM, <a class="code hl_class" href="class_quat.html">QuatArg</a> inRotation, <a class="code hl_class" href="class_vec3.html">Vec3Arg</a> inScale) <span class="keyword">const override</span>;</div>
- <div class="line"><a id="l00052" name="l00052"></a><span class="lineno"> 52</span> <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code hl_function" href="class_shape.html#a4b6ba637f676d38c24bdb5da9a2f345f">GetTrianglesNext</a>(GetTrianglesContext &ioContext, <span class="keywordtype">int</span> inMaxTrianglesRequested, <a class="code hl_class" href="class_float3.html">Float3</a> *outTriangleVertices, <span class="keyword">const</span> <a class="code hl_class" href="class_physics_material.html">PhysicsMaterial</a> **outMaterials = <span class="keyword">nullptr</span>) <span class="keyword">const override</span>;</div>
- <div class="line"><a id="l00053" name="l00053"></a><span class="lineno"> 53</span> <span class="keyword">virtual</span> Stats <a class="code hl_function" href="class_shape.html#a87ae161e649ab6af75a60fe130dd195b">GetStats</a>() <span class="keyword">const override</span>;</div>
- <div class="line"><a id="l00054" name="l00054"></a><span class="lineno"> 54</span> <span class="keyword">virtual</span> <span class="keywordtype">float</span> <a class="code hl_function" href="class_shape.html#a2b07e3d1b554ff77d18e86af7cd451b7">GetVolume</a>() <span class="keyword">const override</span>;</div>
- <div class="line"><a id="l00055" name="l00055"></a><span class="lineno"> 55</span> </div>
- <div class="line"><a id="l00056" name="l00056"></a><span class="lineno"> 56</span> <span class="comment">// Register shape functions with the registry</span></div>
- <div class="line"><a id="l00057" name="l00057"></a><span class="lineno"> 57</span> <span class="keyword">static</span> <span class="keywordtype">void</span> sRegister();</div>
- <div class="line"><a id="l00058" name="l00058"></a><span class="lineno"> 58</span> </div>
- <div class="line"><a id="l00059" name="l00059"></a><span class="lineno"> 59</span><span class="keyword">private</span>:</div>
- <div class="line"><a id="l00060" name="l00060"></a><span class="lineno"> 60</span> <span class="comment">// Helper functions called by CollisionDispatch</span></div>
- <div class="line"><a id="l00061" name="l00061"></a><span class="lineno"> 61</span> <span class="keyword">static</span> <span class="keywordtype">void</span> sCollideConvexVsSoftBody(<span class="keyword">const</span> <a class="code hl_class" href="class_shape.html">Shape</a> *inShape1, <span class="keyword">const</span> <a class="code hl_class" href="class_shape.html">Shape</a> *inShape2, <a class="code hl_class" href="class_vec3.html">Vec3Arg</a> inScale1, <a class="code hl_class" href="class_vec3.html">Vec3Arg</a> inScale2, <a class="code hl_class" href="class_mat44.html">Mat44Arg</a> inCenterOfMassTransform1, <a class="code hl_class" href="class_mat44.html">Mat44Arg</a> inCenterOfMassTransform2, <span class="keyword">const</span> <a class="code hl_class" href="class_sub_shape_i_d_creator.html">SubShapeIDCreator</a> &inSubShapeIDCreator1, <span class="keyword">const</span> <a class="code hl_class" href="class_sub_shape_i_d_creator.html">SubShapeIDCreator</a> &inSubShapeIDCreator2, <span class="keyword">const</span> <a class="code hl_class" href="class_collide_shape_settings.html">CollideShapeSettings</a> &inCollideShapeSettings, <a class="code hl_class" href="class_collision_collector.html">CollideShapeCollector</a> &ioCollector, <span class="keyword">const</span> <a class="code hl_class" href="class_shape_filter.html">ShapeFilter</a> &inShapeFilter);</div>
- <div class="line"><a id="l00062" name="l00062"></a><span class="lineno"> 62</span> <span class="keyword">static</span> <span class="keywordtype">void</span> sCollideSphereVsSoftBody(<span class="keyword">const</span> <a class="code hl_class" href="class_shape.html">Shape</a> *inShape1, <span class="keyword">const</span> <a class="code hl_class" href="class_shape.html">Shape</a> *inShape2, <a class="code hl_class" href="class_vec3.html">Vec3Arg</a> inScale1, <a class="code hl_class" href="class_vec3.html">Vec3Arg</a> inScale2, <a class="code hl_class" href="class_mat44.html">Mat44Arg</a> inCenterOfMassTransform1, <a class="code hl_class" href="class_mat44.html">Mat44Arg</a> inCenterOfMassTransform2, <span class="keyword">const</span> <a class="code hl_class" href="class_sub_shape_i_d_creator.html">SubShapeIDCreator</a> &inSubShapeIDCreator1, <span class="keyword">const</span> <a class="code hl_class" href="class_sub_shape_i_d_creator.html">SubShapeIDCreator</a> &inSubShapeIDCreator2, <span class="keyword">const</span> <a class="code hl_class" href="class_collide_shape_settings.html">CollideShapeSettings</a> &inCollideShapeSettings, <a class="code hl_class" href="class_collision_collector.html">CollideShapeCollector</a> &ioCollector, <span class="keyword">const</span> <a class="code hl_class" href="class_shape_filter.html">ShapeFilter</a> &inShapeFilter);</div>
- <div class="line"><a id="l00063" name="l00063"></a><span class="lineno"> 63</span> <span class="keyword">static</span> <span class="keywordtype">void</span> sCastConvexVsSoftBody(<span class="keyword">const</span> <a class="code hl_struct" href="struct_shape_cast.html">ShapeCast</a> &inShapeCast, <span class="keyword">const</span> <a class="code hl_class" href="class_shape_cast_settings.html">ShapeCastSettings</a> &inShapeCastSettings, <span class="keyword">const</span> <a class="code hl_class" href="class_shape.html">Shape</a> *inShape, <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_filter.html">ShapeFilter</a> &inShapeFilter, <a class="code hl_class" href="class_mat44.html">Mat44Arg</a> inCenterOfMassTransform2, <span class="keyword">const</span> <a class="code hl_class" href="class_sub_shape_i_d_creator.html">SubShapeIDCreator</a> &inSubShapeIDCreator1, <span class="keyword">const</span> <a class="code hl_class" href="class_sub_shape_i_d_creator.html">SubShapeIDCreator</a> &inSubShapeIDCreator2, <a class="code hl_class" href="class_collision_collector.html">CastShapeCollector</a> &ioCollector);</div>
- <div class="line"><a id="l00064" name="l00064"></a><span class="lineno"> 64</span> <span class="keyword">static</span> <span class="keywordtype">void</span> sCastSphereVsSoftBody(<span class="keyword">const</span> <a class="code hl_struct" href="struct_shape_cast.html">ShapeCast</a> &inShapeCast, <span class="keyword">const</span> <a class="code hl_class" href="class_shape_cast_settings.html">ShapeCastSettings</a> &inShapeCastSettings, <span class="keyword">const</span> <a class="code hl_class" href="class_shape.html">Shape</a> *inShape, <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_filter.html">ShapeFilter</a> &inShapeFilter, <a class="code hl_class" href="class_mat44.html">Mat44Arg</a> inCenterOfMassTransform2, <span class="keyword">const</span> <a class="code hl_class" href="class_sub_shape_i_d_creator.html">SubShapeIDCreator</a> &inSubShapeIDCreator1, <span class="keyword">const</span> <a class="code hl_class" href="class_sub_shape_i_d_creator.html">SubShapeIDCreator</a> &inSubShapeIDCreator2, <a class="code hl_class" href="class_collision_collector.html">CastShapeCollector</a> &ioCollector);</div>
- <div class="line"><a id="l00065" name="l00065"></a><span class="lineno"> 65</span> </div>
- <div class="line"><a id="l00066" name="l00066"></a><span class="lineno"> 66</span> <span class="keyword">struct </span>SBSGetTrianglesContext;</div>
- <div class="line"><a id="l00067" name="l00067"></a><span class="lineno"> 67</span> </div>
- <div class="line"><a id="l00068" name="l00068"></a><span class="lineno"><a class="line" href="class_soft_body_shape.html#a58dc89a83d8c4dc28bd5f6e8c0ed35c8"> 68</a></span> <span class="keyword">friend</span> <span class="keyword">class </span><a class="code hl_class" href="class_body_manager.html">BodyManager</a>;</div>
- <div class="line"><a id="l00069" name="l00069"></a><span class="lineno"> 69</span> </div>
- <div class="line"><a id="l00070" name="l00070"></a><span class="lineno"> 70</span> <span class="keyword">const</span> <a class="code hl_class" href="class_soft_body_motion_properties.html">SoftBodyMotionProperties</a> *mSoftBodyMotionProperties;</div>
- <div class="line"><a id="l00071" name="l00071"></a><span class="lineno"> 71</span>};</div>
- </div>
- <div class="line"><a id="l00072" name="l00072"></a><span class="lineno"> 72</span> </div>
- <div class="line"><a id="l00073" name="l00073"></a><span class="lineno"> 73</span><a class="code hl_define" href="_core_8h.html#a73da8725998b00321a9db341202d650d">JPH_NAMESPACE_END</a></div>
- <div class="ttc" id="a_body_type_8h_html_ab494e27db6c263f9e31556ad388eb666aaae0baf0b48c5dcbb8097a4b857f077d"><div class="ttname"><a href="_body_type_8h.html#ab494e27db6c263f9e31556ad388eb666aaae0baf0b48c5dcbb8097a4b857f077d">EBodyType::SoftBody</a></div><div class="ttdeci">@ SoftBody</div><div class="ttdoc">Soft body consisting of a deformable shape.</div></div>
- <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>
- <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>
- <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>
- <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>
- <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>
- <div class="ttc" id="a_memory_8h_html_a91074fb218fe28954a0938c099ddd9e0"><div class="ttname"><a href="_memory_8h.html#a91074fb218fe28954a0938c099ddd9e0">JPH_OVERRIDE_NEW_DELETE</a></div><div class="ttdeci">#define JPH_OVERRIDE_NEW_DELETE</div><div class="ttdoc">Macro to override the new and delete functions.</div><div class="ttdef"><b>Definition</b> Memory.h:50</div></div>
- <div class="ttc" id="a_shape_8h_html"><div class="ttname"><a href="_shape_8h.html">Shape.h</a></div></div>
- <div class="ttc" id="a_shape_8h_html_aa332e0529e75b83aad91881c8d32551b"><div class="ttname"><a href="_shape_8h.html#aa332e0529e75b83aad91881c8d32551b">EShapeSubType</a></div><div class="ttdeci">EShapeSubType</div><div class="ttdoc">This enumerates all shape types, each shape can return its type through Shape::GetSubType.</div><div class="ttdef"><b>Definition</b> Shape.h:77</div></div>
- <div class="ttc" id="a_shape_8h_html_ad64a1c665070a3100e456e54073554a5"><div class="ttname"><a href="_shape_8h.html#ad64a1c665070a3100e456e54073554a5">EShapeType</a></div><div class="ttdeci">EShapeType</div><div class="ttdoc">Shapes are categorized in groups, each shape can return which group it belongs to through its Shape::...</div><div class="ttdef"><b>Definition</b> Shape.h:57</div></div>
- <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>
- <div class="ttc" id="aclass_body_manager_html"><div class="ttname"><a href="class_body_manager.html">BodyManager</a></div><div class="ttdef"><b>Definition</b> BodyManager.h:47</div></div>
- <div class="ttc" id="aclass_collide_shape_settings_html"><div class="ttname"><a href="class_collide_shape_settings.html">CollideShapeSettings</a></div><div class="ttdoc">Settings to be passed with a collision query.</div><div class="ttdef"><b>Definition</b> CollideShape.h:94</div></div>
- <div class="ttc" id="aclass_collide_soft_body_vertex_iterator_html"><div class="ttname"><a href="class_collide_soft_body_vertex_iterator.html">CollideSoftBodyVertexIterator</a></div><div class="ttdef"><b>Definition</b> CollideSoftBodyVertexIterator.h:15</div></div>
- <div class="ttc" id="aclass_collision_collector_html"><div class="ttname"><a href="class_collision_collector.html">CollisionCollector</a></div><div class="ttdoc">Virtual interface that allows collecting multiple collision results.</div><div class="ttdef"><b>Definition</b> CollisionCollector.h:45</div></div>
- <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>
- <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>
- <div class="ttc" id="aclass_float3_html"><div class="ttname"><a href="class_float3.html">Float3</a></div><div class="ttdoc">Class that holds 3 floats. Used as a storage class. Convert to Vec3 for calculations.</div><div class="ttdef"><b>Definition</b> Float3.h:13</div></div>
- <div class="ttc" id="aclass_mass_properties_html"><div class="ttname"><a href="class_mass_properties.html">MassProperties</a></div><div class="ttdoc">Describes the mass and inertia properties of a body. Used during body construction only.</div><div class="ttdef"><b>Definition</b> MassProperties.h:16</div></div>
- <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>
- <div class="ttc" id="aclass_physics_material_html"><div class="ttname"><a href="class_physics_material.html">PhysicsMaterial</a></div><div class="ttdef"><b>Definition</b> PhysicsMaterial.h:23</div></div>
- <div class="ttc" id="aclass_plane_html"><div class="ttname"><a href="class_plane.html">Plane</a></div><div class="ttdoc">An infinite plane described by the formula X . Normal + Constant = 0.</div><div class="ttdef"><b>Definition</b> Plane.h:11</div></div>
- <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>
- <div class="ttc" id="aclass_ray_cast_result_html"><div class="ttname"><a href="class_ray_cast_result.html">RayCastResult</a></div><div class="ttdoc">Specialization of cast result against a shape.</div><div class="ttdef"><b>Definition</b> CastResult.h:30</div></div>
- <div class="ttc" id="aclass_ray_cast_settings_html"><div class="ttname"><a href="class_ray_cast_settings.html">RayCastSettings</a></div><div class="ttdoc">Settings to be passed with a ray cast.</div><div class="ttdef"><b>Definition</b> RayCast.h:70</div></div>
- <div class="ttc" id="aclass_shape_cast_settings_html"><div class="ttname"><a href="class_shape_cast_settings.html">ShapeCastSettings</a></div><div class="ttdoc">Settings to be passed with a shape cast.</div><div class="ttdef"><b>Definition</b> ShapeCast.h:92</div></div>
- <div class="ttc" id="aclass_shape_filter_html"><div class="ttname"><a href="class_shape_filter.html">ShapeFilter</a></div><div class="ttdoc">Filter class.</div><div class="ttdef"><b>Definition</b> ShapeFilter.h:17</div></div>
- <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>
- <div class="ttc" id="aclass_shape_html_a2b07e3d1b554ff77d18e86af7cd451b7"><div class="ttname"><a href="class_shape.html#a2b07e3d1b554ff77d18e86af7cd451b7">Shape::GetVolume</a></div><div class="ttdeci">virtual float GetVolume() const =0</div></div>
- <div class="ttc" id="aclass_shape_html_a30ea165596e01df087f6e4980ed6b0cb"><div class="ttname"><a href="class_shape.html#a30ea165596e01df087f6e4980ed6b0cb">Shape::GetLocalBounds</a></div><div class="ttdeci">virtual AABox GetLocalBounds() const =0</div><div class="ttdoc">Get local bounding box including convex radius, this box is centered around the center of mass rather...</div></div>
- <div class="ttc" id="aclass_shape_html_a4b6ba637f676d38c24bdb5da9a2f345f"><div class="ttname"><a href="class_shape.html#a4b6ba637f676d38c24bdb5da9a2f345f">Shape::GetTrianglesNext</a></div><div class="ttdeci">virtual int GetTrianglesNext(GetTrianglesContext &ioContext, int inMaxTrianglesRequested, Float3 *outTriangleVertices, const PhysicsMaterial **outMaterials=nullptr) const =0</div></div>
- <div class="ttc" id="aclass_shape_html_a4f6591e1a1329278568bc99b035c9928"><div class="ttname"><a href="class_shape.html#a4f6591e1a1329278568bc99b035c9928">Shape::GetSupportingFace</a></div><div class="ttdeci">virtual void GetSupportingFace(const SubShapeID &inSubShapeID, Vec3Arg inDirection, Vec3Arg inScale, Mat44Arg inCenterOfMassTransform, SupportingFace &outVertices) const</div><div class="ttdef"><b>Definition</b> Shape.h:266</div></div>
- <div class="ttc" id="aclass_shape_html_a703f5419cf3f3cb216cbe0433ce1a625"><div class="ttname"><a href="class_shape.html#a703f5419cf3f3cb216cbe0433ce1a625">Shape::GetTrianglesStart</a></div><div class="ttdeci">virtual void GetTrianglesStart(GetTrianglesContext &ioContext, const AABox &inBox, Vec3Arg inPositionCOM, QuatArg inRotation, Vec3Arg inScale) const =0</div></div>
- <div class="ttc" id="aclass_shape_html_a7f92a050d292158b83ef016eb5d3f168"><div class="ttname"><a href="class_shape.html#a7f92a050d292158b83ef016eb5d3f168">Shape::GetMaterial</a></div><div class="ttdeci">virtual const PhysicsMaterial * GetMaterial(const SubShapeID &inSubShapeID) const =0</div><div class="ttdoc">Get the material assigned to a particular sub shape ID.</div></div>
- <div class="ttc" id="aclass_shape_html_a87ae161e649ab6af75a60fe130dd195b"><div class="ttname"><a href="class_shape.html#a87ae161e649ab6af75a60fe130dd195b">Shape::GetStats</a></div><div class="ttdeci">virtual Stats GetStats() const =0</div><div class="ttdoc">Get stats of this shape. Use for logging / data collection purposes only. Does not add values from ch...</div></div>
- <div class="ttc" id="aclass_shape_html_a955ec1953bc94c6c910dc4dc16114732"><div class="ttname"><a href="class_shape.html#a955ec1953bc94c6c910dc4dc16114732">Shape::CastRay</a></div><div class="ttdeci">virtual bool CastRay(const RayCast &inRay, const SubShapeIDCreator &inSubShapeIDCreator, RayCastResult &ioHit) const =0</div></div>
- <div class="ttc" id="aclass_shape_html_a99f077aa0ffef0d518ced9b69ca21d18"><div class="ttname"><a href="class_shape.html#a99f077aa0ffef0d518ced9b69ca21d18">Shape::GetSubmergedVolume</a></div><div class="ttdeci">virtual void GetSubmergedVolume(Mat44Arg inCenterOfMassTransform, Vec3Arg inScale, const Plane &inSurface, float &outTotalVolume, float &outSubmergedVolume, Vec3 &outCenterOfBuoyancy, RVec3Arg inBaseOffset) const =0</div></div>
- <div class="ttc" id="aclass_shape_html_aa0b3c774b4ac685b7c97c02d20fc8627"><div class="ttname"><a href="class_shape.html#aa0b3c774b4ac685b7c97c02d20fc8627">Shape::CollideSoftBodyVertices</a></div><div class="ttdeci">virtual void CollideSoftBodyVertices(Mat44Arg inCenterOfMassTransform, Vec3Arg inScale, const CollideSoftBodyVertexIterator &inVertices, uint inNumVertices, int inCollidingShapeIndex) const =0</div></div>
- <div class="ttc" id="aclass_shape_html_adc7c6aeed1cde2ae1be099a4a5a4bd0c"><div class="ttname"><a href="class_shape.html#adc7c6aeed1cde2ae1be099a4a5a4bd0c">Shape::GetSurfaceNormal</a></div><div class="ttdeci">virtual Vec3 GetSurfaceNormal(const SubShapeID &inSubShapeID, Vec3Arg inLocalSurfacePosition) const =0</div></div>
- <div class="ttc" id="aclass_shape_html_af00149d141125f15e56d9aa82f07b6d4"><div class="ttname"><a href="class_shape.html#af00149d141125f15e56d9aa82f07b6d4">Shape::Draw</a></div><div class="ttdeci">virtual void Draw(DebugRenderer *inRenderer, RMat44Arg inCenterOfMassTransform, Vec3Arg inScale, ColorArg inColor, bool inUseMaterialColors, bool inDrawWireframe) const =0</div><div class="ttdoc">Draw the shape at a particular location with a particular color (debugging purposes)</div></div>
- <div class="ttc" id="aclass_shape_html_af6e77d16736434769d72152bf059a126"><div class="ttname"><a href="class_shape.html#af6e77d16736434769d72152bf059a126">Shape::CollidePoint</a></div><div class="ttdeci">virtual void CollidePoint(Vec3Arg inPoint, const SubShapeIDCreator &inSubShapeIDCreator, CollidePointCollector &ioCollector, const ShapeFilter &inShapeFilter={ }) const =0</div></div>
- <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>
- <div class="ttc" id="aclass_soft_body_shape_html"><div class="ttname"><a href="class_soft_body_shape.html">SoftBodyShape</a></div><div class="ttdoc">Shape used exclusively for soft bodies. Adds the ability to perform collision checks against soft bod...</div><div class="ttdef"><b>Definition</b> SoftBodyShape.h:16</div></div>
- <div class="ttc" id="aclass_soft_body_shape_html_a3ff7ce4976bb19746e58ac06d90f1695"><div class="ttname"><a href="class_soft_body_shape.html#a3ff7ce4976bb19746e58ac06d90f1695">SoftBodyShape::GetSubShapeIDBitsRecursive</a></div><div class="ttdeci">virtual uint GetSubShapeIDBitsRecursive() const override</div><div class="ttdoc">Get the max number of sub shape ID bits that are needed to be able to address any leaf shape in this ...</div><div class="ttdef"><b>Definition</b> SoftBodyShape.h:33</div></div>
- <div class="ttc" id="aclass_soft_body_shape_html_a4536dbf0d8d3cf1d44639bf82edf3496"><div class="ttname"><a href="class_soft_body_shape.html#a4536dbf0d8d3cf1d44639bf82edf3496">SoftBodyShape::SoftBodyShape</a></div><div class="ttdeci">JPH_OVERRIDE_NEW_DELETE SoftBodyShape()</div><div class="ttdoc">Constructor.</div><div class="ttdef"><b>Definition</b> SoftBodyShape.h:21</div></div>
- <div class="ttc" id="aclass_soft_body_shape_html_a5c4e7f0e89d968da93b5759b642d5493"><div class="ttname"><a href="class_soft_body_shape.html#a5c4e7f0e89d968da93b5759b642d5493">SoftBodyShape::GetInnerRadius</a></div><div class="ttdeci">virtual float GetInnerRadius() const override</div><div class="ttdef"><b>Definition</b> SoftBodyShape.h:34</div></div>
- <div class="ttc" id="aclass_soft_body_shape_html_ab0e06455cdee319947603a03d4d653fe"><div class="ttname"><a href="class_soft_body_shape.html#ab0e06455cdee319947603a03d4d653fe">SoftBodyShape::MustBeStatic</a></div><div class="ttdeci">virtual bool MustBeStatic() const override</div><div class="ttdoc">Check if this shape can only be used to create a static body or if it can also be dynamic/kinematic.</div><div class="ttdef"><b>Definition</b> SoftBodyShape.h:30</div></div>
- <div class="ttc" id="aclass_soft_body_shape_html_ac8e3e81fea2706ab86fcf9aa9302d40d"><div class="ttname"><a href="class_soft_body_shape.html#ac8e3e81fea2706ab86fcf9aa9302d40d">SoftBodyShape::GetMassProperties</a></div><div class="ttdeci">virtual MassProperties GetMassProperties() const override</div><div class="ttdoc">Calculate the mass and inertia of this shape.</div><div class="ttdef"><b>Definition</b> SoftBodyShape.h:35</div></div>
- <div class="ttc" id="aclass_soft_body_shape_html_ade435c48ffcf2c054b84dedd23e87148"><div class="ttname"><a href="class_soft_body_shape.html#ade435c48ffcf2c054b84dedd23e87148">SoftBodyShape::GetCenterOfMass</a></div><div class="ttdeci">virtual Vec3 GetCenterOfMass() const override</div><div class="ttdoc">All shapes are centered around their center of mass. This function returns the center of mass positio...</div><div class="ttdef"><b>Definition</b> SoftBodyShape.h:31</div></div>
- <div class="ttc" id="aclass_sub_shape_i_d_creator_html"><div class="ttname"><a href="class_sub_shape_i_d_creator.html">SubShapeIDCreator</a></div><div class="ttdef"><b>Definition</b> SubShapeID.h:108</div></div>
- <div class="ttc" id="aclass_sub_shape_i_d_html"><div class="ttname"><a href="class_sub_shape_i_d.html">SubShapeID</a></div><div class="ttdoc">A sub shape id contains a path to an element (usually a triangle or other primitive type) of a compou...</div><div class="ttdef"><b>Definition</b> SubShapeID.h:23</div></div>
- <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>
- <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>
- <div class="ttc" id="astruct_ray_cast_html"><div class="ttname"><a href="struct_ray_cast.html">RayCast</a></div><div class="ttdef"><b>Definition</b> RayCast.h:47</div></div>
- <div class="ttc" id="astruct_shape_cast_html"><div class="ttname"><a href="struct_shape_cast.html">ShapeCast</a></div><div class="ttdef"><b>Definition</b> ShapeCast.h:69</div></div>
- </div><!-- fragment --></div><!-- contents -->
- </div><!-- doc-content -->
- <!-- start footer part -->
- <div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
- <ul>
- <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_shape_8h.html">SoftBodyShape.h</a></li>
- <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>
- </ul>
- </div>
- </body>
- </html>
|