| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553 |
- <!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/Body/Body.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('_body_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">Body.h</div></div>
- </div><!--header-->
- <div class="contents">
- <a href="_body_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: 2021 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="_non_copyable_8h.html">Jolt/Core/NonCopyable.h</a>></span></div>
- <div class="line"><a id="l00008" name="l00008"></a><span class="lineno"> 8</span><span class="preprocessor">#include <<a class="code" href="_a_a_box_8h.html">Jolt/Geometry/AABox.h</a>></span></div>
- <div class="line"><a id="l00009" name="l00009"></a><span class="lineno"> 9</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="l00010" name="l00010"></a><span class="lineno"> 10</span><span class="preprocessor">#include <<a class="code" href="_broad_phase_layer_8h.html">Jolt/Physics/Collision/BroadPhase/BroadPhaseLayer.h</a>></span></div>
- <div class="line"><a id="l00011" name="l00011"></a><span class="lineno"> 11</span><span class="preprocessor">#include <<a class="code" href="_object_layer_8h.html">Jolt/Physics/Collision/ObjectLayer.h</a>></span></div>
- <div class="line"><a id="l00012" name="l00012"></a><span class="lineno"> 12</span><span class="preprocessor">#include <<a class="code" href="_collision_group_8h.html">Jolt/Physics/Collision/CollisionGroup.h</a>></span></div>
- <div class="line"><a id="l00013" name="l00013"></a><span class="lineno"> 13</span><span class="preprocessor">#include <<a class="code" href="_transformed_shape_8h.html">Jolt/Physics/Collision/TransformedShape.h</a>></span></div>
- <div class="line"><a id="l00014" name="l00014"></a><span class="lineno"> 14</span><span class="preprocessor">#include <<a class="code" href="_motion_properties_8h.html">Jolt/Physics/Body/MotionProperties.h</a>></span></div>
- <div class="line"><a id="l00015" name="l00015"></a><span class="lineno"> 15</span><span class="preprocessor">#include <<a class="code" href="_body_i_d_8h.html">Jolt/Physics/Body/BodyID.h</a>></span></div>
- <div class="line"><a id="l00016" name="l00016"></a><span class="lineno"> 16</span><span class="preprocessor">#include <<a class="code" href="_body_access_8h.html">Jolt/Physics/Body/BodyAccess.h</a>></span></div>
- <div class="line"><a id="l00017" name="l00017"></a><span class="lineno"> 17</span><span class="preprocessor">#include <<a class="code" href="_body_type_8h.html">Jolt/Physics/Body/BodyType.h</a>></span></div>
- <div class="line"><a id="l00018" name="l00018"></a><span class="lineno"> 18</span><span class="preprocessor">#include <<a class="code" href="_string_tools_8h.html">Jolt/Core/StringTools.h</a>></span></div>
- <div class="line"><a id="l00019" name="l00019"></a><span class="lineno"> 19</span> </div>
- <div class="line"><a id="l00020" name="l00020"></a><span class="lineno"> 20</span><a class="code hl_define" href="_core_8h.html#ad14098b68b8c44ea6112601031268405">JPH_NAMESPACE_BEGIN</a></div>
- <div class="line"><a id="l00021" name="l00021"></a><span class="lineno"> 21</span> </div>
- <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_state_recorder.html">StateRecorder</a>;</div>
- <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_body_creation_settings.html">BodyCreationSettings</a>;</div>
- <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_soft_body_creation_settings.html">SoftBodyCreationSettings</a>;</div>
- <div class="line"><a id="l00025" name="l00025"></a><span class="lineno"> 25</span> </div>
- <div class="foldopen" id="foldopen00034" data-start="{" data-end="};">
- <div class="line"><a id="l00034" name="l00034"></a><span class="lineno"><a class="line" href="class_body.html"> 34</a></span><span class="keyword">class</span></div>
- <div class="line"><a id="l00035" name="l00035"></a><span class="lineno"> 35</span><span class="preprocessor">#ifndef JPH_PLATFORM_DOXYGEN </span><span class="comment">// Doxygen gets confused here</span></div>
- <div class="line"><a id="l00036" name="l00036"></a><span class="lineno"> 36</span> <a class="code hl_define" href="_core_8h.html#a99479aa3165acf219093ab9549833cf9">JPH_EXPORT_GCC_BUG_WORKAROUND</a> <span class="keyword">alignas</span>(max(JPH_VECTOR_ALIGNMENT, <a class="code hl_define" href="_real_8h.html#ac6a49178acb5c5ecdbab2424aca0e474">JPH_RVECTOR_ALIGNMENT</a>))</div>
- <div class="line"><a id="l00037" name="l00037"></a><span class="lineno"> 37</span>#endif</div>
- <div class="line"><a id="l00038" name="l00038"></a><span class="lineno"> 38</span> <a class="code hl_class" href="class_body.html">Body</a> : public <a class="code hl_class" href="class_non_copyable.html">NonCopyable</a></div>
- <div class="line"><a id="l00039" name="l00039"></a><span class="lineno"> 39</span>{</div>
- <div class="line"><a id="l00040" name="l00040"></a><span class="lineno"> 40</span><span class="keyword">public</span>:</div>
- <div class="line"><a id="l00041" name="l00041"></a><span class="lineno"> 41</span> <a class="code hl_define" href="_memory_8h.html#a91074fb218fe28954a0938c099ddd9e0">JPH_OVERRIDE_NEW_DELETE</a></div>
- <div class="line"><a id="l00042" name="l00042"></a><span class="lineno"> 42</span> </div>
- <div class="line"><a id="l00044" name="l00044"></a><span class="lineno"><a class="line" href="class_body.html#acbcb599679bb6a330a7ea3427fe90604"> 44</a></span> <span class="keyword">inline</span> <span class="keyword">const</span> <a class="code hl_class" href="class_body_i_d.html">BodyID</a> & <a class="code hl_function" href="class_body.html#acbcb599679bb6a330a7ea3427fe90604">GetID</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> mID; }</div>
- <div class="line"><a id="l00045" name="l00045"></a><span class="lineno"> 45</span> </div>
- <div class="line"><a id="l00047" name="l00047"></a><span class="lineno"><a class="line" href="class_body.html#a864a31f176da8e3329f83cb65c23f3d6"> 47</a></span> <span class="keyword">inline</span> <a class="code hl_enumeration" href="_body_type_8h.html#ab494e27db6c263f9e31556ad388eb666">EBodyType</a> <a class="code hl_function" href="class_body.html#a864a31f176da8e3329f83cb65c23f3d6">GetBodyType</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> mBodyType; }</div>
- <div class="line"><a id="l00048" name="l00048"></a><span class="lineno"> 48</span> </div>
- <div class="line"><a id="l00050" name="l00050"></a><span class="lineno"><a class="line" href="class_body.html#a8365154663e94343e1045893ee3b4c16"> 50</a></span> <span class="keyword">inline</span> <span class="keywordtype">bool</span> <a class="code hl_function" href="class_body.html#a8365154663e94343e1045893ee3b4c16">IsRigidBody</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> mBodyType == <a class="code hl_enumvalue" href="_body_type_8h.html#ab494e27db6c263f9e31556ad388eb666a81db01c2775d4446d91c2caba27c53e8">EBodyType::RigidBody</a>; }</div>
- <div class="line"><a id="l00051" name="l00051"></a><span class="lineno"> 51</span> </div>
- <div class="line"><a id="l00053" name="l00053"></a><span class="lineno"><a class="line" href="class_body.html#a454781f1340576ad7f752b51dd8a179d"> 53</a></span> <span class="keyword">inline</span> <span class="keywordtype">bool</span> <a class="code hl_function" href="class_body.html#a454781f1340576ad7f752b51dd8a179d">IsSoftBody</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> mBodyType == <a class="code hl_enumvalue" href="_body_type_8h.html#ab494e27db6c263f9e31556ad388eb666aaae0baf0b48c5dcbb8097a4b857f077d">EBodyType::SoftBody</a>; }</div>
- <div class="line"><a id="l00054" name="l00054"></a><span class="lineno"> 54</span> </div>
- <div class="line"><a id="l00055" name="l00055"></a><span class="lineno"> 55</span> <span class="comment">// See comment at GetIndexInActiveBodiesInternal for reasoning why TSAN is disabled here</span></div>
- <div class="line"><a id="l00056" name="l00056"></a><span class="lineno"> 56</span> <a class="code hl_define" href="_core_8h.html#a727ca2a69e72fed5f1cf97b0f283bb52">JPH_TSAN_NO_SANITIZE</a></div>
- <div class="line"><a id="l00058" name="l00058"></a><span class="lineno"><a class="line" href="class_body.html#aa3c98e271056d300e6a5a5cf4783e61e"> 58</a></span> <span class="keyword">inline</span> <span class="keywordtype">bool</span> <a class="code hl_function" href="class_body.html#aa3c98e271056d300e6a5a5cf4783e61e">IsActive</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> mMotionProperties != <span class="keyword">nullptr</span> && mMotionProperties->mIndexInActiveBodies != cInactiveIndex; }</div>
- <div class="line"><a id="l00059" name="l00059"></a><span class="lineno"> 59</span> </div>
- <div class="line"><a id="l00061" name="l00061"></a><span class="lineno"><a class="line" href="class_body.html#a83748a3d5a5b0a5b0242ba91875b8e13"> 61</a></span> <span class="keyword">inline</span> <span class="keywordtype">bool</span> <a class="code hl_function" href="class_body.html#a83748a3d5a5b0a5b0242ba91875b8e13">IsStatic</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> mMotionType == <a class="code hl_enumvalue" href="_motion_type_8h.html#a328245ddbb758681fad3c44c9d488fd8a84a8921b25f505d0d2077aeb5db4bc16">EMotionType::Static</a>; }</div>
- <div class="line"><a id="l00062" name="l00062"></a><span class="lineno"> 62</span> </div>
- <div class="line"><a id="l00064" name="l00064"></a><span class="lineno"><a class="line" href="class_body.html#ab49045bc1738e110dea9cbc020528338"> 64</a></span> <span class="keyword">inline</span> <span class="keywordtype">bool</span> <a class="code hl_function" href="class_body.html#ab49045bc1738e110dea9cbc020528338">IsKinematic</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> mMotionType == <a class="code hl_enumvalue" href="_motion_type_8h.html#a328245ddbb758681fad3c44c9d488fd8a40c78b58b86002ee38fad2d3c9dd787e">EMotionType::Kinematic</a>; }</div>
- <div class="line"><a id="l00065" name="l00065"></a><span class="lineno"> 65</span> </div>
- <div class="line"><a id="l00067" name="l00067"></a><span class="lineno"><a class="line" href="class_body.html#a1b21c30907c8c9ce30c176a054057bef"> 67</a></span> <span class="keyword">inline</span> <span class="keywordtype">bool</span> <a class="code hl_function" href="class_body.html#a1b21c30907c8c9ce30c176a054057bef">IsDynamic</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> mMotionType == <a class="code hl_enumvalue" href="_motion_type_8h.html#a328245ddbb758681fad3c44c9d488fd8a971fd8cc345d8bd9f92e9f7d88fdf20c">EMotionType::Dynamic</a>; }</div>
- <div class="line"><a id="l00068" name="l00068"></a><span class="lineno"> 68</span> </div>
- <div class="line"><a id="l00070" name="l00070"></a><span class="lineno"><a class="line" href="class_body.html#a97addaa630b716fbc5b21ba19fdcf6ec"> 70</a></span> <span class="keyword">inline</span> <span class="keywordtype">bool</span> <a class="code hl_function" href="class_body.html#a97addaa630b716fbc5b21ba19fdcf6ec">CanBeKinematicOrDynamic</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> mMotionProperties != <span class="keyword">nullptr</span>; }</div>
- <div class="line"><a id="l00071" name="l00071"></a><span class="lineno"> 71</span> </div>
- <div class="line"><a id="l00077" name="l00077"></a><span class="lineno"><a class="line" href="class_body.html#a5d8e1f66eed163868a633cdb93859f77"> 77</a></span> <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code hl_function" href="class_body.html#a5d8e1f66eed163868a633cdb93859f77">SetIsSensor</a>(<span class="keywordtype">bool</span> inIsSensor) { <a class="code hl_define" href="_issue_reporting_8h.html#aaf6b1df827e11b7ca5f6f8778bd8f8cd">JPH_ASSERT</a>(IsRigidBody()); <span class="keywordflow">if</span> (inIsSensor) mFlags.fetch_or(<a class="code hl_typedef" href="_core_8h.html#a115946cb5fc5879545e9ccea096a6031">uint8</a>(EFlags::IsSensor), memory_order_relaxed); <span class="keywordflow">else</span> mFlags.fetch_and(<a class="code hl_typedef" href="_core_8h.html#a115946cb5fc5879545e9ccea096a6031">uint8</a>(~<a class="code hl_typedef" href="_core_8h.html#a115946cb5fc5879545e9ccea096a6031">uint8</a>(EFlags::IsSensor)), memory_order_relaxed); }</div>
- <div class="line"><a id="l00078" name="l00078"></a><span class="lineno"> 78</span> </div>
- <div class="line"><a id="l00080" name="l00080"></a><span class="lineno"><a class="line" href="class_body.html#a251e1c9d8c9c7e40ddabc73420ac9ab1"> 80</a></span> <span class="keyword">inline</span> <span class="keywordtype">bool</span> <a class="code hl_function" href="class_body.html#a251e1c9d8c9c7e40ddabc73420ac9ab1">IsSensor</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> (mFlags.load(memory_order_relaxed) & <a class="code hl_typedef" href="_core_8h.html#a115946cb5fc5879545e9ccea096a6031">uint8</a>(EFlags::IsSensor)) != 0; }</div>
- <div class="line"><a id="l00081" name="l00081"></a><span class="lineno"> 81</span> </div>
- <div class="line"><a id="l00085" name="l00085"></a><span class="lineno"><a class="line" href="class_body.html#adefe521957195c57e06a905431160d10"> 85</a></span> <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code hl_function" href="class_body.html#adefe521957195c57e06a905431160d10">SetCollideKinematicVsNonDynamic</a>(<span class="keywordtype">bool</span> inCollide) { <a class="code hl_define" href="_issue_reporting_8h.html#aaf6b1df827e11b7ca5f6f8778bd8f8cd">JPH_ASSERT</a>(IsRigidBody()); <span class="keywordflow">if</span> (inCollide) mFlags.fetch_or(<a class="code hl_typedef" href="_core_8h.html#a115946cb5fc5879545e9ccea096a6031">uint8</a>(EFlags::CollideKinematicVsNonDynamic), memory_order_relaxed); <span class="keywordflow">else</span> mFlags.fetch_and(<a class="code hl_typedef" href="_core_8h.html#a115946cb5fc5879545e9ccea096a6031">uint8</a>(~<a class="code hl_typedef" href="_core_8h.html#a115946cb5fc5879545e9ccea096a6031">uint8</a>(EFlags::CollideKinematicVsNonDynamic)), memory_order_relaxed); }</div>
- <div class="line"><a id="l00086" name="l00086"></a><span class="lineno"> 86</span> </div>
- <div class="line"><a id="l00088" name="l00088"></a><span class="lineno"><a class="line" href="class_body.html#a8bb48012c114b300a9bfdd296cfe0546"> 88</a></span> <span class="keyword">inline</span> <span class="keywordtype">bool</span> <a class="code hl_function" href="class_body.html#a8bb48012c114b300a9bfdd296cfe0546">GetCollideKinematicVsNonDynamic</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> (mFlags.load(memory_order_relaxed) & <a class="code hl_typedef" href="_core_8h.html#a115946cb5fc5879545e9ccea096a6031">uint8</a>(EFlags::CollideKinematicVsNonDynamic)) != 0; }</div>
- <div class="line"><a id="l00089" name="l00089"></a><span class="lineno"> 89</span> </div>
- <div class="line"><a id="l00094" name="l00094"></a><span class="lineno"><a class="line" href="class_body.html#a8c24ff0c08f1a31fc57d01420f9cae8b"> 94</a></span> <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code hl_function" href="class_body.html#a8c24ff0c08f1a31fc57d01420f9cae8b">SetUseManifoldReduction</a>(<span class="keywordtype">bool</span> inUseReduction) { <a class="code hl_define" href="_issue_reporting_8h.html#aaf6b1df827e11b7ca5f6f8778bd8f8cd">JPH_ASSERT</a>(IsRigidBody()); <span class="keywordflow">if</span> (inUseReduction) mFlags.fetch_or(<a class="code hl_typedef" href="_core_8h.html#a115946cb5fc5879545e9ccea096a6031">uint8</a>(EFlags::UseManifoldReduction), memory_order_relaxed); <span class="keywordflow">else</span> mFlags.fetch_and(<a class="code hl_typedef" href="_core_8h.html#a115946cb5fc5879545e9ccea096a6031">uint8</a>(~<a class="code hl_typedef" href="_core_8h.html#a115946cb5fc5879545e9ccea096a6031">uint8</a>(EFlags::UseManifoldReduction)), memory_order_relaxed); }</div>
- <div class="line"><a id="l00095" name="l00095"></a><span class="lineno"> 95</span> </div>
- <div class="line"><a id="l00097" name="l00097"></a><span class="lineno"><a class="line" href="class_body.html#ae2732111d3d846bfceb19459fa2ee963"> 97</a></span> <span class="keyword">inline</span> <span class="keywordtype">bool</span> <a class="code hl_function" href="class_body.html#ae2732111d3d846bfceb19459fa2ee963">GetUseManifoldReduction</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> (mFlags.load(memory_order_relaxed) & <a class="code hl_typedef" href="_core_8h.html#a115946cb5fc5879545e9ccea096a6031">uint8</a>(EFlags::UseManifoldReduction)) != 0; }</div>
- <div class="line"><a id="l00098" name="l00098"></a><span class="lineno"> 98</span> </div>
- <div class="line"><a id="l00100" name="l00100"></a><span class="lineno"><a class="line" href="class_body.html#a602ae16f05ab73cd5cae80c2fd9b4a0d"> 100</a></span> <span class="keyword">inline</span> <span class="keywordtype">bool</span> <a class="code hl_function" href="class_body.html#a602ae16f05ab73cd5cae80c2fd9b4a0d">GetUseManifoldReductionWithBody</a>(<span class="keyword">const</span> <a class="code hl_class" href="class_body.html">Body</a> &inBody2)<span class="keyword"> const </span>{ <span class="keywordflow">return</span> ((mFlags.load(memory_order_relaxed) & inBody2.mFlags.load(memory_order_relaxed)) & <a class="code hl_typedef" href="_core_8h.html#a115946cb5fc5879545e9ccea096a6031">uint8</a>(EFlags::UseManifoldReduction)) != 0; }</div>
- <div class="line"><a id="l00101" name="l00101"></a><span class="lineno"> 101</span> </div>
- <div class="line"><a id="l00103" name="l00103"></a><span class="lineno"><a class="line" href="class_body.html#acb02850d1a8baecc879d224f47e9ab70"> 103</a></span> <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code hl_function" href="class_body.html#acb02850d1a8baecc879d224f47e9ab70">SetApplyGyroscopicForce</a>(<span class="keywordtype">bool</span> inApply) { <a class="code hl_define" href="_issue_reporting_8h.html#aaf6b1df827e11b7ca5f6f8778bd8f8cd">JPH_ASSERT</a>(IsRigidBody()); <span class="keywordflow">if</span> (inApply) mFlags.fetch_or(<a class="code hl_typedef" href="_core_8h.html#a115946cb5fc5879545e9ccea096a6031">uint8</a>(EFlags::ApplyGyroscopicForce), memory_order_relaxed); <span class="keywordflow">else</span> mFlags.fetch_and(<a class="code hl_typedef" href="_core_8h.html#a115946cb5fc5879545e9ccea096a6031">uint8</a>(~<a class="code hl_typedef" href="_core_8h.html#a115946cb5fc5879545e9ccea096a6031">uint8</a>(EFlags::ApplyGyroscopicForce)), memory_order_relaxed); }</div>
- <div class="line"><a id="l00104" name="l00104"></a><span class="lineno"> 104</span> </div>
- <div class="line"><a id="l00106" name="l00106"></a><span class="lineno"><a class="line" href="class_body.html#af7a0aaf1d49d9be5ffb7d6f195d3c74a"> 106</a></span> <span class="keyword">inline</span> <span class="keywordtype">bool</span> <a class="code hl_function" href="class_body.html#af7a0aaf1d49d9be5ffb7d6f195d3c74a">GetApplyGyroscopicForce</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> (mFlags.load(memory_order_relaxed) & <a class="code hl_typedef" href="_core_8h.html#a115946cb5fc5879545e9ccea096a6031">uint8</a>(EFlags::ApplyGyroscopicForce)) != 0; }</div>
- <div class="line"><a id="l00107" name="l00107"></a><span class="lineno"> 107</span> </div>
- <div class="line"><a id="l00109" name="l00109"></a><span class="lineno"><a class="line" href="class_body.html#a87c94617c51d1d35e49b64b0a29d18a4"> 109</a></span> <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code hl_function" href="class_body.html#a87c94617c51d1d35e49b64b0a29d18a4">SetEnhancedInternalEdgeRemoval</a>(<span class="keywordtype">bool</span> inApply) { <a class="code hl_define" href="_issue_reporting_8h.html#aaf6b1df827e11b7ca5f6f8778bd8f8cd">JPH_ASSERT</a>(IsRigidBody()); <span class="keywordflow">if</span> (inApply) mFlags.fetch_or(<a class="code hl_typedef" href="_core_8h.html#a115946cb5fc5879545e9ccea096a6031">uint8</a>(EFlags::EnhancedInternalEdgeRemoval), memory_order_relaxed); <span class="keywordflow">else</span> mFlags.fetch_and(<a class="code hl_typedef" href="_core_8h.html#a115946cb5fc5879545e9ccea096a6031">uint8</a>(~<a class="code hl_typedef" href="_core_8h.html#a115946cb5fc5879545e9ccea096a6031">uint8</a>(EFlags::EnhancedInternalEdgeRemoval)), memory_order_relaxed); }</div>
- <div class="line"><a id="l00110" name="l00110"></a><span class="lineno"> 110</span> </div>
- <div class="line"><a id="l00112" name="l00112"></a><span class="lineno"><a class="line" href="class_body.html#aa32a2192fa7e0ad595c63113e367d606"> 112</a></span> <span class="keyword">inline</span> <span class="keywordtype">bool</span> <a class="code hl_function" href="class_body.html#aa32a2192fa7e0ad595c63113e367d606">GetEnhancedInternalEdgeRemoval</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> (mFlags.load(memory_order_relaxed) & <a class="code hl_typedef" href="_core_8h.html#a115946cb5fc5879545e9ccea096a6031">uint8</a>(EFlags::EnhancedInternalEdgeRemoval)) != 0; }</div>
- <div class="line"><a id="l00113" name="l00113"></a><span class="lineno"> 113</span> </div>
- <div class="line"><a id="l00115" name="l00115"></a><span class="lineno"><a class="line" href="class_body.html#a264f4c99047d880e0ec05ba558f64ee9"> 115</a></span> <span class="keyword">inline</span> <span class="keywordtype">bool</span> <a class="code hl_function" href="class_body.html#a264f4c99047d880e0ec05ba558f64ee9">GetEnhancedInternalEdgeRemovalWithBody</a>(<span class="keyword">const</span> <a class="code hl_class" href="class_body.html">Body</a> &inBody2)<span class="keyword"> const </span>{ <span class="keywordflow">return</span> ((mFlags.load(memory_order_relaxed) | inBody2.mFlags.load(memory_order_relaxed)) & <a class="code hl_typedef" href="_core_8h.html#a115946cb5fc5879545e9ccea096a6031">uint8</a>(EFlags::EnhancedInternalEdgeRemoval)) != 0; }</div>
- <div class="line"><a id="l00116" name="l00116"></a><span class="lineno"> 116</span> </div>
- <div class="line"><a id="l00118" name="l00118"></a><span class="lineno"><a class="line" href="class_body.html#a146a4745ed28c3d9b06abe02ee3d3490"> 118</a></span> <span class="keyword">inline</span> <a class="code hl_enumeration" href="_motion_type_8h.html#a328245ddbb758681fad3c44c9d488fd8">EMotionType</a> <a class="code hl_function" href="class_body.html#a146a4745ed28c3d9b06abe02ee3d3490">GetMotionType</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> mMotionType; }</div>
- <div class="line"><a id="l00119" name="l00119"></a><span class="lineno"> 119</span> </div>
- <div class="line"><a id="l00121" name="l00121"></a><span class="lineno"> 121</span> <span class="keywordtype">void</span> SetMotionType(<a class="code hl_enumeration" href="_motion_type_8h.html#a328245ddbb758681fad3c44c9d488fd8">EMotionType</a> inMotionType);</div>
- <div class="line"><a id="l00122" name="l00122"></a><span class="lineno"> 122</span> </div>
- <div class="line"><a id="l00124" name="l00124"></a><span class="lineno"><a class="line" href="class_body.html#a4b9b625f789caa55cc9a3c7663644011"> 124</a></span> <span class="keyword">inline</span> <a class="code hl_class" href="class_broad_phase_layer.html">BroadPhaseLayer</a> <a class="code hl_function" href="class_body.html#a4b9b625f789caa55cc9a3c7663644011">GetBroadPhaseLayer</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> mBroadPhaseLayer; }</div>
- <div class="line"><a id="l00125" name="l00125"></a><span class="lineno"> 125</span> </div>
- <div class="line"><a id="l00127" name="l00127"></a><span class="lineno"><a class="line" href="class_body.html#a652dca18d0969696d5a4a589c30eddc2"> 127</a></span> <span class="keyword">inline</span> <a class="code hl_typedef" href="_object_layer_8h.html#a960eb396e2803ddad87bf25e0dcb4470">ObjectLayer</a> <a class="code hl_function" href="class_body.html#a652dca18d0969696d5a4a589c30eddc2">GetObjectLayer</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> <a class="code hl_variable" href="class_soft_body_creation_settings.html#af2bebfa58f86de5bc428165a5f9c08d2">mObjectLayer</a>; }</div>
- <div class="line"><a id="l00128" name="l00128"></a><span class="lineno"> 128</span> </div>
- <div class="line"><a id="l00130" name="l00130"></a><span class="lineno"><a class="line" href="class_body.html#a5865492b92c7c2e321c6916e80f5b7cb"> 130</a></span> <span class="keyword">const</span> <a class="code hl_class" href="class_collision_group.html">CollisionGroup</a> & <a class="code hl_function" href="class_body.html#a5865492b92c7c2e321c6916e80f5b7cb">GetCollisionGroup</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> <a class="code hl_variable" href="class_soft_body_creation_settings.html#af0f54d456a3f22e36ad6c1c429b9ee4c">mCollisionGroup</a>; }</div>
- <div class="line"><a id="l00131" name="l00131"></a><span class="lineno"><a class="line" href="class_body.html#aca55936886e8c9d4dc072efa6e7baa47"> 131</a></span> <a class="code hl_class" href="class_collision_group.html">CollisionGroup</a> & <a class="code hl_function" href="class_body.html#aca55936886e8c9d4dc072efa6e7baa47">GetCollisionGroup</a>() { <span class="keywordflow">return</span> <a class="code hl_variable" href="class_soft_body_creation_settings.html#af0f54d456a3f22e36ad6c1c429b9ee4c">mCollisionGroup</a>; }</div>
- <div class="line"><a id="l00132" name="l00132"></a><span class="lineno"><a class="line" href="class_body.html#a16ebf80baa257da06fdf4996a8b22476"> 132</a></span> <span class="keywordtype">void</span> <a class="code hl_function" href="class_body.html#a16ebf80baa257da06fdf4996a8b22476">SetCollisionGroup</a>(<span class="keyword">const</span> <a class="code hl_class" href="class_collision_group.html">CollisionGroup</a> &inGroup) { <a class="code hl_variable" href="class_soft_body_creation_settings.html#af0f54d456a3f22e36ad6c1c429b9ee4c">mCollisionGroup</a> = inGroup; }</div>
- <div class="line"><a id="l00133" name="l00133"></a><span class="lineno"> 133</span> </div>
- <div class="line"><a id="l00135" name="l00135"></a><span class="lineno"><a class="line" href="class_body.html#a1de301b3077fe2ae6339b910573ef3c6"> 135</a></span> <span class="keywordtype">bool</span> <a class="code hl_function" href="class_body.html#a1de301b3077fe2ae6339b910573ef3c6">GetAllowSleeping</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> mMotionProperties->mAllowSleeping; }</div>
- <div class="line"><a id="l00136" name="l00136"></a><span class="lineno"> 136</span> <span class="keywordtype">void</span> SetAllowSleeping(<span class="keywordtype">bool</span> inAllow);</div>
- <div class="line"><a id="l00137" name="l00137"></a><span class="lineno"> 137</span> </div>
- <div class="line"><a id="l00139" name="l00139"></a><span class="lineno"> 139</span> <span class="keyword">inline</span> <span class="keywordtype">void</span> ResetSleepTimer();</div>
- <div class="line"><a id="l00140" name="l00140"></a><span class="lineno"> 140</span> </div>
- <div class="line"><a id="l00142" name="l00142"></a><span class="lineno"><a class="line" href="class_body.html#abb35a0778672e9f3622d8cfa93b428b3"> 142</a></span> <span class="keyword">inline</span> <span class="keywordtype">float</span> <a class="code hl_function" href="class_body.html#abb35a0778672e9f3622d8cfa93b428b3">GetFriction</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> <a class="code hl_variable" href="class_soft_body_creation_settings.html#a2ab6ae93bb76e4033c1bd949671db613">mFriction</a>; }</div>
- <div class="line"><a id="l00143" name="l00143"></a><span class="lineno"><a class="line" href="class_body.html#af3576faa64307d6d9318a7c0dad47d21"> 143</a></span> <span class="keywordtype">void</span> <a class="code hl_function" href="class_body.html#af3576faa64307d6d9318a7c0dad47d21">SetFriction</a>(<span class="keywordtype">float</span> inFriction) { <a class="code hl_variable" href="class_soft_body_creation_settings.html#a2ab6ae93bb76e4033c1bd949671db613">mFriction</a> = inFriction; }</div>
- <div class="line"><a id="l00144" name="l00144"></a><span class="lineno"> 144</span> </div>
- <div class="line"><a id="l00146" name="l00146"></a><span class="lineno"><a class="line" href="class_body.html#a5657cc63a5fd9ee1e4a8408ac51affcc"> 146</a></span> <span class="keyword">inline</span> <span class="keywordtype">float</span> <a class="code hl_function" href="class_body.html#a5657cc63a5fd9ee1e4a8408ac51affcc">GetRestitution</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> <a class="code hl_variable" href="class_soft_body_creation_settings.html#ab4e95c56fff028fa8b81804488076890">mRestitution</a>; }</div>
- <div class="line"><a id="l00147" name="l00147"></a><span class="lineno"><a class="line" href="class_body.html#a6589465cd947d75f90b3975e6bdfd96e"> 147</a></span> <span class="keywordtype">void</span> <a class="code hl_function" href="class_body.html#a6589465cd947d75f90b3975e6bdfd96e">SetRestitution</a>(<span class="keywordtype">float</span> inRestitution) { <a class="code hl_variable" href="class_soft_body_creation_settings.html#ab4e95c56fff028fa8b81804488076890">mRestitution</a> = inRestitution; }</div>
- <div class="line"><a id="l00148" name="l00148"></a><span class="lineno"> 148</span> </div>
- <div class="line"><a id="l00150" name="l00150"></a><span class="lineno"><a class="line" href="class_body.html#a6451197a038f1d99b4b92beae4656842"> 150</a></span> <span class="keyword">inline</span> <a class="code hl_class" href="class_vec3.html">Vec3</a> <a class="code hl_function" href="class_body.html#a6451197a038f1d99b4b92beae4656842">GetLinearVelocity</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> !IsStatic()? mMotionProperties->GetLinearVelocity() : <a class="code hl_function" href="class_vec3.html#ad03c52ab27761bc1e64e33c47632ba51">Vec3::sZero</a>(); }</div>
- <div class="line"><a id="l00151" name="l00151"></a><span class="lineno"> 151</span> </div>
- <div class="line"><a id="l00154" name="l00154"></a><span class="lineno"><a class="line" href="class_body.html#a603b71ad2f5dbb76fd80fa9dff8be7f9"> 154</a></span> <span class="keywordtype">void</span> <a class="code hl_function" href="class_body.html#a603b71ad2f5dbb76fd80fa9dff8be7f9">SetLinearVelocity</a>(<a class="code hl_class" href="class_vec3.html">Vec3Arg</a> inLinearVelocity) { <a class="code hl_define" href="_issue_reporting_8h.html#aaf6b1df827e11b7ca5f6f8778bd8f8cd">JPH_ASSERT</a>(!IsStatic()); mMotionProperties->SetLinearVelocity(inLinearVelocity); }</div>
- <div class="line"><a id="l00155" name="l00155"></a><span class="lineno"> 155</span> </div>
- <div class="line"><a id="l00158" name="l00158"></a><span class="lineno"><a class="line" href="class_body.html#a5e1e46dac04eaf5fbaed87d6d781480d"> 158</a></span> <span class="keywordtype">void</span> <a class="code hl_function" href="class_body.html#a5e1e46dac04eaf5fbaed87d6d781480d">SetLinearVelocityClamped</a>(<a class="code hl_class" href="class_vec3.html">Vec3Arg</a> inLinearVelocity) { <a class="code hl_define" href="_issue_reporting_8h.html#aaf6b1df827e11b7ca5f6f8778bd8f8cd">JPH_ASSERT</a>(!IsStatic()); mMotionProperties->SetLinearVelocityClamped(inLinearVelocity); }</div>
- <div class="line"><a id="l00159" name="l00159"></a><span class="lineno"> 159</span> </div>
- <div class="line"><a id="l00161" name="l00161"></a><span class="lineno"><a class="line" href="class_body.html#adb1bb49db094ac2ef7c4951d07ba8417"> 161</a></span> <span class="keyword">inline</span> <a class="code hl_class" href="class_vec3.html">Vec3</a> <a class="code hl_function" href="class_body.html#adb1bb49db094ac2ef7c4951d07ba8417">GetAngularVelocity</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> !IsStatic()? mMotionProperties->GetAngularVelocity() : <a class="code hl_function" href="class_vec3.html#ad03c52ab27761bc1e64e33c47632ba51">Vec3::sZero</a>(); }</div>
- <div class="line"><a id="l00162" name="l00162"></a><span class="lineno"> 162</span> </div>
- <div class="line"><a id="l00165" name="l00165"></a><span class="lineno"><a class="line" href="class_body.html#a15d802457f106f2255a6401ea0aaee9f"> 165</a></span> <span class="keywordtype">void</span> <a class="code hl_function" href="class_body.html#a15d802457f106f2255a6401ea0aaee9f">SetAngularVelocity</a>(<a class="code hl_class" href="class_vec3.html">Vec3Arg</a> inAngularVelocity) { <a class="code hl_define" href="_issue_reporting_8h.html#aaf6b1df827e11b7ca5f6f8778bd8f8cd">JPH_ASSERT</a>(!IsStatic()); mMotionProperties->SetAngularVelocity(inAngularVelocity); }</div>
- <div class="line"><a id="l00166" name="l00166"></a><span class="lineno"> 166</span> </div>
- <div class="line"><a id="l00169" name="l00169"></a><span class="lineno"><a class="line" href="class_body.html#a9033b203f8511c35dca0dfc8ca1c25ca"> 169</a></span> <span class="keywordtype">void</span> <a class="code hl_function" href="class_body.html#a9033b203f8511c35dca0dfc8ca1c25ca">SetAngularVelocityClamped</a>(<a class="code hl_class" href="class_vec3.html">Vec3Arg</a> inAngularVelocity) { <a class="code hl_define" href="_issue_reporting_8h.html#aaf6b1df827e11b7ca5f6f8778bd8f8cd">JPH_ASSERT</a>(!IsStatic()); mMotionProperties->SetAngularVelocityClamped(inAngularVelocity); }</div>
- <div class="line"><a id="l00170" name="l00170"></a><span class="lineno"> 170</span> </div>
- <div class="line"><a id="l00172" name="l00172"></a><span class="lineno"><a class="line" href="class_body.html#a19540cae81c6338eb7023bb9c923b0d4"> 172</a></span> <span class="keyword">inline</span> <a class="code hl_class" href="class_vec3.html">Vec3</a> <a class="code hl_function" href="class_body.html#a19540cae81c6338eb7023bb9c923b0d4">GetPointVelocityCOM</a>(<a class="code hl_class" href="class_vec3.html">Vec3Arg</a> inPointRelativeToCOM)<span class="keyword"> const </span>{ <span class="keywordflow">return</span> !IsStatic()? mMotionProperties->GetPointVelocityCOM(inPointRelativeToCOM) : <a class="code hl_function" href="class_vec3.html#ad03c52ab27761bc1e64e33c47632ba51">Vec3::sZero</a>(); }</div>
- <div class="line"><a id="l00173" name="l00173"></a><span class="lineno"> 173</span> </div>
- <div class="line"><a id="l00175" name="l00175"></a><span class="lineno"><a class="line" href="class_body.html#a04705ba7fe0c4cfac8bda79a43421beb"> 175</a></span> <span class="keyword">inline</span> <a class="code hl_class" href="class_vec3.html">Vec3</a> <a class="code hl_function" href="class_body.html#a04705ba7fe0c4cfac8bda79a43421beb">GetPointVelocity</a>(<a class="code hl_class" href="class_vec3.html">RVec3Arg</a> inPoint)<span class="keyword"> const </span>{ <a class="code hl_define" href="_issue_reporting_8h.html#aaf6b1df827e11b7ca5f6f8778bd8f8cd">JPH_ASSERT</a>(BodyAccess::sCheckRights(BodyAccess::sPositionAccess(), BodyAccess::EAccess::Read)); <span class="keywordflow">return</span> GetPointVelocityCOM(<a class="code hl_class" href="class_vec3.html">Vec3</a>(inPoint - <a class="code hl_variable" href="class_soft_body_creation_settings.html#a9bf07b67b3fe8e6032485fa403fbca60">mPosition</a>)); }</div>
- <div class="line"><a id="l00176" name="l00176"></a><span class="lineno"> 176</span> </div>
- <div class="line"><a id="l00179" name="l00179"></a><span class="lineno"><a class="line" href="class_body.html#add8352d484a2805f114400159151185b"> 179</a></span> <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code hl_function" href="class_body.html#add8352d484a2805f114400159151185b">AddForce</a>(<a class="code hl_class" href="class_vec3.html">Vec3Arg</a> inForce) { <a class="code hl_define" href="_issue_reporting_8h.html#aaf6b1df827e11b7ca5f6f8778bd8f8cd">JPH_ASSERT</a>(IsDynamic()); (<a class="code hl_function" href="class_vec3.html#aea30fe731618ffa249ecdcba2c66ab4e">Vec3::sLoadFloat3Unsafe</a>(mMotionProperties->mForce) + inForce).StoreFloat3(&mMotionProperties->mForce); }</div>
- <div class="line"><a id="l00180" name="l00180"></a><span class="lineno"> 180</span> </div>
- <div class="line"><a id="l00183" name="l00183"></a><span class="lineno"> 183</span> <span class="keyword">inline</span> <span class="keywordtype">void</span> AddForce(<a class="code hl_class" href="class_vec3.html">Vec3Arg</a> inForce, <a class="code hl_class" href="class_vec3.html">RVec3Arg</a> inPosition);</div>
- <div class="line"><a id="l00184" name="l00184"></a><span class="lineno"> 184</span> </div>
- <div class="line"><a id="l00187" name="l00187"></a><span class="lineno"><a class="line" href="class_body.html#aec30d437f934327d261e8ebdc23a2c8c"> 187</a></span> <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code hl_function" href="class_body.html#aec30d437f934327d261e8ebdc23a2c8c">AddTorque</a>(<a class="code hl_class" href="class_vec3.html">Vec3Arg</a> inTorque) { <a class="code hl_define" href="_issue_reporting_8h.html#aaf6b1df827e11b7ca5f6f8778bd8f8cd">JPH_ASSERT</a>(IsDynamic()); (<a class="code hl_function" href="class_vec3.html#aea30fe731618ffa249ecdcba2c66ab4e">Vec3::sLoadFloat3Unsafe</a>(mMotionProperties->mTorque) + inTorque).StoreFloat3(&mMotionProperties->mTorque); }</div>
- <div class="line"><a id="l00188" name="l00188"></a><span class="lineno"> 188</span> </div>
- <div class="line"><a id="l00189" name="l00189"></a><span class="lineno"> 189</span> <span class="comment">// Get the total amount of force applied to the center of mass this time step (through AddForce calls). Note that it will reset to zero after PhysicsSystem::Update.</span></div>
- <div class="line"><a id="l00190" name="l00190"></a><span class="lineno"><a class="line" href="class_body.html#ad6c366c23710a8f103f6504cfccccc93"> 190</a></span> <span class="keyword">inline</span> <a class="code hl_class" href="class_vec3.html">Vec3</a> <a class="code hl_function" href="class_body.html#ad6c366c23710a8f103f6504cfccccc93">GetAccumulatedForce</a>()<span class="keyword"> const </span>{ <a class="code hl_define" href="_issue_reporting_8h.html#aaf6b1df827e11b7ca5f6f8778bd8f8cd">JPH_ASSERT</a>(IsDynamic()); <span class="keywordflow">return</span> mMotionProperties->GetAccumulatedForce(); }</div>
- <div class="line"><a id="l00191" name="l00191"></a><span class="lineno"> 191</span> </div>
- <div class="line"><a id="l00192" name="l00192"></a><span class="lineno"> 192</span> <span class="comment">// Get the total amount of torque applied to the center of mass this time step (through AddForce/AddTorque calls). Note that it will reset to zero after PhysicsSystem::Update.</span></div>
- <div class="line"><a id="l00193" name="l00193"></a><span class="lineno"><a class="line" href="class_body.html#a9294deeff168fbb210f24f25e063fb38"> 193</a></span> <span class="keyword">inline</span> <a class="code hl_class" href="class_vec3.html">Vec3</a> <a class="code hl_function" href="class_body.html#a9294deeff168fbb210f24f25e063fb38">GetAccumulatedTorque</a>()<span class="keyword"> const </span>{ <a class="code hl_define" href="_issue_reporting_8h.html#aaf6b1df827e11b7ca5f6f8778bd8f8cd">JPH_ASSERT</a>(IsDynamic()); <span class="keywordflow">return</span> mMotionProperties->GetAccumulatedTorque(); }</div>
- <div class="line"><a id="l00194" name="l00194"></a><span class="lineno"> 194</span> </div>
- <div class="line"><a id="l00195" name="l00195"></a><span class="lineno"> 195</span> <span class="comment">// Reset the total accumulated force, not that this will be done automatically after every time step.</span></div>
- <div class="line"><a id="l00196" name="l00196"></a><span class="lineno"><a class="line" href="class_body.html#a91ec38c6d564c65d7dde56f315a8eb31"> 196</a></span> JPH_INLINE <span class="keywordtype">void</span> <a class="code hl_function" href="class_body.html#a91ec38c6d564c65d7dde56f315a8eb31">ResetForce</a>() { <a class="code hl_define" href="_issue_reporting_8h.html#aaf6b1df827e11b7ca5f6f8778bd8f8cd">JPH_ASSERT</a>(IsDynamic()); <span class="keywordflow">return</span> mMotionProperties->ResetForce(); }</div>
- <div class="line"><a id="l00197" name="l00197"></a><span class="lineno"> 197</span> </div>
- <div class="line"><a id="l00198" name="l00198"></a><span class="lineno"> 198</span> <span class="comment">// Reset the total accumulated torque, not that this will be done automatically after every time step.</span></div>
- <div class="line"><a id="l00199" name="l00199"></a><span class="lineno"><a class="line" href="class_body.html#ab3872c4fdcf4046aac2565bbe14061e8"> 199</a></span> JPH_INLINE <span class="keywordtype">void</span> <a class="code hl_function" href="class_body.html#ab3872c4fdcf4046aac2565bbe14061e8">ResetTorque</a>() { <a class="code hl_define" href="_issue_reporting_8h.html#aaf6b1df827e11b7ca5f6f8778bd8f8cd">JPH_ASSERT</a>(IsDynamic()); <span class="keywordflow">return</span> mMotionProperties->ResetTorque(); }</div>
- <div class="line"><a id="l00200" name="l00200"></a><span class="lineno"> 200</span> </div>
- <div class="line"><a id="l00201" name="l00201"></a><span class="lineno"> 201</span> <span class="comment">// Reset the current velocity and accumulated force and torque.</span></div>
- <div class="line"><a id="l00202" name="l00202"></a><span class="lineno"><a class="line" href="class_body.html#ae5800f2a270af3dcf7b53c009b67ef95"> 202</a></span> JPH_INLINE <span class="keywordtype">void</span> <a class="code hl_function" href="class_body.html#ae5800f2a270af3dcf7b53c009b67ef95">ResetMotion</a>() { <a class="code hl_define" href="_issue_reporting_8h.html#aaf6b1df827e11b7ca5f6f8778bd8f8cd">JPH_ASSERT</a>(!IsStatic()); <span class="keywordflow">return</span> mMotionProperties->ResetMotion(); }</div>
- <div class="line"><a id="l00203" name="l00203"></a><span class="lineno"> 203</span> </div>
- <div class="line"><a id="l00205" name="l00205"></a><span class="lineno"> 205</span> <span class="keyword">inline</span> <a class="code hl_class" href="class_mat44.html">Mat44</a> GetInverseInertia() <span class="keyword">const</span>;</div>
- <div class="line"><a id="l00206" name="l00206"></a><span class="lineno"> 206</span> </div>
- <div class="line"><a id="l00209" name="l00209"></a><span class="lineno"> 209</span> <span class="keyword">inline</span> <span class="keywordtype">void</span> AddImpulse(<a class="code hl_class" href="class_vec3.html">Vec3Arg</a> inImpulse);</div>
- <div class="line"><a id="l00210" name="l00210"></a><span class="lineno"> 210</span> </div>
- <div class="line"><a id="l00213" name="l00213"></a><span class="lineno"> 213</span> <span class="keyword">inline</span> <span class="keywordtype">void</span> AddImpulse(<a class="code hl_class" href="class_vec3.html">Vec3Arg</a> inImpulse, <a class="code hl_class" href="class_vec3.html">RVec3Arg</a> inPosition);</div>
- <div class="line"><a id="l00214" name="l00214"></a><span class="lineno"> 214</span> </div>
- <div class="line"><a id="l00217" name="l00217"></a><span class="lineno"> 217</span> <span class="keyword">inline</span> <span class="keywordtype">void</span> AddAngularImpulse(<a class="code hl_class" href="class_vec3.html">Vec3Arg</a> inAngularImpulse);</div>
- <div class="line"><a id="l00218" name="l00218"></a><span class="lineno"> 218</span> </div>
- <div class="line"><a id="l00221" name="l00221"></a><span class="lineno"> 221</span> <span class="keywordtype">void</span> MoveKinematic(<a class="code hl_class" href="class_vec3.html">RVec3Arg</a> inTargetPosition, <a class="code hl_class" href="class_quat.html">QuatArg</a> inTargetRotation, <span class="keywordtype">float</span> inDeltaTime);</div>
- <div class="line"><a id="l00222" name="l00222"></a><span class="lineno"> 222</span> </div>
- <div class="line"><a id="l00229" name="l00229"></a><span class="lineno"> 229</span> <span class="keywordtype">void</span> GetSubmergedVolume(<a class="code hl_class" href="class_vec3.html">RVec3Arg</a> inSurfacePosition, <a class="code hl_class" href="class_vec3.html">Vec3Arg</a> inSurfaceNormal, <span class="keywordtype">float</span> &outTotalVolume, <span class="keywordtype">float</span> &outSubmergedVolume, <a class="code hl_class" href="class_vec3.html">Vec3</a> &outRelativeCenterOfBuoyancy) <span class="keyword">const</span>;</div>
- <div class="line"><a id="l00230" name="l00230"></a><span class="lineno"> 230</span> </div>
- <div class="line"><a id="l00242" name="l00242"></a><span class="lineno"> 242</span> <span class="keywordtype">bool</span> ApplyBuoyancyImpulse(<a class="code hl_class" href="class_vec3.html">RVec3Arg</a> inSurfacePosition, <a class="code hl_class" href="class_vec3.html">Vec3Arg</a> inSurfaceNormal, <span class="keywordtype">float</span> inBuoyancy, <span class="keywordtype">float</span> inLinearDrag, <span class="keywordtype">float</span> inAngularDrag, <a class="code hl_class" href="class_vec3.html">Vec3Arg</a> inFluidVelocity, <a class="code hl_class" href="class_vec3.html">Vec3Arg</a> inGravity, <span class="keywordtype">float</span> inDeltaTime);</div>
- <div class="line"><a id="l00243" name="l00243"></a><span class="lineno"> 243</span> </div>
- <div class="line"><a id="l00256" name="l00256"></a><span class="lineno"> 256</span> <span class="keywordtype">bool</span> ApplyBuoyancyImpulse(<span class="keywordtype">float</span> inTotalVolume, <span class="keywordtype">float</span> inSubmergedVolume, <a class="code hl_class" href="class_vec3.html">Vec3Arg</a> inRelativeCenterOfBuoyancy, <span class="keywordtype">float</span> inBuoyancy, <span class="keywordtype">float</span> inLinearDrag, <span class="keywordtype">float</span> inAngularDrag, <a class="code hl_class" href="class_vec3.html">Vec3Arg</a> inFluidVelocity, <a class="code hl_class" href="class_vec3.html">Vec3Arg</a> inGravity, <span class="keywordtype">float</span> inDeltaTime);</div>
- <div class="line"><a id="l00257" name="l00257"></a><span class="lineno"> 257</span> </div>
- <div class="line"><a id="l00259" name="l00259"></a><span class="lineno"><a class="line" href="class_body.html#a0d17f6ccde9ed070cdead2585ee87446"> 259</a></span> <span class="keyword">inline</span> <span class="keywordtype">bool</span> <a class="code hl_function" href="class_body.html#a0d17f6ccde9ed070cdead2585ee87446">IsInBroadPhase</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> (mFlags.load(memory_order_relaxed) & <a class="code hl_typedef" href="_core_8h.html#a115946cb5fc5879545e9ccea096a6031">uint8</a>(EFlags::IsInBroadPhase)) != 0; }</div>
- <div class="line"><a id="l00260" name="l00260"></a><span class="lineno"> 260</span> </div>
- <div class="line"><a id="l00262" name="l00262"></a><span class="lineno"><a class="line" href="class_body.html#a6e13ebc7a47c0170acc0c976f7724ea8"> 262</a></span> <span class="keyword">inline</span> <span class="keywordtype">bool</span> <a class="code hl_function" href="class_body.html#a6e13ebc7a47c0170acc0c976f7724ea8">IsCollisionCacheInvalid</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> (mFlags.load(memory_order_relaxed) & <a class="code hl_typedef" href="_core_8h.html#a115946cb5fc5879545e9ccea096a6031">uint8</a>(EFlags::InvalidateContactCache)) != 0; }</div>
- <div class="line"><a id="l00263" name="l00263"></a><span class="lineno"> 263</span> </div>
- <div class="line"><a id="l00265" name="l00265"></a><span class="lineno"><a class="line" href="class_body.html#a45950d9b3f8f28aafa13a81374912bf1"> 265</a></span> <span class="keyword">inline</span> <span class="keyword">const</span> <a class="code hl_class" href="class_shape.html">Shape</a> * <a class="code hl_function" href="class_body.html#a45950d9b3f8f28aafa13a81374912bf1">GetShape</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> mShape; }</div>
- <div class="line"><a id="l00266" name="l00266"></a><span class="lineno"> 266</span> </div>
- <div class="line"><a id="l00268" name="l00268"></a><span class="lineno"><a class="line" href="class_body.html#adce53bad2dc9f79804d6a01d435c06e0"> 268</a></span> <span class="keyword">inline</span> <a class="code hl_class" href="class_vec3.html">RVec3</a> <a class="code hl_function" href="class_body.html#adce53bad2dc9f79804d6a01d435c06e0">GetPosition</a>()<span class="keyword"> const </span>{ <a class="code hl_define" href="_issue_reporting_8h.html#aaf6b1df827e11b7ca5f6f8778bd8f8cd">JPH_ASSERT</a>(BodyAccess::sCheckRights(BodyAccess::sPositionAccess(), BodyAccess::EAccess::Read)); <span class="keywordflow">return</span> <a class="code hl_variable" href="class_soft_body_creation_settings.html#a9bf07b67b3fe8e6032485fa403fbca60">mPosition</a> - <a class="code hl_variable" href="class_soft_body_creation_settings.html#a80535dd782a3f7368cd6e74cd3ccda6a">mRotation</a> * mShape->GetCenterOfMass(); }</div>
- <div class="line"><a id="l00269" name="l00269"></a><span class="lineno"> 269</span> </div>
- <div class="line"><a id="l00271" name="l00271"></a><span class="lineno"><a class="line" href="class_body.html#aaee24bfb5e32e756f50113b9d1f45a2c"> 271</a></span> <span class="keyword">inline</span> <a class="code hl_class" href="class_quat.html">Quat</a> <a class="code hl_function" href="class_body.html#aaee24bfb5e32e756f50113b9d1f45a2c">GetRotation</a>()<span class="keyword"> const </span>{ <a class="code hl_define" href="_issue_reporting_8h.html#aaf6b1df827e11b7ca5f6f8778bd8f8cd">JPH_ASSERT</a>(BodyAccess::sCheckRights(BodyAccess::sPositionAccess(), BodyAccess::EAccess::Read)); <span class="keywordflow">return</span> <a class="code hl_variable" href="class_soft_body_creation_settings.html#a80535dd782a3f7368cd6e74cd3ccda6a">mRotation</a>; }</div>
- <div class="line"><a id="l00272" name="l00272"></a><span class="lineno"> 272</span> </div>
- <div class="line"><a id="l00274" name="l00274"></a><span class="lineno"> 274</span> <span class="keyword">inline</span> <a class="code hl_class" href="class_mat44.html">RMat44</a> GetWorldTransform() <span class="keyword">const</span>;</div>
- <div class="line"><a id="l00275" name="l00275"></a><span class="lineno"> 275</span> </div>
- <div class="line"><a id="l00277" name="l00277"></a><span class="lineno"><a class="line" href="class_body.html#a10bf9dd2b7c39a93568e8eb3ada8da2a"> 277</a></span> <span class="keyword">inline</span> <a class="code hl_class" href="class_vec3.html">RVec3</a> <a class="code hl_function" href="class_body.html#a10bf9dd2b7c39a93568e8eb3ada8da2a">GetCenterOfMassPosition</a>()<span class="keyword"> const </span>{ <a class="code hl_define" href="_issue_reporting_8h.html#aaf6b1df827e11b7ca5f6f8778bd8f8cd">JPH_ASSERT</a>(BodyAccess::sCheckRights(BodyAccess::sPositionAccess(), BodyAccess::EAccess::Read)); <span class="keywordflow">return</span> <a class="code hl_variable" href="class_soft_body_creation_settings.html#a9bf07b67b3fe8e6032485fa403fbca60">mPosition</a>; }</div>
- <div class="line"><a id="l00278" name="l00278"></a><span class="lineno"> 278</span> </div>
- <div class="line"><a id="l00280" name="l00280"></a><span class="lineno"> 280</span> <span class="keyword">inline</span> <a class="code hl_class" href="class_mat44.html">RMat44</a> GetCenterOfMassTransform() <span class="keyword">const</span>;</div>
- <div class="line"><a id="l00281" name="l00281"></a><span class="lineno"> 281</span> </div>
- <div class="line"><a id="l00283" name="l00283"></a><span class="lineno"> 283</span> <span class="keyword">inline</span> <a class="code hl_class" href="class_mat44.html">RMat44</a> GetInverseCenterOfMassTransform() <span class="keyword">const</span>;</div>
- <div class="line"><a id="l00284" name="l00284"></a><span class="lineno"> 284</span> </div>
- <div class="line"><a id="l00286" name="l00286"></a><span class="lineno"><a class="line" href="class_body.html#a2be34f0150bb5f520f21330ee6b7cb41"> 286</a></span> <span class="keyword">inline</span> <span class="keyword">const</span> <a class="code hl_class" href="class_a_a_box.html">AABox</a> & <a class="code hl_function" href="class_body.html#a2be34f0150bb5f520f21330ee6b7cb41">GetWorldSpaceBounds</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> mBounds; }</div>
- <div class="line"><a id="l00287" name="l00287"></a><span class="lineno"> 287</span> </div>
- <div class="line"><a id="l00288" name="l00288"></a><span class="lineno"> 288</span><span class="preprocessor">#ifdef JPH_ENABLE_ASSERTS</span></div>
- <div class="line"><a id="l00300" name="l00300"></a><span class="lineno"> 300</span> <span class="keyword">inline</span> <span class="keywordtype">void</span> ValidateCachedBounds()<span class="keyword"> const</span></div>
- <div class="line"><a id="l00301" name="l00301"></a><span class="lineno"> 301</span><span class="keyword"> </span>{</div>
- <div class="line"><a id="l00302" name="l00302"></a><span class="lineno"> 302</span> <a class="code hl_class" href="class_a_a_box.html">AABox</a> actual_body_bounds = mShape->GetWorldSpaceBounds(GetCenterOfMassTransform(), <a class="code hl_function" href="class_vec3.html#a6bc0731860c69d4e3151981d2dc24e93">Vec3::sOne</a>());</div>
- <div class="line"><a id="l00303" name="l00303"></a><span class="lineno"> 303</span> <a class="code hl_define" href="_issue_reporting_8h.html#aaf6b1df827e11b7ca5f6f8778bd8f8cd">JPH_ASSERT</a>(actual_body_bounds == mBounds, <span class="stringliteral">"Mismatch between cached bounding box and actual bounding box"</span>);</div>
- <div class="line"><a id="l00304" name="l00304"></a><span class="lineno"> 304</span> }</div>
- <div class="line"><a id="l00305" name="l00305"></a><span class="lineno"> 305</span><span class="preprocessor">#endif </span><span class="comment">// JPH_ENABLE_ASSERTS</span></div>
- <div class="line"><a id="l00306" name="l00306"></a><span class="lineno"> 306</span> </div>
- <div class="line"><a id="l00308" name="l00308"></a><span class="lineno"><a class="line" href="class_body.html#a0d39987255227c4221fcea66cb1fc041"> 308</a></span> <span class="keyword">const</span> <a class="code hl_class" href="class_motion_properties.html">MotionProperties</a> *<a class="code hl_function" href="class_body.html#a0d39987255227c4221fcea66cb1fc041">GetMotionProperties</a>()<span class="keyword"> const </span>{ <a class="code hl_define" href="_issue_reporting_8h.html#aaf6b1df827e11b7ca5f6f8778bd8f8cd">JPH_ASSERT</a>(!IsStatic()); <span class="keywordflow">return</span> mMotionProperties; }</div>
- <div class="line"><a id="l00309" name="l00309"></a><span class="lineno"><a class="line" href="class_body.html#aa9e634771e2ed719757a71cb9751b353"> 309</a></span> <a class="code hl_class" href="class_motion_properties.html">MotionProperties</a> * <a class="code hl_function" href="class_body.html#aa9e634771e2ed719757a71cb9751b353">GetMotionProperties</a>() { <a class="code hl_define" href="_issue_reporting_8h.html#aaf6b1df827e11b7ca5f6f8778bd8f8cd">JPH_ASSERT</a>(!IsStatic()); <span class="keywordflow">return</span> mMotionProperties; }</div>
- <div class="line"><a id="l00310" name="l00310"></a><span class="lineno"> 310</span> </div>
- <div class="line"><a id="l00312" name="l00312"></a><span class="lineno"><a class="line" href="class_body.html#abe012219037c12313c7ef1116ee74865"> 312</a></span> <span class="keyword">const</span> <a class="code hl_class" href="class_motion_properties.html">MotionProperties</a> *<a class="code hl_function" href="class_body.html#abe012219037c12313c7ef1116ee74865">GetMotionPropertiesUnchecked</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> mMotionProperties; }</div>
- <div class="line"><a id="l00313" name="l00313"></a><span class="lineno"><a class="line" href="class_body.html#ad0cc27e6920daa31fc9e42a7824d2d02"> 313</a></span> <a class="code hl_class" href="class_motion_properties.html">MotionProperties</a> * <a class="code hl_function" href="class_body.html#ad0cc27e6920daa31fc9e42a7824d2d02">GetMotionPropertiesUnchecked</a>() { <span class="keywordflow">return</span> mMotionProperties; }</div>
- <div class="line"><a id="l00314" name="l00314"></a><span class="lineno"> 314</span> </div>
- <div class="line"><a id="l00316" name="l00316"></a><span class="lineno"><a class="line" href="class_body.html#a48b9455aae90fe4d73302389f6c7d9b5"> 316</a></span> <a class="code hl_typedef" href="_core_8h.html#a60e8696a4678cd348e991a1f172e53f7">uint64</a> <a class="code hl_function" href="class_body.html#a48b9455aae90fe4d73302389f6c7d9b5">GetUserData</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> <a class="code hl_variable" href="class_soft_body_creation_settings.html#adbd6f1e62fecded89813ddab4e233e73">mUserData</a>; }</div>
- <div class="line"><a id="l00317" name="l00317"></a><span class="lineno"><a class="line" href="class_body.html#a3fff2f601caed12dd89c6d7fcb04dad6"> 317</a></span> <span class="keywordtype">void</span> <a class="code hl_function" href="class_body.html#a3fff2f601caed12dd89c6d7fcb04dad6">SetUserData</a>(<a class="code hl_typedef" href="_core_8h.html#a60e8696a4678cd348e991a1f172e53f7">uint64</a> inUserData) { <a class="code hl_variable" href="class_soft_body_creation_settings.html#adbd6f1e62fecded89813ddab4e233e73">mUserData</a> = inUserData; }</div>
- <div class="line"><a id="l00318" name="l00318"></a><span class="lineno"> 318</span> </div>
- <div class="line"><a id="l00320" name="l00320"></a><span class="lineno"> 320</span> <span class="keyword">inline</span> <a class="code hl_class" href="class_vec3.html">Vec3</a> GetWorldSpaceSurfaceNormal(<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">RVec3Arg</a> inPosition) <span class="keyword">const</span>;</div>
- <div class="line"><a id="l00321" name="l00321"></a><span class="lineno"> 321</span> </div>
- <div class="line"><a id="l00323" name="l00323"></a><span class="lineno"><a class="line" href="class_body.html#ab29a0e2490187a1e08d21c4e9235f2a3"> 323</a></span> <span class="keyword">inline</span> <a class="code hl_class" href="class_transformed_shape.html">TransformedShape</a> <a class="code hl_function" href="class_body.html#ab29a0e2490187a1e08d21c4e9235f2a3">GetTransformedShape</a>()<span class="keyword"> const </span>{ <a class="code hl_define" href="_issue_reporting_8h.html#aaf6b1df827e11b7ca5f6f8778bd8f8cd">JPH_ASSERT</a>(BodyAccess::sCheckRights(BodyAccess::sPositionAccess(), BodyAccess::EAccess::Read)); <span class="keywordflow">return</span> <a class="code hl_class" href="class_transformed_shape.html">TransformedShape</a>(<a class="code hl_variable" href="class_soft_body_creation_settings.html#a9bf07b67b3fe8e6032485fa403fbca60">mPosition</a>, <a class="code hl_variable" href="class_soft_body_creation_settings.html#a80535dd782a3f7368cd6e74cd3ccda6a">mRotation</a>, mShape, mID); }</div>
- <div class="line"><a id="l00324" name="l00324"></a><span class="lineno"> 324</span> </div>
- <div class="line"><a id="l00326" name="l00326"></a><span class="lineno"> 326</span> <a class="code hl_class" href="class_body_creation_settings.html">BodyCreationSettings</a> GetBodyCreationSettings() <span class="keyword">const</span>;</div>
- <div class="line"><a id="l00327" name="l00327"></a><span class="lineno"> 327</span> </div>
- <div class="line"><a id="l00329" name="l00329"></a><span class="lineno"> 329</span> <a class="code hl_class" href="class_soft_body_creation_settings.html">SoftBodyCreationSettings</a> GetSoftBodyCreationSettings() <span class="keyword">const</span>;</div>
- <div class="line"><a id="l00330" name="l00330"></a><span class="lineno"> 330</span> </div>
- <div class="line"><a id="l00332" name="l00332"></a><span class="lineno"><a class="line" href="class_body.html#a8dd9a53f984efe2ced2f73ee084f636a"> 332</a></span> <span class="keyword">static</span> <a class="code hl_class" href="class_body.html">Body</a> <a class="code hl_variable" href="class_body.html#a8dd9a53f984efe2ced2f73ee084f636a">sFixedToWorld</a>;</div>
- <div class="line"><a id="l00333" name="l00333"></a><span class="lineno"> 333</span> </div>
- <div class="line"><a id="l00336" name="l00336"></a><span class="lineno"> 336</span> </div>
- <div class="line"><a id="l00339" name="l00339"></a><span class="lineno"> 339</span> <span class="keyword">static</span> <span class="keyword">inline</span> <span class="keywordtype">bool</span> sFindCollidingPairsCanCollide(<span class="keyword">const</span> <a class="code hl_class" href="class_body.html">Body</a> &inBody1, <span class="keyword">const</span> <a class="code hl_class" href="class_body.html">Body</a> &inBody2);</div>
- <div class="line"><a id="l00340" name="l00340"></a><span class="lineno"> 340</span> </div>
- <div class="line"><a id="l00342" name="l00342"></a><span class="lineno"><a class="line" href="class_body.html#af98f831df76bd7e54eeb92d79fa3c8cd"> 342</a></span> <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code hl_function" href="class_body.html#af98f831df76bd7e54eeb92d79fa3c8cd">AddPositionStep</a>(<a class="code hl_class" href="class_vec3.html">Vec3Arg</a> inLinearVelocityTimesDeltaTime) { <a class="code hl_define" href="_issue_reporting_8h.html#aaf6b1df827e11b7ca5f6f8778bd8f8cd">JPH_ASSERT</a>(IsRigidBody()); <a class="code hl_define" href="_issue_reporting_8h.html#aaf6b1df827e11b7ca5f6f8778bd8f8cd">JPH_ASSERT</a>(BodyAccess::sCheckRights(BodyAccess::sPositionAccess(), BodyAccess::EAccess::ReadWrite)); <a class="code hl_variable" href="class_soft_body_creation_settings.html#a9bf07b67b3fe8e6032485fa403fbca60">mPosition</a> += mMotionProperties->LockTranslation(inLinearVelocityTimesDeltaTime); <a class="code hl_define" href="_issue_reporting_8h.html#aaf6b1df827e11b7ca5f6f8778bd8f8cd">JPH_ASSERT</a>(!<a class="code hl_variable" href="class_soft_body_creation_settings.html#a9bf07b67b3fe8e6032485fa403fbca60">mPosition</a>.<a class="code hl_function" href="class_vec3.html#ae2ae38edbb4672657e92bf1c67bb7bea">IsNaN</a>()); }</div>
- <div class="line"><a id="l00343" name="l00343"></a><span class="lineno"><a class="line" href="class_body.html#a3c0a6198eb89412439dfcaef56eadade"> 343</a></span> <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code hl_function" href="class_body.html#a3c0a6198eb89412439dfcaef56eadade">SubPositionStep</a>(<a class="code hl_class" href="class_vec3.html">Vec3Arg</a> inLinearVelocityTimesDeltaTime) { <a class="code hl_define" href="_issue_reporting_8h.html#aaf6b1df827e11b7ca5f6f8778bd8f8cd">JPH_ASSERT</a>(IsRigidBody()); <a class="code hl_define" href="_issue_reporting_8h.html#aaf6b1df827e11b7ca5f6f8778bd8f8cd">JPH_ASSERT</a>(BodyAccess::sCheckRights(BodyAccess::sPositionAccess(), BodyAccess::EAccess::ReadWrite)); <a class="code hl_variable" href="class_soft_body_creation_settings.html#a9bf07b67b3fe8e6032485fa403fbca60">mPosition</a> -= mMotionProperties->LockTranslation(inLinearVelocityTimesDeltaTime); <a class="code hl_define" href="_issue_reporting_8h.html#aaf6b1df827e11b7ca5f6f8778bd8f8cd">JPH_ASSERT</a>(!<a class="code hl_variable" href="class_soft_body_creation_settings.html#a9bf07b67b3fe8e6032485fa403fbca60">mPosition</a>.<a class="code hl_function" href="class_vec3.html#ae2ae38edbb4672657e92bf1c67bb7bea">IsNaN</a>()); }</div>
- <div class="line"><a id="l00344" name="l00344"></a><span class="lineno"> 344</span> </div>
- <div class="line"><a id="l00346" name="l00346"></a><span class="lineno"> 346</span> <span class="keyword">inline</span> <span class="keywordtype">void</span> AddRotationStep(<a class="code hl_class" href="class_vec3.html">Vec3Arg</a> inAngularVelocityTimesDeltaTime);</div>
- <div class="line"><a id="l00347" name="l00347"></a><span class="lineno"> 347</span> <span class="keyword">inline</span> <span class="keywordtype">void</span> SubRotationStep(<a class="code hl_class" href="class_vec3.html">Vec3Arg</a> inAngularVelocityTimesDeltaTime);</div>
- <div class="line"><a id="l00348" name="l00348"></a><span class="lineno"> 348</span> </div>
- <div class="line"><a id="l00350" name="l00350"></a><span class="lineno"><a class="line" href="class_body.html#aa600fe2037b7ded7a84a8bf479213ebc"> 350</a></span> <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code hl_function" href="class_body.html#aa600fe2037b7ded7a84a8bf479213ebc">SetInBroadPhaseInternal</a>(<span class="keywordtype">bool</span> inInBroadPhase) { <span class="keywordflow">if</span> (inInBroadPhase) mFlags.fetch_or(<a class="code hl_typedef" href="_core_8h.html#a115946cb5fc5879545e9ccea096a6031">uint8</a>(EFlags::IsInBroadPhase), memory_order_relaxed); <span class="keywordflow">else</span> mFlags.fetch_and(<a class="code hl_typedef" href="_core_8h.html#a115946cb5fc5879545e9ccea096a6031">uint8</a>(~<a class="code hl_typedef" href="_core_8h.html#a115946cb5fc5879545e9ccea096a6031">uint8</a>(EFlags::IsInBroadPhase)), memory_order_relaxed); }</div>
- <div class="line"><a id="l00351" name="l00351"></a><span class="lineno"> 351</span> </div>
- <div class="line"><a id="l00353" name="l00353"></a><span class="lineno"><a class="line" href="class_body.html#a469ea05f3200587491082a0f11f54fc6"> 353</a></span> <span class="keyword">inline</span> <span class="keywordtype">bool</span> <a class="code hl_function" href="class_body.html#a469ea05f3200587491082a0f11f54fc6">InvalidateContactCacheInternal</a>() { <span class="keywordflow">return</span> (mFlags.fetch_or(<a class="code hl_typedef" href="_core_8h.html#a115946cb5fc5879545e9ccea096a6031">uint8</a>(EFlags::InvalidateContactCache), memory_order_relaxed) & <a class="code hl_typedef" href="_core_8h.html#a115946cb5fc5879545e9ccea096a6031">uint8</a>(EFlags::InvalidateContactCache)) == 0; }</div>
- <div class="line"><a id="l00354" name="l00354"></a><span class="lineno"> 354</span> </div>
- <div class="line"><a id="l00356" name="l00356"></a><span class="lineno"><a class="line" href="class_body.html#aed0987087ec4b3c3571c6a6a339361ad"> 356</a></span> <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code hl_function" href="class_body.html#aed0987087ec4b3c3571c6a6a339361ad">ValidateContactCacheInternal</a>() { <a class="code hl_define" href="_issue_reporting_8h.html#a9189784257d6995aa3ecbafbf8bc5bd5">JPH_IF_ENABLE_ASSERTS</a>(<a class="code hl_typedef" href="_core_8h.html#a115946cb5fc5879545e9ccea096a6031">uint8</a> old_val = ) mFlags.fetch_and(<a class="code hl_typedef" href="_core_8h.html#a115946cb5fc5879545e9ccea096a6031">uint8</a>(~<a class="code hl_typedef" href="_core_8h.html#a115946cb5fc5879545e9ccea096a6031">uint8</a>(EFlags::InvalidateContactCache)), memory_order_relaxed); <a class="code hl_define" href="_issue_reporting_8h.html#aaf6b1df827e11b7ca5f6f8778bd8f8cd">JPH_ASSERT</a>((old_val & <a class="code hl_typedef" href="_core_8h.html#a115946cb5fc5879545e9ccea096a6031">uint8</a>(EFlags::InvalidateContactCache)) != 0); }</div>
- <div class="line"><a id="l00357" name="l00357"></a><span class="lineno"> 357</span> </div>
- <div class="line"><a id="l00359" name="l00359"></a><span class="lineno"> 359</span> <span class="keywordtype">void</span> CalculateWorldSpaceBoundsInternal();</div>
- <div class="line"><a id="l00360" name="l00360"></a><span class="lineno"> 360</span> </div>
- <div class="line"><a id="l00362" name="l00362"></a><span class="lineno"> 362</span> <span class="keywordtype">void</span> SetPositionAndRotationInternal(<a class="code hl_class" href="class_vec3.html">RVec3Arg</a> inPosition, <a class="code hl_class" href="class_quat.html">QuatArg</a> inRotation, <span class="keywordtype">bool</span> inResetSleepTimer = <span class="keyword">true</span>);</div>
- <div class="line"><a id="l00363" name="l00363"></a><span class="lineno"> 363</span> </div>
- <div class="line"><a id="l00367" name="l00367"></a><span class="lineno"> 367</span> <span class="keywordtype">void</span> UpdateCenterOfMassInternal(<a class="code hl_class" href="class_vec3.html">Vec3Arg</a> inPreviousCenterOfMass, <span class="keywordtype">bool</span> inUpdateMassProperties);</div>
- <div class="line"><a id="l00368" name="l00368"></a><span class="lineno"> 368</span> </div>
- <div class="line"><a id="l00372" name="l00372"></a><span class="lineno"> 372</span> <span class="keywordtype">void</span> SetShapeInternal(<span class="keyword">const</span> <a class="code hl_class" href="class_shape.html">Shape</a> *inShape, <span class="keywordtype">bool</span> inUpdateMassProperties);</div>
- <div class="line"><a id="l00373" name="l00373"></a><span class="lineno"> 373</span> </div>
- <div class="line"><a id="l00374" name="l00374"></a><span class="lineno"> 374</span> <span class="comment">// TSAN detects a race between BodyManager::AddBodyToActiveBodies coming from PhysicsSystem::ProcessBodyPair and Body::GetIndexInActiveBodiesInternal coming from PhysicsSystem::ProcessBodyPair.</span></div>
- <div class="line"><a id="l00375" name="l00375"></a><span class="lineno"> 375</span> <span class="comment">// When PhysicsSystem::ProcessBodyPair activates a body, it updates mIndexInActiveBodies and then updates BodyManager::mNumActiveBodies with release semantics. PhysicsSystem::ProcessBodyPair will</span></div>
- <div class="line"><a id="l00376" name="l00376"></a><span class="lineno"> 376</span> <span class="comment">// then finish its loop of active bodies and at the end of the loop it will read BodyManager::mNumActiveBodies with acquire semantics to see if any bodies were activated during the loop.</span></div>
- <div class="line"><a id="l00377" name="l00377"></a><span class="lineno"> 377</span> <span class="comment">// This means that changes to mIndexInActiveBodies must be visible to the thread, so TSANs report must be a false positive. We suppress the warning here.</span></div>
- <div class="line"><a id="l00378" name="l00378"></a><span class="lineno"> 378</span> <a class="code hl_define" href="_core_8h.html#a727ca2a69e72fed5f1cf97b0f283bb52">JPH_TSAN_NO_SANITIZE</a></div>
- <div class="line"><a id="l00380" name="l00380"></a><span class="lineno"><a class="line" href="class_body.html#a5ffba4cea6db6696fff3db87999bdf42"> 380</a></span> <a class="code hl_typedef" href="_core_8h.html#a8f95e75e58492e87412191fabadd8ca8">uint32</a> <a class="code hl_function" href="class_body.html#a5ffba4cea6db6696fff3db87999bdf42">GetIndexInActiveBodiesInternal</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> mMotionProperties != <span class="keyword">nullptr</span>? mMotionProperties->mIndexInActiveBodies : cInactiveIndex; }</div>
- <div class="line"><a id="l00381" name="l00381"></a><span class="lineno"> 381</span> </div>
- <div class="line"><a id="l00383" name="l00383"></a><span class="lineno"> 383</span> <a class="code hl_enumeration" href="_motion_properties_8h.html#a97f69c4b07965ef22ebe08465e1c3db0">ECanSleep</a> UpdateSleepStateInternal(<span class="keywordtype">float</span> inDeltaTime, <span class="keywordtype">float</span> inMaxMovement, <span class="keywordtype">float</span> inTimeBeforeSleep);</div>
- <div class="line"><a id="l00384" name="l00384"></a><span class="lineno"> 384</span> </div>
- <div class="line"><a id="l00386" name="l00386"></a><span class="lineno"> 386</span> <span class="keywordtype">void</span> SaveState(<a class="code hl_class" href="class_state_recorder.html">StateRecorder</a> &inStream) <span class="keyword">const</span>;</div>
- <div class="line"><a id="l00387" name="l00387"></a><span class="lineno"> 387</span> </div>
- <div class="line"><a id="l00389" name="l00389"></a><span class="lineno"> 389</span> <span class="keywordtype">void</span> RestoreState(<a class="code hl_class" href="class_state_recorder.html">StateRecorder</a> &inStream);</div>
- <div class="line"><a id="l00390" name="l00390"></a><span class="lineno"> 390</span> </div>
- <div class="line"><a id="l00392" name="l00392"></a><span class="lineno"> 392</span> </div>
- <div class="line"><a id="l00393" name="l00393"></a><span class="lineno"><a class="line" href="class_body.html#a636e301ffa9150e9df74895863394ee4"> 393</a></span> <span class="keyword">static</span> <span class="keyword">constexpr</span> <a class="code hl_typedef" href="_core_8h.html#a8f95e75e58492e87412191fabadd8ca8">uint32</a> cInactiveIndex = <a class="code hl_variable" href="class_motion_properties.html#aacb0f4e9211a3b16ae353726f0b2895b">MotionProperties::cInactiveIndex</a>; </div>
- <div class="line"><a id="l00394" name="l00394"></a><span class="lineno"> 394</span> </div>
- <div class="line"><a id="l00395" name="l00395"></a><span class="lineno"> 395</span><span class="keyword">private</span>:</div>
- <div class="line"><a id="l00396" name="l00396"></a><span class="lineno"><a class="line" href="class_body.html#a58dc89a83d8c4dc28bd5f6e8c0ed35c8"> 396</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="l00397" name="l00397"></a><span class="lineno"><a class="line" href="class_body.html#a9e3350c41c89f980a2198b359ba62857"> 397</a></span> <span class="keyword">friend</span> <span class="keyword">class </span>BodyWithMotionProperties;</div>
- <div class="line"><a id="l00398" name="l00398"></a><span class="lineno"><a class="line" href="class_body.html#adce65bfd20d74b92a90a53883a218dee"> 398</a></span> <span class="keyword">friend</span> <span class="keyword">class </span>SoftBodyWithMotionPropertiesAndShape;</div>
- <div class="line"><a id="l00399" name="l00399"></a><span class="lineno"> 399</span> </div>
- <div class="line"><a id="l00400" name="l00400"></a><span class="lineno"> 400</span> <a class="code hl_class" href="class_body.html">Body</a>() = <span class="keywordflow">default</span>; </div>
- <div class="line"><a id="l00401" name="l00401"></a><span class="lineno"> 401</span> </div>
- <div class="line"><a id="l00402" name="l00402"></a><span class="lineno"> 402</span> <span class="keyword">explicit</span> <a class="code hl_class" href="class_body.html">Body</a>(<span class="keywordtype">bool</span>); </div>
- <div class="line"><a id="l00403" name="l00403"></a><span class="lineno"> 403</span> </div>
- <div class="line"><a id="l00404" name="l00404"></a><span class="lineno"> 404</span> <a class="code hl_class" href="class_body.html">~Body</a>() { <a class="code hl_define" href="_issue_reporting_8h.html#aaf6b1df827e11b7ca5f6f8778bd8f8cd">JPH_ASSERT</a>(mMotionProperties == <span class="keyword">nullptr</span>); } </div>
- <div class="line"><a id="l00405" name="l00405"></a><span class="lineno"> 405</span> </div>
- <div class="line"><a id="l00406" name="l00406"></a><span class="lineno"> 406</span> <span class="keyword">inline</span> <span class="keywordtype">void</span> GetSleepTestPoints(<a class="code hl_class" href="class_vec3.html">RVec3</a> *outPoints) <span class="keyword">const</span>; </div>
- <div class="line"><a id="l00407" name="l00407"></a><span class="lineno"> 407</span> </div>
- <div class="line"><a id="l00408" name="l00408"></a><span class="lineno"> 408</span> <span class="keyword">enum class</span> EFlags : <a class="code hl_typedef" href="_core_8h.html#a115946cb5fc5879545e9ccea096a6031">uint8</a></div>
- <div class="line"><a id="l00409" name="l00409"></a><span class="lineno"> 409</span> {</div>
- <div class="line"><a id="l00410" name="l00410"></a><span class="lineno"> 410</span> IsSensor = 1 << 0, </div>
- <div class="line"><a id="l00411" name="l00411"></a><span class="lineno"> 411</span> CollideKinematicVsNonDynamic = 1 << 1, </div>
- <div class="line"><a id="l00412" name="l00412"></a><span class="lineno"> 412</span> IsInBroadPhase = 1 << 2, </div>
- <div class="line"><a id="l00413" name="l00413"></a><span class="lineno"> 413</span> InvalidateContactCache = 1 << 3, </div>
- <div class="line"><a id="l00414" name="l00414"></a><span class="lineno"> 414</span> UseManifoldReduction = 1 << 4, </div>
- <div class="line"><a id="l00415" name="l00415"></a><span class="lineno"> 415</span> ApplyGyroscopicForce = 1 << 5, </div>
- <div class="line"><a id="l00416" name="l00416"></a><span class="lineno"> 416</span> EnhancedInternalEdgeRemoval = 1 << 6, </div>
- <div class="line"><a id="l00417" name="l00417"></a><span class="lineno"> 417</span> };</div>
- <div class="line"><a id="l00418" name="l00418"></a><span class="lineno"> 418</span> </div>
- <div class="line"><a id="l00419" name="l00419"></a><span class="lineno"> 419</span> <span class="comment">// 16 byte aligned</span></div>
- <div class="line"><a id="l00420" name="l00420"></a><span class="lineno"> 420</span> <a class="code hl_class" href="class_vec3.html">RVec3</a> mPosition; </div>
- <div class="line"><a id="l00421" name="l00421"></a><span class="lineno"> 421</span> <a class="code hl_class" href="class_quat.html">Quat</a> mRotation; </div>
- <div class="line"><a id="l00422" name="l00422"></a><span class="lineno"> 422</span> <a class="code hl_class" href="class_a_a_box.html">AABox</a> mBounds; </div>
- <div class="line"><a id="l00423" name="l00423"></a><span class="lineno"> 423</span> </div>
- <div class="line"><a id="l00424" name="l00424"></a><span class="lineno"> 424</span> <span class="comment">// 8 byte aligned</span></div>
- <div class="line"><a id="l00425" name="l00425"></a><span class="lineno"> 425</span> <a class="code hl_class" href="class_ref_const.html">RefConst<Shape></a> mShape; </div>
- <div class="line"><a id="l00426" name="l00426"></a><span class="lineno"> 426</span> <a class="code hl_class" href="class_motion_properties.html">MotionProperties</a> * mMotionProperties = <span class="keyword">nullptr</span>; </div>
- <div class="line"><a id="l00427" name="l00427"></a><span class="lineno"> 427</span> <a class="code hl_typedef" href="_core_8h.html#a60e8696a4678cd348e991a1f172e53f7">uint64</a> mUserData = 0; </div>
- <div class="line"><a id="l00428" name="l00428"></a><span class="lineno"> 428</span> <a class="code hl_class" href="class_collision_group.html">CollisionGroup</a> mCollisionGroup; </div>
- <div class="line"><a id="l00429" name="l00429"></a><span class="lineno"> 429</span> </div>
- <div class="line"><a id="l00430" name="l00430"></a><span class="lineno"> 430</span> <span class="comment">// 4 byte aligned</span></div>
- <div class="line"><a id="l00431" name="l00431"></a><span class="lineno"> 431</span> <span class="keywordtype">float</span> mFriction; </div>
- <div class="line"><a id="l00432" name="l00432"></a><span class="lineno"> 432</span> <span class="keywordtype">float</span> mRestitution; </div>
- <div class="line"><a id="l00433" name="l00433"></a><span class="lineno"> 433</span> <a class="code hl_class" href="class_body_i_d.html">BodyID</a> mID; </div>
- <div class="line"><a id="l00434" name="l00434"></a><span class="lineno"> 434</span> </div>
- <div class="line"><a id="l00435" name="l00435"></a><span class="lineno"> 435</span> <span class="comment">// 2 or 4 bytes aligned</span></div>
- <div class="line"><a id="l00436" name="l00436"></a><span class="lineno"> 436</span> <a class="code hl_typedef" href="_object_layer_8h.html#a960eb396e2803ddad87bf25e0dcb4470">ObjectLayer</a> mObjectLayer; </div>
- <div class="line"><a id="l00437" name="l00437"></a><span class="lineno"> 437</span> </div>
- <div class="line"><a id="l00438" name="l00438"></a><span class="lineno"> 438</span> <span class="comment">// 1 byte aligned</span></div>
- <div class="line"><a id="l00439" name="l00439"></a><span class="lineno"> 439</span> <a class="code hl_enumeration" href="_body_type_8h.html#ab494e27db6c263f9e31556ad388eb666">EBodyType</a> mBodyType; </div>
- <div class="line"><a id="l00440" name="l00440"></a><span class="lineno"> 440</span> <a class="code hl_class" href="class_broad_phase_layer.html">BroadPhaseLayer</a> mBroadPhaseLayer; </div>
- <div class="line"><a id="l00441" name="l00441"></a><span class="lineno"> 441</span> <a class="code hl_enumeration" href="_motion_type_8h.html#a328245ddbb758681fad3c44c9d488fd8">EMotionType</a> mMotionType; </div>
- <div class="line"><a id="l00442" name="l00442"></a><span class="lineno"> 442</span> atomic<uint8> mFlags = 0; </div>
- <div class="line"><a id="l00443" name="l00443"></a><span class="lineno"> 443</span> </div>
- <div class="line"><a id="l00444" name="l00444"></a><span class="lineno"> 444</span> <span class="comment">// 122 bytes up to here (64-bit mode, single precision, 16-bit ObjectLayer)</span></div>
- <div class="line"><a id="l00445" name="l00445"></a><span class="lineno"> 445</span>};</div>
- </div>
- <div class="line"><a id="l00446" name="l00446"></a><span class="lineno"> 446</span> </div>
- <div class="line"><a id="l00447" name="l00447"></a><span class="lineno"> 447</span><span class="keyword">static_assert</span>(<span class="keyword">sizeof</span>(<span class="keywordtype">void</span> *) != 8 || <a class="code hl_define" href="_real_8h.html#ac6a49178acb5c5ecdbab2424aca0e474">JPH_RVECTOR_ALIGNMENT</a> < 16 || <span class="keyword">sizeof</span>(<a class="code hl_class" href="class_body.html">Body</a>) == <a class="code hl_define" href="_core_8h.html#aa004a0f7df4c0472bb33a149fce1f21c">JPH_IF_SINGLE_PRECISION_ELSE</a>(128, 160), <span class="stringliteral">"Body size is incorrect"</span>);</div>
- <div class="line"><a id="l00448" name="l00448"></a><span class="lineno"> 448</span><span class="keyword">static_assert</span>(<span class="keyword">alignof</span>(<a class="code hl_class" href="class_body.html">Body</a>) == max(JPH_VECTOR_ALIGNMENT, <a class="code hl_define" href="_real_8h.html#ac6a49178acb5c5ecdbab2424aca0e474">JPH_RVECTOR_ALIGNMENT</a>), <span class="stringliteral">"Body should properly align"</span>);</div>
- <div class="line"><a id="l00449" name="l00449"></a><span class="lineno"> 449</span> </div>
- <div class="line"><a id="l00450" name="l00450"></a><span class="lineno"> 450</span><a class="code hl_define" href="_core_8h.html#a73da8725998b00321a9db341202d650d">JPH_NAMESPACE_END</a></div>
- <div class="line"><a id="l00451" name="l00451"></a><span class="lineno"> 451</span> </div>
- <div class="line"><a id="l00452" name="l00452"></a><span class="lineno"> 452</span><span class="preprocessor">#include "<a class="code" href="_body_8inl.html">Body.inl</a>"</span></div>
- <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>
- <div class="ttc" id="a_body_8inl_html"><div class="ttname"><a href="_body_8inl.html">Body.inl</a></div></div>
- <div class="ttc" id="a_body_access_8h_html"><div class="ttname"><a href="_body_access_8h.html">BodyAccess.h</a></div></div>
- <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>
- <div class="ttc" id="a_body_type_8h_html"><div class="ttname"><a href="_body_type_8h.html">BodyType.h</a></div></div>
- <div class="ttc" id="a_body_type_8h_html_ab494e27db6c263f9e31556ad388eb666"><div class="ttname"><a href="_body_type_8h.html#ab494e27db6c263f9e31556ad388eb666">EBodyType</a></div><div class="ttdeci">EBodyType</div><div class="ttdoc">Type of body.</div><div class="ttdef"><b>Definition</b> BodyType.h:11</div></div>
- <div class="ttc" id="a_body_type_8h_html_ab494e27db6c263f9e31556ad388eb666a81db01c2775d4446d91c2caba27c53e8"><div class="ttname"><a href="_body_type_8h.html#ab494e27db6c263f9e31556ad388eb666a81db01c2775d4446d91c2caba27c53e8">EBodyType::RigidBody</a></div><div class="ttdeci">@ RigidBody</div><div class="ttdoc">Rigid body consisting of a rigid shape.</div></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_broad_phase_layer_8h_html"><div class="ttname"><a href="_broad_phase_layer_8h.html">BroadPhaseLayer.h</a></div></div>
- <div class="ttc" id="a_collision_group_8h_html"><div class="ttname"><a href="_collision_group_8h.html">CollisionGroup.h</a></div></div>
- <div class="ttc" id="a_core_8h_html_a115946cb5fc5879545e9ccea096a6031"><div class="ttname"><a href="_core_8h.html#a115946cb5fc5879545e9ccea096a6031">uint8</a></div><div class="ttdeci">std::uint8_t uint8</div><div class="ttdef"><b>Definition</b> Core.h:501</div></div>
- <div class="ttc" id="a_core_8h_html_a60e8696a4678cd348e991a1f172e53f7"><div class="ttname"><a href="_core_8h.html#a60e8696a4678cd348e991a1f172e53f7">uint64</a></div><div class="ttdeci">std::uint64_t uint64</div><div class="ttdef"><b>Definition</b> Core.h:504</div></div>
- <div class="ttc" id="a_core_8h_html_a727ca2a69e72fed5f1cf97b0f283bb52"><div class="ttname"><a href="_core_8h.html#a727ca2a69e72fed5f1cf97b0f283bb52">JPH_TSAN_NO_SANITIZE</a></div><div class="ttdeci">#define JPH_TSAN_NO_SANITIZE</div><div class="ttdef"><b>Definition</b> Core.h:649</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_a99479aa3165acf219093ab9549833cf9"><div class="ttname"><a href="_core_8h.html#a99479aa3165acf219093ab9549833cf9">JPH_EXPORT_GCC_BUG_WORKAROUND</a></div><div class="ttdeci">#define JPH_EXPORT_GCC_BUG_WORKAROUND</div><div class="ttdef"><b>Definition</b> Core.h:279</div></div>
- <div class="ttc" id="a_core_8h_html_aa004a0f7df4c0472bb33a149fce1f21c"><div class="ttname"><a href="_core_8h.html#aa004a0f7df4c0472bb33a149fce1f21c">JPH_IF_SINGLE_PRECISION_ELSE</a></div><div class="ttdeci">#define JPH_IF_SINGLE_PRECISION_ELSE(s, d)</div><div class="ttdef"><b>Definition</b> Core.h:583</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_issue_reporting_8h_html_a9189784257d6995aa3ecbafbf8bc5bd5"><div class="ttname"><a href="_issue_reporting_8h.html#a9189784257d6995aa3ecbafbf8bc5bd5">JPH_IF_ENABLE_ASSERTS</a></div><div class="ttdeci">#define JPH_IF_ENABLE_ASSERTS(...)</div><div class="ttdef"><b>Definition</b> IssueReporting.h:35</div></div>
- <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>
- <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_motion_properties_8h_html"><div class="ttname"><a href="_motion_properties_8h.html">MotionProperties.h</a></div></div>
- <div class="ttc" id="a_motion_properties_8h_html_a97f69c4b07965ef22ebe08465e1c3db0"><div class="ttname"><a href="_motion_properties_8h.html#a97f69c4b07965ef22ebe08465e1c3db0">ECanSleep</a></div><div class="ttdeci">ECanSleep</div><div class="ttdoc">Enum that determines if an object can go to sleep.</div><div class="ttdef"><b>Definition</b> MotionProperties.h:22</div></div>
- <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>
- <div class="ttc" id="a_motion_type_8h_html_a328245ddbb758681fad3c44c9d488fd8a40c78b58b86002ee38fad2d3c9dd787e"><div class="ttname"><a href="_motion_type_8h.html#a328245ddbb758681fad3c44c9d488fd8a40c78b58b86002ee38fad2d3c9dd787e">EMotionType::Kinematic</a></div><div class="ttdeci">@ Kinematic</div><div class="ttdoc">Movable using velocities only, does not respond to forces.</div></div>
- <div class="ttc" id="a_motion_type_8h_html_a328245ddbb758681fad3c44c9d488fd8a84a8921b25f505d0d2077aeb5db4bc16"><div class="ttname"><a href="_motion_type_8h.html#a328245ddbb758681fad3c44c9d488fd8a84a8921b25f505d0d2077aeb5db4bc16">EMotionType::Static</a></div><div class="ttdeci">@ Static</div><div class="ttdoc">Non movable.</div></div>
- <div class="ttc" id="a_motion_type_8h_html_a328245ddbb758681fad3c44c9d488fd8a971fd8cc345d8bd9f92e9f7d88fdf20c"><div class="ttname"><a href="_motion_type_8h.html#a328245ddbb758681fad3c44c9d488fd8a971fd8cc345d8bd9f92e9f7d88fdf20c">EMotionType::Dynamic</a></div><div class="ttdeci">@ Dynamic</div><div class="ttdoc">Responds to forces as a normal physics object.</div></div>
- <div class="ttc" id="a_non_copyable_8h_html"><div class="ttname"><a href="_non_copyable_8h.html">NonCopyable.h</a></div></div>
- <div class="ttc" id="a_object_layer_8h_html"><div class="ttname"><a href="_object_layer_8h.html">ObjectLayer.h</a></div></div>
- <div class="ttc" id="a_object_layer_8h_html_a960eb396e2803ddad87bf25e0dcb4470"><div class="ttname"><a href="_object_layer_8h.html#a960eb396e2803ddad87bf25e0dcb4470">ObjectLayer</a></div><div class="ttdeci">uint16 ObjectLayer</div><div class="ttdef"><b>Definition</b> ObjectLayer.h:16</div></div>
- <div class="ttc" id="a_real_8h_html_ac6a49178acb5c5ecdbab2424aca0e474"><div class="ttname"><a href="_real_8h.html#ac6a49178acb5c5ecdbab2424aca0e474">JPH_RVECTOR_ALIGNMENT</a></div><div class="ttdeci">#define JPH_RVECTOR_ALIGNMENT</div><div class="ttdef"><b>Definition</b> Real.h:34</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_string_tools_8h_html"><div class="ttname"><a href="_string_tools_8h.html">StringTools.h</a></div></div>
- <div class="ttc" id="a_transformed_shape_8h_html"><div class="ttname"><a href="_transformed_shape_8h.html">TransformedShape.h</a></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_creation_settings_html"><div class="ttname"><a href="class_body_creation_settings.html">BodyCreationSettings</a></div><div class="ttdoc">Settings for constructing a rigid body.</div><div class="ttdef"><b>Definition</b> BodyCreationSettings.h:31</div></div>
- <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>
- <div class="ttc" id="aclass_body_html_a04705ba7fe0c4cfac8bda79a43421beb"><div class="ttname"><a href="class_body.html#a04705ba7fe0c4cfac8bda79a43421beb">Body::GetPointVelocity</a></div><div class="ttdeci">Vec3 GetPointVelocity(RVec3Arg inPoint) const</div><div class="ttdoc">Velocity of point inPoint (in world space, e.g. on the surface of the body) of the body (unit: m/s)</div><div class="ttdef"><b>Definition</b> Body.h:175</div></div>
- <div class="ttc" id="aclass_body_html_a0d17f6ccde9ed070cdead2585ee87446"><div class="ttname"><a href="class_body.html#a0d17f6ccde9ed070cdead2585ee87446">Body::IsInBroadPhase</a></div><div class="ttdeci">bool IsInBroadPhase() const</div><div class="ttdoc">Check if this body has been added to the physics system.</div><div class="ttdef"><b>Definition</b> Body.h:259</div></div>
- <div class="ttc" id="aclass_body_html_a0d39987255227c4221fcea66cb1fc041"><div class="ttname"><a href="class_body.html#a0d39987255227c4221fcea66cb1fc041">Body::GetMotionProperties</a></div><div class="ttdeci">const MotionProperties * GetMotionProperties() const</div><div class="ttdoc">Access to the motion properties.</div><div class="ttdef"><b>Definition</b> Body.h:308</div></div>
- <div class="ttc" id="aclass_body_html_a10bf9dd2b7c39a93568e8eb3ada8da2a"><div class="ttname"><a href="class_body.html#a10bf9dd2b7c39a93568e8eb3ada8da2a">Body::GetCenterOfMassPosition</a></div><div class="ttdeci">RVec3 GetCenterOfMassPosition() const</div><div class="ttdoc">Gets the world space position of this body's center of mass.</div><div class="ttdef"><b>Definition</b> Body.h:277</div></div>
- <div class="ttc" id="aclass_body_html_a146a4745ed28c3d9b06abe02ee3d3490"><div class="ttname"><a href="class_body.html#a146a4745ed28c3d9b06abe02ee3d3490">Body::GetMotionType</a></div><div class="ttdeci">EMotionType GetMotionType() const</div><div class="ttdoc">Get the bodies motion type.</div><div class="ttdef"><b>Definition</b> Body.h:118</div></div>
- <div class="ttc" id="aclass_body_html_a15d802457f106f2255a6401ea0aaee9f"><div class="ttname"><a href="class_body.html#a15d802457f106f2255a6401ea0aaee9f">Body::SetAngularVelocity</a></div><div class="ttdeci">void SetAngularVelocity(Vec3Arg inAngularVelocity)</div><div class="ttdef"><b>Definition</b> Body.h:165</div></div>
- <div class="ttc" id="aclass_body_html_a16ebf80baa257da06fdf4996a8b22476"><div class="ttname"><a href="class_body.html#a16ebf80baa257da06fdf4996a8b22476">Body::SetCollisionGroup</a></div><div class="ttdeci">void SetCollisionGroup(const CollisionGroup &inGroup)</div><div class="ttdef"><b>Definition</b> Body.h:132</div></div>
- <div class="ttc" id="aclass_body_html_a19540cae81c6338eb7023bb9c923b0d4"><div class="ttname"><a href="class_body.html#a19540cae81c6338eb7023bb9c923b0d4">Body::GetPointVelocityCOM</a></div><div class="ttdeci">Vec3 GetPointVelocityCOM(Vec3Arg inPointRelativeToCOM) const</div><div class="ttdoc">Velocity of point inPoint (in center of mass space, e.g. on the surface of the body) of the body (uni...</div><div class="ttdef"><b>Definition</b> Body.h:172</div></div>
- <div class="ttc" id="aclass_body_html_a1b21c30907c8c9ce30c176a054057bef"><div class="ttname"><a href="class_body.html#a1b21c30907c8c9ce30c176a054057bef">Body::IsDynamic</a></div><div class="ttdeci">bool IsDynamic() const</div><div class="ttdoc">Check if this body is dynamic, which means that it moves and forces can act on it.</div><div class="ttdef"><b>Definition</b> Body.h:67</div></div>
- <div class="ttc" id="aclass_body_html_a1de301b3077fe2ae6339b910573ef3c6"><div class="ttname"><a href="class_body.html#a1de301b3077fe2ae6339b910573ef3c6">Body::GetAllowSleeping</a></div><div class="ttdeci">bool GetAllowSleeping() const</div><div class="ttdoc">If this body can go to sleep. Note that disabling sleeping on a sleeping object will not wake it up.</div><div class="ttdef"><b>Definition</b> Body.h:135</div></div>
- <div class="ttc" id="aclass_body_html_a251e1c9d8c9c7e40ddabc73420ac9ab1"><div class="ttname"><a href="class_body.html#a251e1c9d8c9c7e40ddabc73420ac9ab1">Body::IsSensor</a></div><div class="ttdeci">bool IsSensor() const</div><div class="ttdoc">Check if this body is a sensor.</div><div class="ttdef"><b>Definition</b> Body.h:80</div></div>
- <div class="ttc" id="aclass_body_html_a264f4c99047d880e0ec05ba558f64ee9"><div class="ttname"><a href="class_body.html#a264f4c99047d880e0ec05ba558f64ee9">Body::GetEnhancedInternalEdgeRemovalWithBody</a></div><div class="ttdeci">bool GetEnhancedInternalEdgeRemovalWithBody(const Body &inBody2) const</div><div class="ttdoc">Checks if the combination of this body and inBody2 should use enhanced internal edge removal.</div><div class="ttdef"><b>Definition</b> Body.h:115</div></div>
- <div class="ttc" id="aclass_body_html_a2be34f0150bb5f520f21330ee6b7cb41"><div class="ttname"><a href="class_body.html#a2be34f0150bb5f520f21330ee6b7cb41">Body::GetWorldSpaceBounds</a></div><div class="ttdeci">const AABox & GetWorldSpaceBounds() const</div><div class="ttdoc">Get world space bounding box.</div><div class="ttdef"><b>Definition</b> Body.h:286</div></div>
- <div class="ttc" id="aclass_body_html_a3c0a6198eb89412439dfcaef56eadade"><div class="ttname"><a href="class_body.html#a3c0a6198eb89412439dfcaef56eadade">Body::SubPositionStep</a></div><div class="ttdeci">void SubPositionStep(Vec3Arg inLinearVelocityTimesDeltaTime)</div><div class="ttdef"><b>Definition</b> Body.h:343</div></div>
- <div class="ttc" id="aclass_body_html_a3fff2f601caed12dd89c6d7fcb04dad6"><div class="ttname"><a href="class_body.html#a3fff2f601caed12dd89c6d7fcb04dad6">Body::SetUserData</a></div><div class="ttdeci">void SetUserData(uint64 inUserData)</div><div class="ttdef"><b>Definition</b> Body.h:317</div></div>
- <div class="ttc" id="aclass_body_html_a454781f1340576ad7f752b51dd8a179d"><div class="ttname"><a href="class_body.html#a454781f1340576ad7f752b51dd8a179d">Body::IsSoftBody</a></div><div class="ttdeci">bool IsSoftBody() const</div><div class="ttdoc">Check if this body is a soft body.</div><div class="ttdef"><b>Definition</b> Body.h:53</div></div>
- <div class="ttc" id="aclass_body_html_a45950d9b3f8f28aafa13a81374912bf1"><div class="ttname"><a href="class_body.html#a45950d9b3f8f28aafa13a81374912bf1">Body::GetShape</a></div><div class="ttdeci">const Shape * GetShape() const</div><div class="ttdoc">Get the shape of this body.</div><div class="ttdef"><b>Definition</b> Body.h:265</div></div>
- <div class="ttc" id="aclass_body_html_a469ea05f3200587491082a0f11f54fc6"><div class="ttname"><a href="class_body.html#a469ea05f3200587491082a0f11f54fc6">Body::InvalidateContactCacheInternal</a></div><div class="ttdeci">bool InvalidateContactCacheInternal()</div><div class="ttdoc">Invalidate the contact cache (should only be called by the BodyManager), will be reset the next simul...</div><div class="ttdef"><b>Definition</b> Body.h:353</div></div>
- <div class="ttc" id="aclass_body_html_a48b9455aae90fe4d73302389f6c7d9b5"><div class="ttname"><a href="class_body.html#a48b9455aae90fe4d73302389f6c7d9b5">Body::GetUserData</a></div><div class="ttdeci">uint64 GetUserData() const</div><div class="ttdoc">Access to the user data, can be used for anything by the application.</div><div class="ttdef"><b>Definition</b> Body.h:316</div></div>
- <div class="ttc" id="aclass_body_html_a4b9b625f789caa55cc9a3c7663644011"><div class="ttname"><a href="class_body.html#a4b9b625f789caa55cc9a3c7663644011">Body::GetBroadPhaseLayer</a></div><div class="ttdeci">BroadPhaseLayer GetBroadPhaseLayer() const</div><div class="ttdoc">Get broadphase layer, this determines in which broad phase sub-tree the object is placed.</div><div class="ttdef"><b>Definition</b> Body.h:124</div></div>
- <div class="ttc" id="aclass_body_html_a5657cc63a5fd9ee1e4a8408ac51affcc"><div class="ttname"><a href="class_body.html#a5657cc63a5fd9ee1e4a8408ac51affcc">Body::GetRestitution</a></div><div class="ttdeci">float GetRestitution() const</div><div class="ttdoc">Restitution (dimensionless number, usually between 0 and 1, 0 = completely inelastic collision respon...</div><div class="ttdef"><b>Definition</b> Body.h:146</div></div>
- <div class="ttc" id="aclass_body_html_a5865492b92c7c2e321c6916e80f5b7cb"><div class="ttname"><a href="class_body.html#a5865492b92c7c2e321c6916e80f5b7cb">Body::GetCollisionGroup</a></div><div class="ttdeci">const CollisionGroup & GetCollisionGroup() const</div><div class="ttdoc">Collision group and sub-group ID, determines which other objects it collides with.</div><div class="ttdef"><b>Definition</b> Body.h:130</div></div>
- <div class="ttc" id="aclass_body_html_a5d8e1f66eed163868a633cdb93859f77"><div class="ttname"><a href="class_body.html#a5d8e1f66eed163868a633cdb93859f77">Body::SetIsSensor</a></div><div class="ttdeci">void SetIsSensor(bool inIsSensor)</div><div class="ttdef"><b>Definition</b> Body.h:77</div></div>
- <div class="ttc" id="aclass_body_html_a5e1e46dac04eaf5fbaed87d6d781480d"><div class="ttname"><a href="class_body.html#a5e1e46dac04eaf5fbaed87d6d781480d">Body::SetLinearVelocityClamped</a></div><div class="ttdeci">void SetLinearVelocityClamped(Vec3Arg inLinearVelocity)</div><div class="ttdef"><b>Definition</b> Body.h:158</div></div>
- <div class="ttc" id="aclass_body_html_a5ffba4cea6db6696fff3db87999bdf42"><div class="ttname"><a href="class_body.html#a5ffba4cea6db6696fff3db87999bdf42">Body::GetIndexInActiveBodiesInternal</a></div><div class="ttdeci">JPH_TSAN_NO_SANITIZE uint32 GetIndexInActiveBodiesInternal() const</div><div class="ttdoc">Access to the index in the BodyManager::mActiveBodies list.</div><div class="ttdef"><b>Definition</b> Body.h:380</div></div>
- <div class="ttc" id="aclass_body_html_a602ae16f05ab73cd5cae80c2fd9b4a0d"><div class="ttname"><a href="class_body.html#a602ae16f05ab73cd5cae80c2fd9b4a0d">Body::GetUseManifoldReductionWithBody</a></div><div class="ttdeci">bool GetUseManifoldReductionWithBody(const Body &inBody2) const</div><div class="ttdoc">Checks if the combination of this body and inBody2 should use manifold reduction.</div><div class="ttdef"><b>Definition</b> Body.h:100</div></div>
- <div class="ttc" id="aclass_body_html_a603b71ad2f5dbb76fd80fa9dff8be7f9"><div class="ttname"><a href="class_body.html#a603b71ad2f5dbb76fd80fa9dff8be7f9">Body::SetLinearVelocity</a></div><div class="ttdeci">void SetLinearVelocity(Vec3Arg inLinearVelocity)</div><div class="ttdef"><b>Definition</b> Body.h:154</div></div>
- <div class="ttc" id="aclass_body_html_a6451197a038f1d99b4b92beae4656842"><div class="ttname"><a href="class_body.html#a6451197a038f1d99b4b92beae4656842">Body::GetLinearVelocity</a></div><div class="ttdeci">Vec3 GetLinearVelocity() const</div><div class="ttdoc">Get world space linear velocity of the center of mass (unit: m/s)</div><div class="ttdef"><b>Definition</b> Body.h:150</div></div>
- <div class="ttc" id="aclass_body_html_a652dca18d0969696d5a4a589c30eddc2"><div class="ttname"><a href="class_body.html#a652dca18d0969696d5a4a589c30eddc2">Body::GetObjectLayer</a></div><div class="ttdeci">ObjectLayer GetObjectLayer() const</div><div class="ttdoc">Get object layer, this determines which other objects it collides with.</div><div class="ttdef"><b>Definition</b> Body.h:127</div></div>
- <div class="ttc" id="aclass_body_html_a6589465cd947d75f90b3975e6bdfd96e"><div class="ttname"><a href="class_body.html#a6589465cd947d75f90b3975e6bdfd96e">Body::SetRestitution</a></div><div class="ttdeci">void SetRestitution(float inRestitution)</div><div class="ttdef"><b>Definition</b> Body.h:147</div></div>
- <div class="ttc" id="aclass_body_html_a6e13ebc7a47c0170acc0c976f7724ea8"><div class="ttname"><a href="class_body.html#a6e13ebc7a47c0170acc0c976f7724ea8">Body::IsCollisionCacheInvalid</a></div><div class="ttdeci">bool IsCollisionCacheInvalid() const</div><div class="ttdoc">Check if this body has been changed in such a way that the collision cache should be considered inval...</div><div class="ttdef"><b>Definition</b> Body.h:262</div></div>
- <div class="ttc" id="aclass_body_html_a8365154663e94343e1045893ee3b4c16"><div class="ttname"><a href="class_body.html#a8365154663e94343e1045893ee3b4c16">Body::IsRigidBody</a></div><div class="ttdeci">bool IsRigidBody() const</div><div class="ttdoc">Check if this body is a rigid body.</div><div class="ttdef"><b>Definition</b> Body.h:50</div></div>
- <div class="ttc" id="aclass_body_html_a83748a3d5a5b0a5b0242ba91875b8e13"><div class="ttname"><a href="class_body.html#a83748a3d5a5b0a5b0242ba91875b8e13">Body::IsStatic</a></div><div class="ttdeci">bool IsStatic() const</div><div class="ttdoc">Check if this body is static (not movable)</div><div class="ttdef"><b>Definition</b> Body.h:61</div></div>
- <div class="ttc" id="aclass_body_html_a864a31f176da8e3329f83cb65c23f3d6"><div class="ttname"><a href="class_body.html#a864a31f176da8e3329f83cb65c23f3d6">Body::GetBodyType</a></div><div class="ttdeci">EBodyType GetBodyType() const</div><div class="ttdoc">Get the type of body (rigid or soft)</div><div class="ttdef"><b>Definition</b> Body.h:47</div></div>
- <div class="ttc" id="aclass_body_html_a87c94617c51d1d35e49b64b0a29d18a4"><div class="ttname"><a href="class_body.html#a87c94617c51d1d35e49b64b0a29d18a4">Body::SetEnhancedInternalEdgeRemoval</a></div><div class="ttdeci">void SetEnhancedInternalEdgeRemoval(bool inApply)</div><div class="ttdoc">Set to indicate that extra effort should be made to try to remove ghost contacts (collisions with int...</div><div class="ttdef"><b>Definition</b> Body.h:109</div></div>
- <div class="ttc" id="aclass_body_html_a8bb48012c114b300a9bfdd296cfe0546"><div class="ttname"><a href="class_body.html#a8bb48012c114b300a9bfdd296cfe0546">Body::GetCollideKinematicVsNonDynamic</a></div><div class="ttdeci">bool GetCollideKinematicVsNonDynamic() const</div><div class="ttdoc">Check if kinematic objects can generate contact points against other kinematic or static objects.</div><div class="ttdef"><b>Definition</b> Body.h:88</div></div>
- <div class="ttc" id="aclass_body_html_a8c24ff0c08f1a31fc57d01420f9cae8b"><div class="ttname"><a href="class_body.html#a8c24ff0c08f1a31fc57d01420f9cae8b">Body::SetUseManifoldReduction</a></div><div class="ttdeci">void SetUseManifoldReduction(bool inUseReduction)</div><div class="ttdef"><b>Definition</b> Body.h:94</div></div>
- <div class="ttc" id="aclass_body_html_a8dd9a53f984efe2ced2f73ee084f636a"><div class="ttname"><a href="class_body.html#a8dd9a53f984efe2ced2f73ee084f636a">Body::sFixedToWorld</a></div><div class="ttdeci">static Body sFixedToWorld</div><div class="ttdoc">A dummy body that can be used by constraints to attach a constraint to the world instead of another b...</div><div class="ttdef"><b>Definition</b> Body.h:332</div></div>
- <div class="ttc" id="aclass_body_html_a9033b203f8511c35dca0dfc8ca1c25ca"><div class="ttname"><a href="class_body.html#a9033b203f8511c35dca0dfc8ca1c25ca">Body::SetAngularVelocityClamped</a></div><div class="ttdeci">void SetAngularVelocityClamped(Vec3Arg inAngularVelocity)</div><div class="ttdef"><b>Definition</b> Body.h:169</div></div>
- <div class="ttc" id="aclass_body_html_a91ec38c6d564c65d7dde56f315a8eb31"><div class="ttname"><a href="class_body.html#a91ec38c6d564c65d7dde56f315a8eb31">Body::ResetForce</a></div><div class="ttdeci">JPH_INLINE void ResetForce()</div><div class="ttdef"><b>Definition</b> Body.h:196</div></div>
- <div class="ttc" id="aclass_body_html_a9294deeff168fbb210f24f25e063fb38"><div class="ttname"><a href="class_body.html#a9294deeff168fbb210f24f25e063fb38">Body::GetAccumulatedTorque</a></div><div class="ttdeci">Vec3 GetAccumulatedTorque() const</div><div class="ttdef"><b>Definition</b> Body.h:193</div></div>
- <div class="ttc" id="aclass_body_html_a97addaa630b716fbc5b21ba19fdcf6ec"><div class="ttname"><a href="class_body.html#a97addaa630b716fbc5b21ba19fdcf6ec">Body::CanBeKinematicOrDynamic</a></div><div class="ttdeci">bool CanBeKinematicOrDynamic() const</div><div class="ttdoc">Check if a body could be made kinematic or dynamic (if it was created dynamic or with mAllowDynamicOr...</div><div class="ttdef"><b>Definition</b> Body.h:70</div></div>
- <div class="ttc" id="aclass_body_html_aa32a2192fa7e0ad595c63113e367d606"><div class="ttname"><a href="class_body.html#aa32a2192fa7e0ad595c63113e367d606">Body::GetEnhancedInternalEdgeRemoval</a></div><div class="ttdeci">bool GetEnhancedInternalEdgeRemoval() const</div><div class="ttdoc">Check if enhanced internal edge removal is turned on.</div><div class="ttdef"><b>Definition</b> Body.h:112</div></div>
- <div class="ttc" id="aclass_body_html_aa3c98e271056d300e6a5a5cf4783e61e"><div class="ttname"><a href="class_body.html#aa3c98e271056d300e6a5a5cf4783e61e">Body::IsActive</a></div><div class="ttdeci">JPH_TSAN_NO_SANITIZE bool IsActive() const</div><div class="ttdoc">If this body is currently actively simulating (true) or sleeping (false)</div><div class="ttdef"><b>Definition</b> Body.h:58</div></div>
- <div class="ttc" id="aclass_body_html_aa600fe2037b7ded7a84a8bf479213ebc"><div class="ttname"><a href="class_body.html#aa600fe2037b7ded7a84a8bf479213ebc">Body::SetInBroadPhaseInternal</a></div><div class="ttdeci">void SetInBroadPhaseInternal(bool inInBroadPhase)</div><div class="ttdoc">Flag if body is in the broadphase (should only be called by the BroadPhase)</div><div class="ttdef"><b>Definition</b> Body.h:350</div></div>
- <div class="ttc" id="aclass_body_html_aa9e634771e2ed719757a71cb9751b353"><div class="ttname"><a href="class_body.html#aa9e634771e2ed719757a71cb9751b353">Body::GetMotionProperties</a></div><div class="ttdeci">MotionProperties * GetMotionProperties()</div><div class="ttdef"><b>Definition</b> Body.h:309</div></div>
- <div class="ttc" id="aclass_body_html_aaee24bfb5e32e756f50113b9d1f45a2c"><div class="ttname"><a href="class_body.html#aaee24bfb5e32e756f50113b9d1f45a2c">Body::GetRotation</a></div><div class="ttdeci">Quat GetRotation() const</div><div class="ttdoc">World space rotation of the body.</div><div class="ttdef"><b>Definition</b> Body.h:271</div></div>
- <div class="ttc" id="aclass_body_html_ab29a0e2490187a1e08d21c4e9235f2a3"><div class="ttname"><a href="class_body.html#ab29a0e2490187a1e08d21c4e9235f2a3">Body::GetTransformedShape</a></div><div class="ttdeci">TransformedShape GetTransformedShape() const</div><div class="ttdoc">Get the transformed shape of this body, which can be used to do collision detection outside of a body...</div><div class="ttdef"><b>Definition</b> Body.h:323</div></div>
- <div class="ttc" id="aclass_body_html_ab3872c4fdcf4046aac2565bbe14061e8"><div class="ttname"><a href="class_body.html#ab3872c4fdcf4046aac2565bbe14061e8">Body::ResetTorque</a></div><div class="ttdeci">JPH_INLINE void ResetTorque()</div><div class="ttdef"><b>Definition</b> Body.h:199</div></div>
- <div class="ttc" id="aclass_body_html_ab49045bc1738e110dea9cbc020528338"><div class="ttname"><a href="class_body.html#ab49045bc1738e110dea9cbc020528338">Body::IsKinematic</a></div><div class="ttdeci">bool IsKinematic() const</div><div class="ttdoc">Check if this body is kinematic (keyframed), which means that it will move according to its current v...</div><div class="ttdef"><b>Definition</b> Body.h:64</div></div>
- <div class="ttc" id="aclass_body_html_abb35a0778672e9f3622d8cfa93b428b3"><div class="ttname"><a href="class_body.html#abb35a0778672e9f3622d8cfa93b428b3">Body::GetFriction</a></div><div class="ttdeci">float GetFriction() const</div><div class="ttdoc">Friction (dimensionless number, usually between 0 and 1, 0 = no friction, 1 = friction force equals f...</div><div class="ttdef"><b>Definition</b> Body.h:142</div></div>
- <div class="ttc" id="aclass_body_html_abe012219037c12313c7ef1116ee74865"><div class="ttname"><a href="class_body.html#abe012219037c12313c7ef1116ee74865">Body::GetMotionPropertiesUnchecked</a></div><div class="ttdeci">const MotionProperties * GetMotionPropertiesUnchecked() const</div><div class="ttdoc">Access to the motion properties (version that does not check if the object is kinematic or dynamic)</div><div class="ttdef"><b>Definition</b> Body.h:312</div></div>
- <div class="ttc" id="aclass_body_html_aca55936886e8c9d4dc072efa6e7baa47"><div class="ttname"><a href="class_body.html#aca55936886e8c9d4dc072efa6e7baa47">Body::GetCollisionGroup</a></div><div class="ttdeci">CollisionGroup & GetCollisionGroup()</div><div class="ttdef"><b>Definition</b> Body.h:131</div></div>
- <div class="ttc" id="aclass_body_html_acb02850d1a8baecc879d224f47e9ab70"><div class="ttname"><a href="class_body.html#acb02850d1a8baecc879d224f47e9ab70">Body::SetApplyGyroscopicForce</a></div><div class="ttdeci">void SetApplyGyroscopicForce(bool inApply)</div><div class="ttdoc">Set to indicate that the gyroscopic force should be applied to this body (aka Dzhanibekov effect,...</div><div class="ttdef"><b>Definition</b> Body.h:103</div></div>
- <div class="ttc" id="aclass_body_html_acbcb599679bb6a330a7ea3427fe90604"><div class="ttname"><a href="class_body.html#acbcb599679bb6a330a7ea3427fe90604">Body::GetID</a></div><div class="ttdeci">JPH_OVERRIDE_NEW_DELETE const BodyID & GetID() const</div><div class="ttdoc">Get the id of this body.</div><div class="ttdef"><b>Definition</b> Body.h:44</div></div>
- <div class="ttc" id="aclass_body_html_ad0cc27e6920daa31fc9e42a7824d2d02"><div class="ttname"><a href="class_body.html#ad0cc27e6920daa31fc9e42a7824d2d02">Body::GetMotionPropertiesUnchecked</a></div><div class="ttdeci">MotionProperties * GetMotionPropertiesUnchecked()</div><div class="ttdef"><b>Definition</b> Body.h:313</div></div>
- <div class="ttc" id="aclass_body_html_ad6c366c23710a8f103f6504cfccccc93"><div class="ttname"><a href="class_body.html#ad6c366c23710a8f103f6504cfccccc93">Body::GetAccumulatedForce</a></div><div class="ttdeci">Vec3 GetAccumulatedForce() const</div><div class="ttdef"><b>Definition</b> Body.h:190</div></div>
- <div class="ttc" id="aclass_body_html_adb1bb49db094ac2ef7c4951d07ba8417"><div class="ttname"><a href="class_body.html#adb1bb49db094ac2ef7c4951d07ba8417">Body::GetAngularVelocity</a></div><div class="ttdeci">Vec3 GetAngularVelocity() const</div><div class="ttdoc">Get world space angular velocity of the center of mass (unit: rad/s)</div><div class="ttdef"><b>Definition</b> Body.h:161</div></div>
- <div class="ttc" id="aclass_body_html_adce53bad2dc9f79804d6a01d435c06e0"><div class="ttname"><a href="class_body.html#adce53bad2dc9f79804d6a01d435c06e0">Body::GetPosition</a></div><div class="ttdeci">RVec3 GetPosition() const</div><div class="ttdoc">World space position of the body.</div><div class="ttdef"><b>Definition</b> Body.h:268</div></div>
- <div class="ttc" id="aclass_body_html_add8352d484a2805f114400159151185b"><div class="ttname"><a href="class_body.html#add8352d484a2805f114400159151185b">Body::AddForce</a></div><div class="ttdeci">void AddForce(Vec3Arg inForce)</div><div class="ttdef"><b>Definition</b> Body.h:179</div></div>
- <div class="ttc" id="aclass_body_html_adefe521957195c57e06a905431160d10"><div class="ttname"><a href="class_body.html#adefe521957195c57e06a905431160d10">Body::SetCollideKinematicVsNonDynamic</a></div><div class="ttdeci">void SetCollideKinematicVsNonDynamic(bool inCollide)</div><div class="ttdef"><b>Definition</b> Body.h:85</div></div>
- <div class="ttc" id="aclass_body_html_ae2732111d3d846bfceb19459fa2ee963"><div class="ttname"><a href="class_body.html#ae2732111d3d846bfceb19459fa2ee963">Body::GetUseManifoldReduction</a></div><div class="ttdeci">bool GetUseManifoldReduction() const</div><div class="ttdoc">Check if this body can use manifold reduction.</div><div class="ttdef"><b>Definition</b> Body.h:97</div></div>
- <div class="ttc" id="aclass_body_html_ae5800f2a270af3dcf7b53c009b67ef95"><div class="ttname"><a href="class_body.html#ae5800f2a270af3dcf7b53c009b67ef95">Body::ResetMotion</a></div><div class="ttdeci">JPH_INLINE void ResetMotion()</div><div class="ttdef"><b>Definition</b> Body.h:202</div></div>
- <div class="ttc" id="aclass_body_html_aec30d437f934327d261e8ebdc23a2c8c"><div class="ttname"><a href="class_body.html#aec30d437f934327d261e8ebdc23a2c8c">Body::AddTorque</a></div><div class="ttdeci">void AddTorque(Vec3Arg inTorque)</div><div class="ttdef"><b>Definition</b> Body.h:187</div></div>
- <div class="ttc" id="aclass_body_html_aed0987087ec4b3c3571c6a6a339361ad"><div class="ttname"><a href="class_body.html#aed0987087ec4b3c3571c6a6a339361ad">Body::ValidateContactCacheInternal</a></div><div class="ttdeci">void ValidateContactCacheInternal()</div><div class="ttdoc">Reset the collision cache invalid flag (should only be called by the BodyManager).</div><div class="ttdef"><b>Definition</b> Body.h:356</div></div>
- <div class="ttc" id="aclass_body_html_af3576faa64307d6d9318a7c0dad47d21"><div class="ttname"><a href="class_body.html#af3576faa64307d6d9318a7c0dad47d21">Body::SetFriction</a></div><div class="ttdeci">void SetFriction(float inFriction)</div><div class="ttdef"><b>Definition</b> Body.h:143</div></div>
- <div class="ttc" id="aclass_body_html_af7a0aaf1d49d9be5ffb7d6f195d3c74a"><div class="ttname"><a href="class_body.html#af7a0aaf1d49d9be5ffb7d6f195d3c74a">Body::GetApplyGyroscopicForce</a></div><div class="ttdeci">bool GetApplyGyroscopicForce() const</div><div class="ttdoc">Check if the gyroscopic force is being applied for this body.</div><div class="ttdef"><b>Definition</b> Body.h:106</div></div>
- <div class="ttc" id="aclass_body_html_af98f831df76bd7e54eeb92d79fa3c8cd"><div class="ttname"><a href="class_body.html#af98f831df76bd7e54eeb92d79fa3c8cd">Body::AddPositionStep</a></div><div class="ttdeci">void AddPositionStep(Vec3Arg inLinearVelocityTimesDeltaTime)</div><div class="ttdoc">Update position using an Euler step (used during position integrate & constraint solving)</div><div class="ttdef"><b>Definition</b> Body.h:342</div></div>
- <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>
- <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_broad_phase_layer_html"><div class="ttname"><a href="class_broad_phase_layer.html">BroadPhaseLayer</a></div><div class="ttdef"><b>Definition</b> BroadPhaseLayer.h:18</div></div>
- <div class="ttc" id="aclass_collision_group_html"><div class="ttname"><a href="class_collision_group.html">CollisionGroup</a></div><div class="ttdef"><b>Definition</b> CollisionGroup.h:20</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_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>
- <div class="ttc" id="aclass_motion_properties_html_aacb0f4e9211a3b16ae353726f0b2895b"><div class="ttname"><a href="class_motion_properties.html#aacb0f4e9211a3b16ae353726f0b2895b">MotionProperties::cInactiveIndex</a></div><div class="ttdeci">static constexpr uint32 cInactiveIndex</div><div class="ttdoc">Constant indicating that body is not active.</div><div class="ttdef"><b>Definition</b> MotionProperties.h:255</div></div>
- <div class="ttc" id="aclass_non_copyable_html"><div class="ttname"><a href="class_non_copyable.html">NonCopyable</a></div><div class="ttdoc">Class that makes another class non-copyable. Usage: Inherit from NonCopyable.</div><div class="ttdef"><b>Definition</b> NonCopyable.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_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>
- <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_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>
- <div class="ttc" id="aclass_soft_body_creation_settings_html_a2ab6ae93bb76e4033c1bd949671db613"><div class="ttname"><a href="class_soft_body_creation_settings.html#a2ab6ae93bb76e4033c1bd949671db613">SoftBodyCreationSettings::mFriction</a></div><div class="ttdeci">float mFriction</div><div class="ttdoc">Friction coefficient when colliding.</div><div class="ttdef"><b>Definition</b> SoftBodyCreationSettings.h:65</div></div>
- <div class="ttc" id="aclass_soft_body_creation_settings_html_a80535dd782a3f7368cd6e74cd3ccda6a"><div class="ttname"><a href="class_soft_body_creation_settings.html#a80535dd782a3f7368cd6e74cd3ccda6a">SoftBodyCreationSettings::mRotation</a></div><div class="ttdeci">Quat mRotation</div><div class="ttdoc">Initial rotation of the soft body.</div><div class="ttdef"><b>Definition</b> SoftBodyCreationSettings.h:52</div></div>
- <div class="ttc" id="aclass_soft_body_creation_settings_html_a9bf07b67b3fe8e6032485fa403fbca60"><div class="ttname"><a href="class_soft_body_creation_settings.html#a9bf07b67b3fe8e6032485fa403fbca60">SoftBodyCreationSettings::mPosition</a></div><div class="ttdeci">RVec3 mPosition</div><div class="ttdoc">Initial position of the soft body.</div><div class="ttdef"><b>Definition</b> SoftBodyCreationSettings.h:51</div></div>
- <div class="ttc" id="aclass_soft_body_creation_settings_html_ab4e95c56fff028fa8b81804488076890"><div class="ttname"><a href="class_soft_body_creation_settings.html#ab4e95c56fff028fa8b81804488076890">SoftBodyCreationSettings::mRestitution</a></div><div class="ttdeci">float mRestitution</div><div class="ttdoc">Restitution when colliding.</div><div class="ttdef"><b>Definition</b> SoftBodyCreationSettings.h:64</div></div>
- <div class="ttc" id="aclass_soft_body_creation_settings_html_adbd6f1e62fecded89813ddab4e233e73"><div class="ttname"><a href="class_soft_body_creation_settings.html#adbd6f1e62fecded89813ddab4e233e73">SoftBodyCreationSettings::mUserData</a></div><div class="ttdeci">uint64 mUserData</div><div class="ttdoc">User data value (can be used by application)</div><div class="ttdef"><b>Definition</b> SoftBodyCreationSettings.h:55</div></div>
- <div class="ttc" id="aclass_soft_body_creation_settings_html_af0f54d456a3f22e36ad6c1c429b9ee4c"><div class="ttname"><a href="class_soft_body_creation_settings.html#af0f54d456a3f22e36ad6c1c429b9ee4c">SoftBodyCreationSettings::mCollisionGroup</a></div><div class="ttdeci">CollisionGroup mCollisionGroup</div><div class="ttdoc">The collision group this body belongs to (determines if two objects can collide)</div><div class="ttdef"><b>Definition</b> SoftBodyCreationSettings.h:59</div></div>
- <div class="ttc" id="aclass_soft_body_creation_settings_html_af2bebfa58f86de5bc428165a5f9c08d2"><div class="ttname"><a href="class_soft_body_creation_settings.html#af2bebfa58f86de5bc428165a5f9c08d2">SoftBodyCreationSettings::mObjectLayer</a></div><div class="ttdeci">ObjectLayer mObjectLayer</div><div class="ttdoc">The collision layer this body belongs to (determines if two objects can collide)</div><div class="ttdef"><b>Definition</b> SoftBodyCreationSettings.h:58</div></div>
- <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>
- <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_transformed_shape_html"><div class="ttname"><a href="class_transformed_shape.html">TransformedShape</a></div><div class="ttdef"><b>Definition</b> TransformedShape.h:26</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_a6bc0731860c69d4e3151981d2dc24e93"><div class="ttname"><a href="class_vec3.html#a6bc0731860c69d4e3151981d2dc24e93">Vec3::sOne</a></div><div class="ttdeci">static JPH_INLINE Vec3 sOne()</div><div class="ttdoc">Vector with all ones.</div><div class="ttdef"><b>Definition</b> Vec3.inl:125</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="aclass_vec3_html_ae2ae38edbb4672657e92bf1c67bb7bea"><div class="ttname"><a href="class_vec3.html#ae2ae38edbb4672657e92bf1c67bb7bea">Vec3::IsNaN</a></div><div class="ttdeci">JPH_INLINE bool IsNaN() const</div><div class="ttdoc">Test if vector contains NaN elements.</div><div class="ttdef"><b>Definition</b> Vec3.inl:757</div></div>
- <div class="ttc" id="aclass_vec3_html_aea30fe731618ffa249ecdcba2c66ab4e"><div class="ttname"><a href="class_vec3.html#aea30fe731618ffa249ecdcba2c66ab4e">Vec3::sLoadFloat3Unsafe</a></div><div class="ttdeci">static JPH_INLINE Vec3 sLoadFloat3Unsafe(const Float3 &inV)</div><div class="ttdoc">Load 3 floats from memory (reads 32 bits extra which it doesn't use)</div><div class="ttdef"><b>Definition</b> Vec3.inl:135</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_a240ac3d525f21f79994f1dc1d19664e.html">Body</a></li><li class="navelem"><a class="el" href="_body_8h.html">Body.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>
|