_compound_shape_visitors_8h_source.html 210 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml" lang="en-US">
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
  5. <meta http-equiv="X-UA-Compatible" content="IE=11"/>
  6. <meta name="generator" content="Doxygen 1.12.0"/>
  7. <meta name="viewport" content="width=device-width, initial-scale=1"/>
  8. <title>Jolt Physics: Jolt/Physics/Collision/Shape/CompoundShapeVisitors.h Source File</title>
  9. <link href="tabs.css" rel="stylesheet" type="text/css"/>
  10. <script type="text/javascript" src="jquery.js"></script>
  11. <script type="text/javascript" src="dynsections.js"></script>
  12. <script type="text/javascript" src="clipboard.js"></script>
  13. <link href="navtree.css" rel="stylesheet" type="text/css"/>
  14. <script type="text/javascript" src="navtreedata.js"></script>
  15. <script type="text/javascript" src="navtree.js"></script>
  16. <script type="text/javascript" src="resize.js"></script>
  17. <script type="text/javascript" src="cookie.js"></script>
  18. <link href="search/search.css" rel="stylesheet" type="text/css"/>
  19. <script type="text/javascript" src="search/searchdata.js"></script>
  20. <script type="text/javascript" src="search/search.js"></script>
  21. <script type="text/x-mathjax-config">
  22. MathJax.Hub.Config({
  23. extensions: ["tex2jax.js"],
  24. jax: ["input/TeX","output/HTML-CSS"],
  25. });
  26. </script>
  27. <script type="text/javascript" async="async" src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/MathJax.js"></script>
  28. <link href="doxygen.css" rel="stylesheet" type="text/css" />
  29. </head>
  30. <body>
  31. <div id="top"><!-- do not remove this div, it is closed by doxygen! -->
  32. <div id="titlearea">
  33. <table cellspacing="0" cellpadding="0">
  34. <tbody>
  35. <tr id="projectrow">
  36. <td id="projectlogo"><img alt="Logo" src="LogoSmall.png"/></td>
  37. <td id="projectalign">
  38. <div id="projectname">Jolt Physics
  39. </div>
  40. <div id="projectbrief">A multi core friendly Game Physics Engine</div>
  41. </td>
  42. </tr>
  43. </tbody>
  44. </table>
  45. </div>
  46. <!-- end header part -->
  47. <!-- Generated by Doxygen 1.12.0 -->
  48. <script type="text/javascript">
  49. /* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
  50. var searchBox = new SearchBox("searchBox", "search/",'.html');
  51. /* @license-end */
  52. </script>
  53. <script type="text/javascript">
  54. /* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
  55. $(function() { codefold.init(0); });
  56. /* @license-end */
  57. </script>
  58. <script type="text/javascript" src="menudata.js"></script>
  59. <script type="text/javascript" src="menu.js"></script>
  60. <script type="text/javascript">
  61. /* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
  62. $(function() {
  63. initMenu('',true,false,'search.php','Search',true);
  64. $(function() { init_search(); });
  65. });
  66. /* @license-end */
  67. </script>
  68. <div id="main-nav"></div>
  69. </div><!-- top -->
  70. <div id="side-nav" class="ui-resizable side-nav-resizable">
  71. <div id="nav-tree">
  72. <div id="nav-tree-contents">
  73. <div id="nav-sync" class="sync"></div>
  74. </div>
  75. </div>
  76. <div id="splitbar" style="-moz-user-select:none;"
  77. class="ui-resizable-handle">
  78. </div>
  79. </div>
  80. <script type="text/javascript">
  81. /* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
  82. $(function(){initNavTree('_compound_shape_visitors_8h_source.html',''); initResizable(true); });
  83. /* @license-end */
  84. </script>
  85. <div id="doc-content">
  86. <!-- window showing the filter options -->
  87. <div id="MSearchSelectWindow"
  88. onmouseover="return searchBox.OnSearchSelectShow()"
  89. onmouseout="return searchBox.OnSearchSelectHide()"
  90. onkeydown="return searchBox.OnSearchSelectKey(event)">
  91. </div>
  92. <!-- iframe showing the search results (closed by default) -->
  93. <div id="MSearchResultsWindow">
  94. <div id="MSearchResults">
  95. <div class="SRPage">
  96. <div id="SRIndex">
  97. <div id="SRResults"></div>
  98. <div class="SRStatus" id="Loading">Loading...</div>
  99. <div class="SRStatus" id="Searching">Searching...</div>
  100. <div class="SRStatus" id="NoMatches">No Matches</div>
  101. </div>
  102. </div>
  103. </div>
  104. </div>
  105. <div class="header">
  106. <div class="headertitle"><div class="title">CompoundShapeVisitors.h</div></div>
  107. </div><!--header-->
  108. <div class="contents">
  109. <a href="_compound_shape_visitors_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a id="l00001" name="l00001"></a><span class="lineno"> 1</span><span class="comment">// Jolt Physics Library (https://github.com/jrouwe/JoltPhysics)</span></div>
  110. <div class="line"><a id="l00002" name="l00002"></a><span class="lineno"> 2</span><span class="comment">// SPDX-FileCopyrightText: 2021 Jorrit Rouwe</span></div>
  111. <div class="line"><a id="l00003" name="l00003"></a><span class="lineno"> 3</span><span class="comment">// SPDX-License-Identifier: MIT</span></div>
  112. <div class="line"><a id="l00004" name="l00004"></a><span class="lineno"> 4</span> </div>
  113. <div class="line"><a id="l00005" name="l00005"></a><span class="lineno"> 5</span><span class="preprocessor">#pragma once</span></div>
  114. <div class="line"><a id="l00006" name="l00006"></a><span class="lineno"> 6</span> </div>
  115. <div class="line"><a id="l00007" name="l00007"></a><span class="lineno"> 7</span><span class="preprocessor">#include &lt;<a class="code" href="_compound_shape_8h.html">Jolt/Physics/Collision/Shape/CompoundShape.h</a>&gt;</span></div>
  116. <div class="line"><a id="l00008" name="l00008"></a><span class="lineno"> 8</span><span class="preprocessor">#include &lt;<a class="code" href="_sub_shape_i_d_8h.html">Jolt/Physics/Collision/Shape/SubShapeID.h</a>&gt;</span></div>
  117. <div class="line"><a id="l00009" name="l00009"></a><span class="lineno"> 9</span><span class="preprocessor">#include &lt;<a class="code" href="_ray_cast_8h.html">Jolt/Physics/Collision/RayCast.h</a>&gt;</span></div>
  118. <div class="line"><a id="l00010" name="l00010"></a><span class="lineno"> 10</span><span class="preprocessor">#include &lt;<a class="code" href="_cast_result_8h.html">Jolt/Physics/Collision/CastResult.h</a>&gt;</span></div>
  119. <div class="line"><a id="l00011" name="l00011"></a><span class="lineno"> 11</span><span class="preprocessor">#include &lt;<a class="code" href="_shape_cast_8h.html">Jolt/Physics/Collision/ShapeCast.h</a>&gt;</span></div>
  120. <div class="line"><a id="l00012" name="l00012"></a><span class="lineno"> 12</span><span class="preprocessor">#include &lt;<a class="code" href="_transformed_shape_8h.html">Jolt/Physics/Collision/TransformedShape.h</a>&gt;</span></div>
  121. <div class="line"><a id="l00013" name="l00013"></a><span class="lineno"> 13</span><span class="preprocessor">#include &lt;<a class="code" href="_collision_dispatch_8h.html">Jolt/Physics/Collision/CollisionDispatch.h</a>&gt;</span></div>
  122. <div class="line"><a id="l00014" name="l00014"></a><span class="lineno"> 14</span><span class="preprocessor">#include &lt;<a class="code" href="_ray_a_a_box_8h.html">Jolt/Geometry/RayAABox.h</a>&gt;</span></div>
  123. <div class="line"><a id="l00015" name="l00015"></a><span class="lineno"> 15</span><span class="preprocessor">#include &lt;<a class="code" href="_a_a_box4_8h.html">Jolt/Geometry/AABox4.h</a>&gt;</span></div>
  124. <div class="line"><a id="l00016" name="l00016"></a><span class="lineno"> 16</span><span class="preprocessor">#include &lt;<a class="code" href="_oriented_box_8h.html">Jolt/Geometry/OrientedBox.h</a>&gt;</span></div>
  125. <div class="line"><a id="l00017" name="l00017"></a><span class="lineno"> 17</span> </div>
  126. <div class="line"><a id="l00018" name="l00018"></a><span class="lineno"> 18</span><a class="code hl_define" href="_core_8h.html#ad14098b68b8c44ea6112601031268405">JPH_NAMESPACE_BEGIN</a></div>
  127. <div class="line"><a id="l00019" name="l00019"></a><span class="lineno"> 19</span> </div>
  128. <div class="foldopen" id="foldopen00020" data-start="{" data-end="};">
  129. <div class="line"><a id="l00020" name="l00020"></a><span class="lineno"><a class="line" href="struct_compound_shape_1_1_cast_ray_visitor.html"> 20</a></span><span class="keyword">struct </span><a class="code hl_struct" href="struct_compound_shape_1_1_cast_ray_visitor.html">CompoundShape::CastRayVisitor</a></div>
  130. <div class="line"><a id="l00021" name="l00021"></a><span class="lineno"> 21</span>{</div>
  131. <div class="foldopen" id="foldopen00022" data-start="{" data-end="}">
  132. <div class="line"><a id="l00022" name="l00022"></a><span class="lineno"><a class="line" href="struct_compound_shape_1_1_cast_ray_visitor.html#a7adfe292a88805c33097245c07d2d529"> 22</a></span> JPH_INLINE <a class="code hl_function" href="struct_compound_shape_1_1_cast_ray_visitor.html#a7adfe292a88805c33097245c07d2d529">CastRayVisitor</a>(<span class="keyword">const</span> <a class="code hl_struct" href="struct_ray_cast.html">RayCast</a> &amp;inRay, <span class="keyword">const</span> <a class="code hl_class" href="class_compound_shape.html">CompoundShape</a> *inShape, <span class="keyword">const</span> <a class="code hl_class" href="class_sub_shape_i_d_creator.html">SubShapeIDCreator</a> &amp;inSubShapeIDCreator, <a class="code hl_class" href="class_ray_cast_result.html">RayCastResult</a> &amp;ioHit) :</div>
  133. <div class="line"><a id="l00023" name="l00023"></a><span class="lineno"> 23</span> <a class="code hl_variable" href="struct_compound_shape_1_1_cast_ray_visitor.html#a67db40d3d39442109dff46d6c8962f6e">mRay</a>(inRay),</div>
  134. <div class="line"><a id="l00024" name="l00024"></a><span class="lineno"> 24</span> <a class="code hl_variable" href="struct_compound_shape_1_1_cast_ray_visitor.html#aa4f2babd360c7683d26e6d089179999e">mHit</a>(ioHit),</div>
  135. <div class="line"><a id="l00025" name="l00025"></a><span class="lineno"> 25</span> <a class="code hl_variable" href="struct_compound_shape_1_1_cast_ray_visitor.html#a5d6fbbcbcb0a268582642c731d542c8f">mSubShapeIDCreator</a>(inSubShapeIDCreator),</div>
  136. <div class="line"><a id="l00026" name="l00026"></a><span class="lineno"> 26</span> <a class="code hl_variable" href="struct_compound_shape_1_1_cast_ray_visitor.html#a3d68ed7fbf5ccbb853e1ef47e45e72bb">mSubShapeBits</a>(inShape-&gt;<a class="code hl_function" href="class_compound_shape.html#a3f4a71f903b9b37eb61262257ca268f2">GetSubShapeIDBits</a>())</div>
  137. <div class="line"><a id="l00027" name="l00027"></a><span class="lineno"> 27</span> {</div>
  138. <div class="line"><a id="l00028" name="l00028"></a><span class="lineno"> 28</span> <span class="comment">// Determine ray properties of cast</span></div>
  139. <div class="line"><a id="l00029" name="l00029"></a><span class="lineno"> 29</span> <a class="code hl_variable" href="struct_compound_shape_1_1_cast_ray_visitor.html#a848fb221cd472001c314498be3ad4f71">mInvDirection</a>.<a class="code hl_function" href="class_ray_inv_direction.html#ac9569874f14ade61e966744af2abdc79">Set</a>(inRay.<a class="code hl_variable" href="struct_ray_cast_t.html#a7eb5c3b516f95411ede61d7fd282bbd9">mDirection</a>);</div>
  140. <div class="line"><a id="l00030" name="l00030"></a><span class="lineno"> 30</span> }</div>
  141. </div>
  142. <div class="line"><a id="l00031" name="l00031"></a><span class="lineno"> 31</span> </div>
  143. <div class="foldopen" id="foldopen00033" data-start="{" data-end="}">
  144. <div class="line"><a id="l00033" name="l00033"></a><span class="lineno"><a class="line" href="struct_compound_shape_1_1_cast_ray_visitor.html#a7668a1ea39d30feee8636f90626320c4"> 33</a></span> JPH_INLINE <span class="keywordtype">bool</span> <a class="code hl_function" href="struct_compound_shape_1_1_cast_ray_visitor.html#a7668a1ea39d30feee8636f90626320c4">ShouldAbort</a>()<span class="keyword"> const</span></div>
  145. <div class="line"><a id="l00034" name="l00034"></a><span class="lineno"> 34</span><span class="keyword"> </span>{</div>
  146. <div class="line"><a id="l00035" name="l00035"></a><span class="lineno"> 35</span> <span class="keywordflow">return</span> <a class="code hl_variable" href="struct_compound_shape_1_1_cast_ray_visitor.html#aa4f2babd360c7683d26e6d089179999e">mHit</a>.<a class="code hl_variable" href="class_broad_phase_cast_result.html#a3336f4d32762bcbcb6bcfd2b6fcbf7fb">mFraction</a> &lt;= 0.0f;</div>
  147. <div class="line"><a id="l00036" name="l00036"></a><span class="lineno"> 36</span> }</div>
  148. </div>
  149. <div class="line"><a id="l00037" name="l00037"></a><span class="lineno"> 37</span> </div>
  150. <div class="foldopen" id="foldopen00039" data-start="{" data-end="}">
  151. <div class="line"><a id="l00039" name="l00039"></a><span class="lineno"><a class="line" href="struct_compound_shape_1_1_cast_ray_visitor.html#a45ca32b8515b057633bdea8c47f3f044"> 39</a></span> JPH_INLINE <a class="code hl_class" href="class_vec4.html">Vec4</a> <a class="code hl_function" href="struct_compound_shape_1_1_cast_ray_visitor.html#a45ca32b8515b057633bdea8c47f3f044">TestBounds</a>(<a class="code hl_class" href="class_vec4.html">Vec4Arg</a> inBoundsMinX, <a class="code hl_class" href="class_vec4.html">Vec4Arg</a> inBoundsMinY, <a class="code hl_class" href="class_vec4.html">Vec4Arg</a> inBoundsMinZ, <a class="code hl_class" href="class_vec4.html">Vec4Arg</a> inBoundsMaxX, <a class="code hl_class" href="class_vec4.html">Vec4Arg</a> inBoundsMaxY, <a class="code hl_class" href="class_vec4.html">Vec4Arg</a> inBoundsMaxZ)<span class="keyword"> const</span></div>
  152. <div class="line"><a id="l00040" name="l00040"></a><span class="lineno"> 40</span><span class="keyword"> </span>{</div>
  153. <div class="line"><a id="l00041" name="l00041"></a><span class="lineno"> 41</span> <span class="keywordflow">return</span> <a class="code hl_function" href="_ray_a_a_box_8h.html#a47b273497f8309ea15797696f48f41ad">RayAABox4</a>(<a class="code hl_variable" href="struct_compound_shape_1_1_cast_ray_visitor.html#a67db40d3d39442109dff46d6c8962f6e">mRay</a>.<a class="code hl_variable" href="struct_ray_cast_t.html#ae66dc4b0c20b242f17bcf70cb5507e51">mOrigin</a>, <a class="code hl_variable" href="struct_compound_shape_1_1_cast_ray_visitor.html#a848fb221cd472001c314498be3ad4f71">mInvDirection</a>, inBoundsMinX, inBoundsMinY, inBoundsMinZ, inBoundsMaxX, inBoundsMaxY, inBoundsMaxZ);</div>
  154. <div class="line"><a id="l00042" name="l00042"></a><span class="lineno"> 42</span> }</div>
  155. </div>
  156. <div class="line"><a id="l00043" name="l00043"></a><span class="lineno"> 43</span> </div>
  157. <div class="foldopen" id="foldopen00045" data-start="{" data-end="}">
  158. <div class="line"><a id="l00045" name="l00045"></a><span class="lineno"><a class="line" href="struct_compound_shape_1_1_cast_ray_visitor.html#abcfb06db0c470f7b887bd1ccbdf293e9"> 45</a></span> JPH_INLINE <span class="keywordtype">void</span> <a class="code hl_function" href="struct_compound_shape_1_1_cast_ray_visitor.html#abcfb06db0c470f7b887bd1ccbdf293e9">VisitShape</a>(<span class="keyword">const</span> <a class="code hl_struct" href="struct_compound_shape_1_1_sub_shape.html">SubShape</a> &amp;inSubShape, <a class="code hl_typedef" href="_core_8h.html#a8f95e75e58492e87412191fabadd8ca8">uint32</a> inSubShapeIndex)</div>
  159. <div class="line"><a id="l00046" name="l00046"></a><span class="lineno"> 46</span> {</div>
  160. <div class="line"><a id="l00047" name="l00047"></a><span class="lineno"> 47</span> <span class="comment">// Create ID for sub shape</span></div>
  161. <div class="line"><a id="l00048" name="l00048"></a><span class="lineno"> 48</span> <a class="code hl_class" href="class_sub_shape_i_d_creator.html">SubShapeIDCreator</a> shape2_sub_shape_id = <a class="code hl_variable" href="struct_compound_shape_1_1_cast_ray_visitor.html#a5d6fbbcbcb0a268582642c731d542c8f">mSubShapeIDCreator</a>.<a class="code hl_function" href="class_sub_shape_i_d_creator.html#a29997885833b2c9625bcbcba4548273d">PushID</a>(inSubShapeIndex, <a class="code hl_variable" href="struct_compound_shape_1_1_cast_ray_visitor.html#a3d68ed7fbf5ccbb853e1ef47e45e72bb">mSubShapeBits</a>);</div>
  162. <div class="line"><a id="l00049" name="l00049"></a><span class="lineno"> 49</span> </div>
  163. <div class="line"><a id="l00050" name="l00050"></a><span class="lineno"> 50</span> <span class="comment">// Transform the ray</span></div>
  164. <div class="line"><a id="l00051" name="l00051"></a><span class="lineno"> 51</span> <a class="code hl_class" href="class_mat44.html">Mat44</a> transform = <a class="code hl_function" href="class_mat44.html#ac8be820a7eeb44bf570abb8dc01f4c59">Mat44::sInverseRotationTranslation</a>(inSubShape.<a class="code hl_function" href="struct_compound_shape_1_1_sub_shape.html#a13d700b0e7064e9ecdf99afdc0262eae">GetRotation</a>(), inSubShape.<a class="code hl_function" href="struct_compound_shape_1_1_sub_shape.html#ac3fea8705474011f4f5681c18fcdaaa2">GetPositionCOM</a>());</div>
  165. <div class="line"><a id="l00052" name="l00052"></a><span class="lineno"> 52</span> <a class="code hl_struct" href="struct_ray_cast.html">RayCast</a> ray = <a class="code hl_variable" href="struct_compound_shape_1_1_cast_ray_visitor.html#a67db40d3d39442109dff46d6c8962f6e">mRay</a>.<a class="code hl_function" href="struct_ray_cast_t.html#a89d5ea77b4b5f8c92e1ec515ea70d14b">Transformed</a>(transform);</div>
  166. <div class="line"><a id="l00053" name="l00053"></a><span class="lineno"> 53</span> <span class="keywordflow">if</span> (inSubShape.<a class="code hl_variable" href="struct_compound_shape_1_1_sub_shape.html#af0e288762fbe4fcdec676ce1836d5375">mShape</a>-&gt;<a class="code hl_function" href="class_shape.html#a955ec1953bc94c6c910dc4dc16114732">CastRay</a>(ray, shape2_sub_shape_id, <a class="code hl_variable" href="struct_compound_shape_1_1_cast_ray_visitor.html#aa4f2babd360c7683d26e6d089179999e">mHit</a>))</div>
  167. <div class="line"><a id="l00054" name="l00054"></a><span class="lineno"> 54</span> <a class="code hl_variable" href="struct_compound_shape_1_1_cast_ray_visitor.html#a8b14b4e32934a67cbd94a7ff0f362ac5">mReturnValue</a> = <span class="keyword">true</span>;</div>
  168. <div class="line"><a id="l00055" name="l00055"></a><span class="lineno"> 55</span> }</div>
  169. </div>
  170. <div class="line"><a id="l00056" name="l00056"></a><span class="lineno"> 56</span> </div>
  171. <div class="line"><a id="l00057" name="l00057"></a><span class="lineno"><a class="line" href="struct_compound_shape_1_1_cast_ray_visitor.html#a848fb221cd472001c314498be3ad4f71"> 57</a></span> <a class="code hl_class" href="class_ray_inv_direction.html">RayInvDirection</a> <a class="code hl_variable" href="struct_compound_shape_1_1_cast_ray_visitor.html#a848fb221cd472001c314498be3ad4f71">mInvDirection</a>;</div>
  172. <div class="line"><a id="l00058" name="l00058"></a><span class="lineno"><a class="line" href="struct_compound_shape_1_1_cast_ray_visitor.html#a67db40d3d39442109dff46d6c8962f6e"> 58</a></span> <span class="keyword">const</span> <a class="code hl_struct" href="struct_ray_cast.html">RayCast</a> &amp; <a class="code hl_variable" href="struct_compound_shape_1_1_cast_ray_visitor.html#a67db40d3d39442109dff46d6c8962f6e">mRay</a>;</div>
  173. <div class="line"><a id="l00059" name="l00059"></a><span class="lineno"><a class="line" href="struct_compound_shape_1_1_cast_ray_visitor.html#aa4f2babd360c7683d26e6d089179999e"> 59</a></span> <a class="code hl_class" href="class_ray_cast_result.html">RayCastResult</a> &amp; <a class="code hl_variable" href="struct_compound_shape_1_1_cast_ray_visitor.html#aa4f2babd360c7683d26e6d089179999e">mHit</a>;</div>
  174. <div class="line"><a id="l00060" name="l00060"></a><span class="lineno"><a class="line" href="struct_compound_shape_1_1_cast_ray_visitor.html#a5d6fbbcbcb0a268582642c731d542c8f"> 60</a></span> <a class="code hl_class" href="class_sub_shape_i_d_creator.html">SubShapeIDCreator</a> <a class="code hl_variable" href="struct_compound_shape_1_1_cast_ray_visitor.html#a5d6fbbcbcb0a268582642c731d542c8f">mSubShapeIDCreator</a>;</div>
  175. <div class="line"><a id="l00061" name="l00061"></a><span class="lineno"><a class="line" href="struct_compound_shape_1_1_cast_ray_visitor.html#a3d68ed7fbf5ccbb853e1ef47e45e72bb"> 61</a></span> <a class="code hl_typedef" href="_core_8h.html#a69aa29b598b851b0640aa225a9e5d61d">uint</a> <a class="code hl_variable" href="struct_compound_shape_1_1_cast_ray_visitor.html#a3d68ed7fbf5ccbb853e1ef47e45e72bb">mSubShapeBits</a>;</div>
  176. <div class="line"><a id="l00062" name="l00062"></a><span class="lineno"><a class="line" href="struct_compound_shape_1_1_cast_ray_visitor.html#a8b14b4e32934a67cbd94a7ff0f362ac5"> 62</a></span> <span class="keywordtype">bool</span> <a class="code hl_variable" href="struct_compound_shape_1_1_cast_ray_visitor.html#a8b14b4e32934a67cbd94a7ff0f362ac5">mReturnValue</a> = <span class="keyword">false</span>;</div>
  177. <div class="line"><a id="l00063" name="l00063"></a><span class="lineno"> 63</span>};</div>
  178. </div>
  179. <div class="line"><a id="l00064" name="l00064"></a><span class="lineno"> 64</span> </div>
  180. <div class="foldopen" id="foldopen00065" data-start="{" data-end="};">
  181. <div class="line"><a id="l00065" name="l00065"></a><span class="lineno"><a class="line" href="struct_compound_shape_1_1_cast_ray_visitor_collector.html"> 65</a></span><span class="keyword">struct </span><a class="code hl_struct" href="struct_compound_shape_1_1_cast_ray_visitor_collector.html">CompoundShape::CastRayVisitorCollector</a></div>
  182. <div class="line"><a id="l00066" name="l00066"></a><span class="lineno"> 66</span>{</div>
  183. <div class="foldopen" id="foldopen00067" data-start="{" data-end="}">
  184. <div class="line"><a id="l00067" name="l00067"></a><span class="lineno"><a class="line" href="struct_compound_shape_1_1_cast_ray_visitor_collector.html#af17b4ee8b0f590e72d35ced0d45563f0"> 67</a></span> JPH_INLINE <a class="code hl_function" href="struct_compound_shape_1_1_cast_ray_visitor_collector.html#af17b4ee8b0f590e72d35ced0d45563f0">CastRayVisitorCollector</a>(<span class="keyword">const</span> <a class="code hl_struct" href="struct_ray_cast.html">RayCast</a> &amp;inRay, <span class="keyword">const</span> <a class="code hl_class" href="class_ray_cast_settings.html">RayCastSettings</a> &amp;inRayCastSettings, <span class="keyword">const</span> <a class="code hl_class" href="class_compound_shape.html">CompoundShape</a> *inShape, <span class="keyword">const</span> <a class="code hl_class" href="class_sub_shape_i_d_creator.html">SubShapeIDCreator</a> &amp;inSubShapeIDCreator, <a class="code hl_class" href="class_collision_collector.html">CastRayCollector</a> &amp;ioCollector, <span class="keyword">const</span> <a class="code hl_class" href="class_shape_filter.html">ShapeFilter</a> &amp;inShapeFilter) :</div>
  185. <div class="line"><a id="l00068" name="l00068"></a><span class="lineno"> 68</span> <a class="code hl_variable" href="struct_compound_shape_1_1_cast_ray_visitor_collector.html#a27e6f90c97311cb2274d1c15b7088367">mRay</a>(inRay),</div>
  186. <div class="line"><a id="l00069" name="l00069"></a><span class="lineno"> 69</span> <a class="code hl_variable" href="struct_compound_shape_1_1_cast_ray_visitor_collector.html#aa482aff5292c183077270554b7053fb5">mCollector</a>(ioCollector),</div>
  187. <div class="line"><a id="l00070" name="l00070"></a><span class="lineno"> 70</span> <a class="code hl_variable" href="struct_compound_shape_1_1_cast_ray_visitor_collector.html#a3a9a5655d3583d15e247d7c3ce94da35">mSubShapeIDCreator</a>(inSubShapeIDCreator),</div>
  188. <div class="line"><a id="l00071" name="l00071"></a><span class="lineno"> 71</span> <a class="code hl_variable" href="struct_compound_shape_1_1_cast_ray_visitor_collector.html#a77fc1dbc8b79d5ec9cb3bf6803f9ca33">mSubShapeBits</a>(inShape-&gt;<a class="code hl_function" href="class_compound_shape.html#a3f4a71f903b9b37eb61262257ca268f2">GetSubShapeIDBits</a>()),</div>
  189. <div class="line"><a id="l00072" name="l00072"></a><span class="lineno"> 72</span> <a class="code hl_variable" href="struct_compound_shape_1_1_cast_ray_visitor_collector.html#a279153b159b17f4bf1fb7a1a4df46122">mRayCastSettings</a>(inRayCastSettings),</div>
  190. <div class="line"><a id="l00073" name="l00073"></a><span class="lineno"> 73</span> <a class="code hl_variable" href="struct_compound_shape_1_1_cast_ray_visitor_collector.html#a085af308c94408bd9f45fb3195402ba1">mShapeFilter</a>(inShapeFilter)</div>
  191. <div class="line"><a id="l00074" name="l00074"></a><span class="lineno"> 74</span> {</div>
  192. <div class="line"><a id="l00075" name="l00075"></a><span class="lineno"> 75</span> <span class="comment">// Determine ray properties of cast</span></div>
  193. <div class="line"><a id="l00076" name="l00076"></a><span class="lineno"> 76</span> <a class="code hl_variable" href="struct_compound_shape_1_1_cast_ray_visitor_collector.html#afe91b86d85eebf7f35660efeb535ae9d">mInvDirection</a>.<a class="code hl_function" href="class_ray_inv_direction.html#ac9569874f14ade61e966744af2abdc79">Set</a>(inRay.<a class="code hl_variable" href="struct_ray_cast_t.html#a7eb5c3b516f95411ede61d7fd282bbd9">mDirection</a>);</div>
  194. <div class="line"><a id="l00077" name="l00077"></a><span class="lineno"> 77</span> }</div>
  195. </div>
  196. <div class="line"><a id="l00078" name="l00078"></a><span class="lineno"> 78</span> </div>
  197. <div class="foldopen" id="foldopen00080" data-start="{" data-end="}">
  198. <div class="line"><a id="l00080" name="l00080"></a><span class="lineno"><a class="line" href="struct_compound_shape_1_1_cast_ray_visitor_collector.html#adcc33d30649befa932d49742db59986d"> 80</a></span> JPH_INLINE <span class="keywordtype">bool</span> <a class="code hl_function" href="struct_compound_shape_1_1_cast_ray_visitor_collector.html#adcc33d30649befa932d49742db59986d">ShouldAbort</a>()<span class="keyword"> const</span></div>
  199. <div class="line"><a id="l00081" name="l00081"></a><span class="lineno"> 81</span><span class="keyword"> </span>{</div>
  200. <div class="line"><a id="l00082" name="l00082"></a><span class="lineno"> 82</span> <span class="keywordflow">return</span> <a class="code hl_variable" href="struct_compound_shape_1_1_cast_ray_visitor_collector.html#aa482aff5292c183077270554b7053fb5">mCollector</a>.<a class="code hl_function" href="class_collision_collector.html#a45cb1cfbb5ec957d3c66b65d2333d825">ShouldEarlyOut</a>();</div>
  201. <div class="line"><a id="l00083" name="l00083"></a><span class="lineno"> 83</span> }</div>
  202. </div>
  203. <div class="line"><a id="l00084" name="l00084"></a><span class="lineno"> 84</span> </div>
  204. <div class="foldopen" id="foldopen00086" data-start="{" data-end="}">
  205. <div class="line"><a id="l00086" name="l00086"></a><span class="lineno"><a class="line" href="struct_compound_shape_1_1_cast_ray_visitor_collector.html#a814152f9307136c005f19c36131746d2"> 86</a></span> JPH_INLINE <a class="code hl_class" href="class_vec4.html">Vec4</a> <a class="code hl_function" href="struct_compound_shape_1_1_cast_ray_visitor_collector.html#a814152f9307136c005f19c36131746d2">TestBounds</a>(<a class="code hl_class" href="class_vec4.html">Vec4Arg</a> inBoundsMinX, <a class="code hl_class" href="class_vec4.html">Vec4Arg</a> inBoundsMinY, <a class="code hl_class" href="class_vec4.html">Vec4Arg</a> inBoundsMinZ, <a class="code hl_class" href="class_vec4.html">Vec4Arg</a> inBoundsMaxX, <a class="code hl_class" href="class_vec4.html">Vec4Arg</a> inBoundsMaxY, <a class="code hl_class" href="class_vec4.html">Vec4Arg</a> inBoundsMaxZ)<span class="keyword"> const</span></div>
  206. <div class="line"><a id="l00087" name="l00087"></a><span class="lineno"> 87</span><span class="keyword"> </span>{</div>
  207. <div class="line"><a id="l00088" name="l00088"></a><span class="lineno"> 88</span> <span class="keywordflow">return</span> <a class="code hl_function" href="_ray_a_a_box_8h.html#a47b273497f8309ea15797696f48f41ad">RayAABox4</a>(<a class="code hl_variable" href="struct_compound_shape_1_1_cast_ray_visitor_collector.html#a27e6f90c97311cb2274d1c15b7088367">mRay</a>.<a class="code hl_variable" href="struct_ray_cast_t.html#ae66dc4b0c20b242f17bcf70cb5507e51">mOrigin</a>, <a class="code hl_variable" href="struct_compound_shape_1_1_cast_ray_visitor_collector.html#afe91b86d85eebf7f35660efeb535ae9d">mInvDirection</a>, inBoundsMinX, inBoundsMinY, inBoundsMinZ, inBoundsMaxX, inBoundsMaxY, inBoundsMaxZ);</div>
  208. <div class="line"><a id="l00089" name="l00089"></a><span class="lineno"> 89</span> }</div>
  209. </div>
  210. <div class="line"><a id="l00090" name="l00090"></a><span class="lineno"> 90</span> </div>
  211. <div class="foldopen" id="foldopen00092" data-start="{" data-end="}">
  212. <div class="line"><a id="l00092" name="l00092"></a><span class="lineno"><a class="line" href="struct_compound_shape_1_1_cast_ray_visitor_collector.html#a295365cb216ebe0c673cddae6fe7fcc6"> 92</a></span> JPH_INLINE <span class="keywordtype">void</span> <a class="code hl_function" href="struct_compound_shape_1_1_cast_ray_visitor_collector.html#a295365cb216ebe0c673cddae6fe7fcc6">VisitShape</a>(<span class="keyword">const</span> <a class="code hl_struct" href="struct_compound_shape_1_1_sub_shape.html">SubShape</a> &amp;inSubShape, <a class="code hl_typedef" href="_core_8h.html#a8f95e75e58492e87412191fabadd8ca8">uint32</a> inSubShapeIndex)</div>
  213. <div class="line"><a id="l00093" name="l00093"></a><span class="lineno"> 93</span> {</div>
  214. <div class="line"><a id="l00094" name="l00094"></a><span class="lineno"> 94</span> <span class="comment">// Create ID for sub shape</span></div>
  215. <div class="line"><a id="l00095" name="l00095"></a><span class="lineno"> 95</span> <a class="code hl_class" href="class_sub_shape_i_d_creator.html">SubShapeIDCreator</a> shape2_sub_shape_id = <a class="code hl_variable" href="struct_compound_shape_1_1_cast_ray_visitor_collector.html#a3a9a5655d3583d15e247d7c3ce94da35">mSubShapeIDCreator</a>.<a class="code hl_function" href="class_sub_shape_i_d_creator.html#a29997885833b2c9625bcbcba4548273d">PushID</a>(inSubShapeIndex, <a class="code hl_variable" href="struct_compound_shape_1_1_cast_ray_visitor_collector.html#a77fc1dbc8b79d5ec9cb3bf6803f9ca33">mSubShapeBits</a>);</div>
  216. <div class="line"><a id="l00096" name="l00096"></a><span class="lineno"> 96</span> </div>
  217. <div class="line"><a id="l00097" name="l00097"></a><span class="lineno"> 97</span> <span class="comment">// Transform the ray</span></div>
  218. <div class="line"><a id="l00098" name="l00098"></a><span class="lineno"> 98</span> <a class="code hl_class" href="class_mat44.html">Mat44</a> transform = <a class="code hl_function" href="class_mat44.html#ac8be820a7eeb44bf570abb8dc01f4c59">Mat44::sInverseRotationTranslation</a>(inSubShape.<a class="code hl_function" href="struct_compound_shape_1_1_sub_shape.html#a13d700b0e7064e9ecdf99afdc0262eae">GetRotation</a>(), inSubShape.<a class="code hl_function" href="struct_compound_shape_1_1_sub_shape.html#ac3fea8705474011f4f5681c18fcdaaa2">GetPositionCOM</a>());</div>
  219. <div class="line"><a id="l00099" name="l00099"></a><span class="lineno"> 99</span> <a class="code hl_struct" href="struct_ray_cast.html">RayCast</a> ray = <a class="code hl_variable" href="struct_compound_shape_1_1_cast_ray_visitor_collector.html#a27e6f90c97311cb2274d1c15b7088367">mRay</a>.<a class="code hl_function" href="struct_ray_cast_t.html#a89d5ea77b4b5f8c92e1ec515ea70d14b">Transformed</a>(transform);</div>
  220. <div class="line"><a id="l00100" name="l00100"></a><span class="lineno"> 100</span> inSubShape.<a class="code hl_variable" href="struct_compound_shape_1_1_sub_shape.html#af0e288762fbe4fcdec676ce1836d5375">mShape</a>-&gt;<a class="code hl_function" href="class_shape.html#a955ec1953bc94c6c910dc4dc16114732">CastRay</a>(ray, <a class="code hl_variable" href="struct_compound_shape_1_1_cast_ray_visitor_collector.html#a279153b159b17f4bf1fb7a1a4df46122">mRayCastSettings</a>, shape2_sub_shape_id, <a class="code hl_variable" href="struct_compound_shape_1_1_cast_ray_visitor_collector.html#aa482aff5292c183077270554b7053fb5">mCollector</a>, <a class="code hl_variable" href="struct_compound_shape_1_1_cast_ray_visitor_collector.html#a085af308c94408bd9f45fb3195402ba1">mShapeFilter</a>);</div>
  221. <div class="line"><a id="l00101" name="l00101"></a><span class="lineno"> 101</span> }</div>
  222. </div>
  223. <div class="line"><a id="l00102" name="l00102"></a><span class="lineno"> 102</span> </div>
  224. <div class="line"><a id="l00103" name="l00103"></a><span class="lineno"><a class="line" href="struct_compound_shape_1_1_cast_ray_visitor_collector.html#afe91b86d85eebf7f35660efeb535ae9d"> 103</a></span> <a class="code hl_class" href="class_ray_inv_direction.html">RayInvDirection</a> <a class="code hl_variable" href="struct_compound_shape_1_1_cast_ray_visitor_collector.html#afe91b86d85eebf7f35660efeb535ae9d">mInvDirection</a>;</div>
  225. <div class="line"><a id="l00104" name="l00104"></a><span class="lineno"><a class="line" href="struct_compound_shape_1_1_cast_ray_visitor_collector.html#a27e6f90c97311cb2274d1c15b7088367"> 104</a></span> <span class="keyword">const</span> <a class="code hl_struct" href="struct_ray_cast.html">RayCast</a> &amp; <a class="code hl_variable" href="struct_compound_shape_1_1_cast_ray_visitor_collector.html#a27e6f90c97311cb2274d1c15b7088367">mRay</a>;</div>
  226. <div class="line"><a id="l00105" name="l00105"></a><span class="lineno"><a class="line" href="struct_compound_shape_1_1_cast_ray_visitor_collector.html#aa482aff5292c183077270554b7053fb5"> 105</a></span> <a class="code hl_class" href="class_collision_collector.html">CastRayCollector</a> &amp; <a class="code hl_variable" href="struct_compound_shape_1_1_cast_ray_visitor_collector.html#aa482aff5292c183077270554b7053fb5">mCollector</a>;</div>
  227. <div class="line"><a id="l00106" name="l00106"></a><span class="lineno"><a class="line" href="struct_compound_shape_1_1_cast_ray_visitor_collector.html#a3a9a5655d3583d15e247d7c3ce94da35"> 106</a></span> <a class="code hl_class" href="class_sub_shape_i_d_creator.html">SubShapeIDCreator</a> <a class="code hl_variable" href="struct_compound_shape_1_1_cast_ray_visitor_collector.html#a3a9a5655d3583d15e247d7c3ce94da35">mSubShapeIDCreator</a>;</div>
  228. <div class="line"><a id="l00107" name="l00107"></a><span class="lineno"><a class="line" href="struct_compound_shape_1_1_cast_ray_visitor_collector.html#a77fc1dbc8b79d5ec9cb3bf6803f9ca33"> 107</a></span> <a class="code hl_typedef" href="_core_8h.html#a69aa29b598b851b0640aa225a9e5d61d">uint</a> <a class="code hl_variable" href="struct_compound_shape_1_1_cast_ray_visitor_collector.html#a77fc1dbc8b79d5ec9cb3bf6803f9ca33">mSubShapeBits</a>;</div>
  229. <div class="line"><a id="l00108" name="l00108"></a><span class="lineno"><a class="line" href="struct_compound_shape_1_1_cast_ray_visitor_collector.html#a279153b159b17f4bf1fb7a1a4df46122"> 108</a></span> <a class="code hl_class" href="class_ray_cast_settings.html">RayCastSettings</a> <a class="code hl_variable" href="struct_compound_shape_1_1_cast_ray_visitor_collector.html#a279153b159b17f4bf1fb7a1a4df46122">mRayCastSettings</a>;</div>
  230. <div class="line"><a id="l00109" name="l00109"></a><span class="lineno"><a class="line" href="struct_compound_shape_1_1_cast_ray_visitor_collector.html#a085af308c94408bd9f45fb3195402ba1"> 109</a></span> <span class="keyword">const</span> <a class="code hl_class" href="class_shape_filter.html">ShapeFilter</a> &amp; <a class="code hl_variable" href="struct_compound_shape_1_1_cast_ray_visitor_collector.html#a085af308c94408bd9f45fb3195402ba1">mShapeFilter</a>;</div>
  231. <div class="line"><a id="l00110" name="l00110"></a><span class="lineno"> 110</span>};</div>
  232. </div>
  233. <div class="line"><a id="l00111" name="l00111"></a><span class="lineno"> 111</span> </div>
  234. <div class="foldopen" id="foldopen00112" data-start="{" data-end="};">
  235. <div class="line"><a id="l00112" name="l00112"></a><span class="lineno"><a class="line" href="struct_compound_shape_1_1_collide_point_visitor.html"> 112</a></span><span class="keyword">struct </span><a class="code hl_struct" href="struct_compound_shape_1_1_collide_point_visitor.html">CompoundShape::CollidePointVisitor</a></div>
  236. <div class="line"><a id="l00113" name="l00113"></a><span class="lineno"> 113</span>{</div>
  237. <div class="foldopen" id="foldopen00114" data-start="{" data-end="}">
  238. <div class="line"><a id="l00114" name="l00114"></a><span class="lineno"><a class="line" href="struct_compound_shape_1_1_collide_point_visitor.html#a832d09b2ee2731828915fb29183b5960"> 114</a></span> JPH_INLINE <a class="code hl_function" href="struct_compound_shape_1_1_collide_point_visitor.html#a832d09b2ee2731828915fb29183b5960">CollidePointVisitor</a>(<a class="code hl_class" href="class_vec3.html">Vec3Arg</a> inPoint, <span class="keyword">const</span> <a class="code hl_class" href="class_compound_shape.html">CompoundShape</a> *inShape, <span class="keyword">const</span> <a class="code hl_class" href="class_sub_shape_i_d_creator.html">SubShapeIDCreator</a> &amp;inSubShapeIDCreator, <a class="code hl_class" href="class_collision_collector.html">CollidePointCollector</a> &amp;ioCollector, <span class="keyword">const</span> <a class="code hl_class" href="class_shape_filter.html">ShapeFilter</a> &amp;inShapeFilter) :</div>
  239. <div class="line"><a id="l00115" name="l00115"></a><span class="lineno"> 115</span> <a class="code hl_variable" href="struct_compound_shape_1_1_collide_point_visitor.html#a47156e21c9dd5a4cc626690185907836">mPoint</a>(inPoint),</div>
  240. <div class="line"><a id="l00116" name="l00116"></a><span class="lineno"> 116</span> <a class="code hl_variable" href="struct_compound_shape_1_1_collide_point_visitor.html#a7f36227c8d0f4ad5e2cf940616f41670">mSubShapeIDCreator</a>(inSubShapeIDCreator),</div>
  241. <div class="line"><a id="l00117" name="l00117"></a><span class="lineno"> 117</span> <a class="code hl_variable" href="struct_compound_shape_1_1_collide_point_visitor.html#ac192bb3d8ea53f93de9e6fb523b2949a">mCollector</a>(ioCollector),</div>
  242. <div class="line"><a id="l00118" name="l00118"></a><span class="lineno"> 118</span> <a class="code hl_variable" href="struct_compound_shape_1_1_collide_point_visitor.html#adb322db658c73032656a070fad686949">mSubShapeBits</a>(inShape-&gt;<a class="code hl_function" href="class_compound_shape.html#a3f4a71f903b9b37eb61262257ca268f2">GetSubShapeIDBits</a>()),</div>
  243. <div class="line"><a id="l00119" name="l00119"></a><span class="lineno"> 119</span> <a class="code hl_variable" href="struct_compound_shape_1_1_collide_point_visitor.html#aef8c2ccc7305949bb69db4cfcc56cf85">mShapeFilter</a>(inShapeFilter)</div>
  244. <div class="line"><a id="l00120" name="l00120"></a><span class="lineno"> 120</span> {</div>
  245. <div class="line"><a id="l00121" name="l00121"></a><span class="lineno"> 121</span> }</div>
  246. </div>
  247. <div class="line"><a id="l00122" name="l00122"></a><span class="lineno"> 122</span> </div>
  248. <div class="foldopen" id="foldopen00124" data-start="{" data-end="}">
  249. <div class="line"><a id="l00124" name="l00124"></a><span class="lineno"><a class="line" href="struct_compound_shape_1_1_collide_point_visitor.html#aab907c8ad14bf917323ed88160cd861d"> 124</a></span> JPH_INLINE <span class="keywordtype">bool</span> <a class="code hl_function" href="struct_compound_shape_1_1_collide_point_visitor.html#aab907c8ad14bf917323ed88160cd861d">ShouldAbort</a>()<span class="keyword"> const</span></div>
  250. <div class="line"><a id="l00125" name="l00125"></a><span class="lineno"> 125</span><span class="keyword"> </span>{</div>
  251. <div class="line"><a id="l00126" name="l00126"></a><span class="lineno"> 126</span> <span class="keywordflow">return</span> <a class="code hl_variable" href="struct_compound_shape_1_1_collide_point_visitor.html#ac192bb3d8ea53f93de9e6fb523b2949a">mCollector</a>.<a class="code hl_function" href="class_collision_collector.html#a45cb1cfbb5ec957d3c66b65d2333d825">ShouldEarlyOut</a>();</div>
  252. <div class="line"><a id="l00127" name="l00127"></a><span class="lineno"> 127</span> }</div>
  253. </div>
  254. <div class="line"><a id="l00128" name="l00128"></a><span class="lineno"> 128</span> </div>
  255. <div class="foldopen" id="foldopen00130" data-start="{" data-end="}">
  256. <div class="line"><a id="l00130" name="l00130"></a><span class="lineno"><a class="line" href="struct_compound_shape_1_1_collide_point_visitor.html#a462fecb2d7a11225bc4b89015a4c6e9b"> 130</a></span> JPH_INLINE <a class="code hl_class" href="class_u_vec4.html">UVec4</a> <a class="code hl_function" href="struct_compound_shape_1_1_collide_point_visitor.html#a462fecb2d7a11225bc4b89015a4c6e9b">TestBounds</a>(<a class="code hl_class" href="class_vec4.html">Vec4Arg</a> inBoundsMinX, <a class="code hl_class" href="class_vec4.html">Vec4Arg</a> inBoundsMinY, <a class="code hl_class" href="class_vec4.html">Vec4Arg</a> inBoundsMinZ, <a class="code hl_class" href="class_vec4.html">Vec4Arg</a> inBoundsMaxX, <a class="code hl_class" href="class_vec4.html">Vec4Arg</a> inBoundsMaxY, <a class="code hl_class" href="class_vec4.html">Vec4Arg</a> inBoundsMaxZ)<span class="keyword"> const</span></div>
  257. <div class="line"><a id="l00131" name="l00131"></a><span class="lineno"> 131</span><span class="keyword"> </span>{</div>
  258. <div class="line"><a id="l00132" name="l00132"></a><span class="lineno"> 132</span> <span class="keywordflow">return</span> <a class="code hl_function" href="_a_a_box4_8h.html#a96c8ee8d10ad0b3971de242ea1217cb9">AABox4VsPoint</a>(<a class="code hl_variable" href="struct_compound_shape_1_1_collide_point_visitor.html#a47156e21c9dd5a4cc626690185907836">mPoint</a>, inBoundsMinX, inBoundsMinY, inBoundsMinZ, inBoundsMaxX, inBoundsMaxY, inBoundsMaxZ);</div>
  259. <div class="line"><a id="l00133" name="l00133"></a><span class="lineno"> 133</span> }</div>
  260. </div>
  261. <div class="line"><a id="l00134" name="l00134"></a><span class="lineno"> 134</span> </div>
  262. <div class="foldopen" id="foldopen00136" data-start="{" data-end="}">
  263. <div class="line"><a id="l00136" name="l00136"></a><span class="lineno"><a class="line" href="struct_compound_shape_1_1_collide_point_visitor.html#aeeb14c482931fed4f18e825ee8bba908"> 136</a></span> JPH_INLINE <span class="keywordtype">void</span> <a class="code hl_function" href="struct_compound_shape_1_1_collide_point_visitor.html#aeeb14c482931fed4f18e825ee8bba908">VisitShape</a>(<span class="keyword">const</span> <a class="code hl_struct" href="struct_compound_shape_1_1_sub_shape.html">SubShape</a> &amp;inSubShape, <a class="code hl_typedef" href="_core_8h.html#a8f95e75e58492e87412191fabadd8ca8">uint32</a> inSubShapeIndex)</div>
  264. <div class="line"><a id="l00137" name="l00137"></a><span class="lineno"> 137</span> {</div>
  265. <div class="line"><a id="l00138" name="l00138"></a><span class="lineno"> 138</span> <span class="comment">// Create ID for sub shape</span></div>
  266. <div class="line"><a id="l00139" name="l00139"></a><span class="lineno"> 139</span> <a class="code hl_class" href="class_sub_shape_i_d_creator.html">SubShapeIDCreator</a> shape2_sub_shape_id = <a class="code hl_variable" href="struct_compound_shape_1_1_collide_point_visitor.html#a7f36227c8d0f4ad5e2cf940616f41670">mSubShapeIDCreator</a>.<a class="code hl_function" href="class_sub_shape_i_d_creator.html#a29997885833b2c9625bcbcba4548273d">PushID</a>(inSubShapeIndex, <a class="code hl_variable" href="struct_compound_shape_1_1_collide_point_visitor.html#adb322db658c73032656a070fad686949">mSubShapeBits</a>);</div>
  267. <div class="line"><a id="l00140" name="l00140"></a><span class="lineno"> 140</span> </div>
  268. <div class="line"><a id="l00141" name="l00141"></a><span class="lineno"> 141</span> <span class="comment">// Transform the point</span></div>
  269. <div class="line"><a id="l00142" name="l00142"></a><span class="lineno"> 142</span> <a class="code hl_class" href="class_mat44.html">Mat44</a> transform = <a class="code hl_function" href="class_mat44.html#ac8be820a7eeb44bf570abb8dc01f4c59">Mat44::sInverseRotationTranslation</a>(inSubShape.<a class="code hl_function" href="struct_compound_shape_1_1_sub_shape.html#a13d700b0e7064e9ecdf99afdc0262eae">GetRotation</a>(), inSubShape.<a class="code hl_function" href="struct_compound_shape_1_1_sub_shape.html#ac3fea8705474011f4f5681c18fcdaaa2">GetPositionCOM</a>());</div>
  270. <div class="line"><a id="l00143" name="l00143"></a><span class="lineno"> 143</span> inSubShape.<a class="code hl_variable" href="struct_compound_shape_1_1_sub_shape.html#af0e288762fbe4fcdec676ce1836d5375">mShape</a>-&gt;<a class="code hl_function" href="class_shape.html#af6e77d16736434769d72152bf059a126">CollidePoint</a>(transform * <a class="code hl_variable" href="struct_compound_shape_1_1_collide_point_visitor.html#a47156e21c9dd5a4cc626690185907836">mPoint</a>, shape2_sub_shape_id, <a class="code hl_variable" href="struct_compound_shape_1_1_collide_point_visitor.html#ac192bb3d8ea53f93de9e6fb523b2949a">mCollector</a>, <a class="code hl_variable" href="struct_compound_shape_1_1_collide_point_visitor.html#aef8c2ccc7305949bb69db4cfcc56cf85">mShapeFilter</a>);</div>
  271. <div class="line"><a id="l00144" name="l00144"></a><span class="lineno"> 144</span> }</div>
  272. </div>
  273. <div class="line"><a id="l00145" name="l00145"></a><span class="lineno"> 145</span> </div>
  274. <div class="line"><a id="l00146" name="l00146"></a><span class="lineno"><a class="line" href="struct_compound_shape_1_1_collide_point_visitor.html#a47156e21c9dd5a4cc626690185907836"> 146</a></span> <a class="code hl_class" href="class_vec3.html">Vec3</a> <a class="code hl_variable" href="struct_compound_shape_1_1_collide_point_visitor.html#a47156e21c9dd5a4cc626690185907836">mPoint</a>;</div>
  275. <div class="line"><a id="l00147" name="l00147"></a><span class="lineno"><a class="line" href="struct_compound_shape_1_1_collide_point_visitor.html#a7f36227c8d0f4ad5e2cf940616f41670"> 147</a></span> <a class="code hl_class" href="class_sub_shape_i_d_creator.html">SubShapeIDCreator</a> <a class="code hl_variable" href="struct_compound_shape_1_1_collide_point_visitor.html#a7f36227c8d0f4ad5e2cf940616f41670">mSubShapeIDCreator</a>;</div>
  276. <div class="line"><a id="l00148" name="l00148"></a><span class="lineno"><a class="line" href="struct_compound_shape_1_1_collide_point_visitor.html#ac192bb3d8ea53f93de9e6fb523b2949a"> 148</a></span> <a class="code hl_class" href="class_collision_collector.html">CollidePointCollector</a> &amp; <a class="code hl_variable" href="struct_compound_shape_1_1_collide_point_visitor.html#ac192bb3d8ea53f93de9e6fb523b2949a">mCollector</a>;</div>
  277. <div class="line"><a id="l00149" name="l00149"></a><span class="lineno"><a class="line" href="struct_compound_shape_1_1_collide_point_visitor.html#adb322db658c73032656a070fad686949"> 149</a></span> <a class="code hl_typedef" href="_core_8h.html#a69aa29b598b851b0640aa225a9e5d61d">uint</a> <a class="code hl_variable" href="struct_compound_shape_1_1_collide_point_visitor.html#adb322db658c73032656a070fad686949">mSubShapeBits</a>;</div>
  278. <div class="line"><a id="l00150" name="l00150"></a><span class="lineno"><a class="line" href="struct_compound_shape_1_1_collide_point_visitor.html#aef8c2ccc7305949bb69db4cfcc56cf85"> 150</a></span> <span class="keyword">const</span> <a class="code hl_class" href="class_shape_filter.html">ShapeFilter</a> &amp; <a class="code hl_variable" href="struct_compound_shape_1_1_collide_point_visitor.html#aef8c2ccc7305949bb69db4cfcc56cf85">mShapeFilter</a>;</div>
  279. <div class="line"><a id="l00151" name="l00151"></a><span class="lineno"> 151</span>};</div>
  280. </div>
  281. <div class="line"><a id="l00152" name="l00152"></a><span class="lineno"> 152</span> </div>
  282. <div class="foldopen" id="foldopen00153" data-start="{" data-end="};">
  283. <div class="line"><a id="l00153" name="l00153"></a><span class="lineno"><a class="line" href="struct_compound_shape_1_1_cast_shape_visitor.html"> 153</a></span><span class="keyword">struct </span><a class="code hl_struct" href="struct_compound_shape_1_1_cast_shape_visitor.html">CompoundShape::CastShapeVisitor</a></div>
  284. <div class="line"><a id="l00154" name="l00154"></a><span class="lineno"> 154</span>{</div>
  285. <div class="foldopen" id="foldopen00155" data-start="{" data-end="}">
  286. <div class="line"><a id="l00155" name="l00155"></a><span class="lineno"><a class="line" href="struct_compound_shape_1_1_cast_shape_visitor.html#abbd8f9db973ff8289d6e7ec10374670b"> 155</a></span> JPH_INLINE <a class="code hl_function" href="struct_compound_shape_1_1_cast_shape_visitor.html#abbd8f9db973ff8289d6e7ec10374670b">CastShapeVisitor</a>(<span class="keyword">const</span> <a class="code hl_struct" href="struct_shape_cast.html">ShapeCast</a> &amp;inShapeCast, <span class="keyword">const</span> <a class="code hl_class" href="class_shape_cast_settings.html">ShapeCastSettings</a> &amp;inShapeCastSettings, <span class="keyword">const</span> <a class="code hl_class" href="class_compound_shape.html">CompoundShape</a> *inShape, <a class="code hl_class" href="class_vec3.html">Vec3Arg</a> inScale, <span class="keyword">const</span> <a class="code hl_class" href="class_shape_filter.html">ShapeFilter</a> &amp;inShapeFilter, <a class="code hl_class" href="class_mat44.html">Mat44Arg</a> inCenterOfMassTransform2, <span class="keyword">const</span> <a class="code hl_class" href="class_sub_shape_i_d_creator.html">SubShapeIDCreator</a> &amp;inSubShapeIDCreator1, <span class="keyword">const</span> <a class="code hl_class" href="class_sub_shape_i_d_creator.html">SubShapeIDCreator</a> &amp;inSubShapeIDCreator2, <a class="code hl_class" href="class_collision_collector.html">CastShapeCollector</a> &amp;ioCollector) :</div>
  287. <div class="line"><a id="l00156" name="l00156"></a><span class="lineno"> 156</span> <a class="code hl_variable" href="struct_compound_shape_1_1_cast_shape_visitor.html#abc86dba5d2e4f85caf6e84e0926fae26">mBoxCenter</a>(inShapeCast.mShapeWorldBounds.GetCenter()),</div>
  288. <div class="line"><a id="l00157" name="l00157"></a><span class="lineno"> 157</span> <a class="code hl_variable" href="struct_compound_shape_1_1_cast_shape_visitor.html#a6fa233b683235d32096365a5d9ac5894">mBoxExtent</a>(inShapeCast.mShapeWorldBounds.GetExtent()),</div>
  289. <div class="line"><a id="l00158" name="l00158"></a><span class="lineno"> 158</span> <a class="code hl_variable" href="struct_compound_shape_1_1_cast_shape_visitor.html#a012a8f770d2d7c6722d0ea074a0ce272">mScale</a>(inScale),</div>
  290. <div class="line"><a id="l00159" name="l00159"></a><span class="lineno"> 159</span> <a class="code hl_variable" href="struct_compound_shape_1_1_cast_shape_visitor.html#a7bcdd12bb40a5694b8cea6c6b72ee730">mShapeCast</a>(inShapeCast),</div>
  291. <div class="line"><a id="l00160" name="l00160"></a><span class="lineno"> 160</span> <a class="code hl_variable" href="struct_compound_shape_1_1_cast_shape_visitor.html#a31cf68987698a4a4d01d6c3db7a25bb8">mShapeCastSettings</a>(inShapeCastSettings),</div>
  292. <div class="line"><a id="l00161" name="l00161"></a><span class="lineno"> 161</span> <a class="code hl_variable" href="struct_compound_shape_1_1_cast_shape_visitor.html#a87b65ee6239d12e86511a22e35911181">mShapeFilter</a>(inShapeFilter),</div>
  293. <div class="line"><a id="l00162" name="l00162"></a><span class="lineno"> 162</span> <a class="code hl_variable" href="struct_compound_shape_1_1_cast_shape_visitor.html#a290ab12059bcc67d2a199f8a57a69027">mCollector</a>(ioCollector),</div>
  294. <div class="line"><a id="l00163" name="l00163"></a><span class="lineno"> 163</span> <a class="code hl_variable" href="struct_compound_shape_1_1_cast_shape_visitor.html#af4a7cfe31a9090b41b803e94f6a35ed5">mCenterOfMassTransform2</a>(inCenterOfMassTransform2),</div>
  295. <div class="line"><a id="l00164" name="l00164"></a><span class="lineno"> 164</span> <a class="code hl_variable" href="struct_compound_shape_1_1_cast_shape_visitor.html#a88be6d8856ed44ab1bce0e18c6716f69">mSubShapeIDCreator1</a>(inSubShapeIDCreator1),</div>
  296. <div class="line"><a id="l00165" name="l00165"></a><span class="lineno"> 165</span> <a class="code hl_variable" href="struct_compound_shape_1_1_cast_shape_visitor.html#a6e39d022fd61dff3cd0572c0a76c0894">mSubShapeIDCreator2</a>(inSubShapeIDCreator2),</div>
  297. <div class="line"><a id="l00166" name="l00166"></a><span class="lineno"> 166</span> <a class="code hl_variable" href="struct_compound_shape_1_1_cast_shape_visitor.html#a71060cc2b409ddda0dd6a8d6da5086a7">mSubShapeBits</a>(inShape-&gt;<a class="code hl_function" href="class_compound_shape.html#a3f4a71f903b9b37eb61262257ca268f2">GetSubShapeIDBits</a>())</div>
  298. <div class="line"><a id="l00167" name="l00167"></a><span class="lineno"> 167</span> {</div>
  299. <div class="line"><a id="l00168" name="l00168"></a><span class="lineno"> 168</span> <span class="comment">// Determine ray properties of cast</span></div>
  300. <div class="line"><a id="l00169" name="l00169"></a><span class="lineno"> 169</span> <a class="code hl_variable" href="struct_compound_shape_1_1_cast_shape_visitor.html#ae3d1ce73b6255f42f50e9acb10608477">mInvDirection</a>.<a class="code hl_function" href="class_ray_inv_direction.html#ac9569874f14ade61e966744af2abdc79">Set</a>(inShapeCast.<a class="code hl_variable" href="struct_shape_cast_t.html#a4b45c3421b2f87e1553bb3325ca64752">mDirection</a>);</div>
  301. <div class="line"><a id="l00170" name="l00170"></a><span class="lineno"> 170</span> }</div>
  302. </div>
  303. <div class="line"><a id="l00171" name="l00171"></a><span class="lineno"> 171</span> </div>
  304. <div class="foldopen" id="foldopen00173" data-start="{" data-end="}">
  305. <div class="line"><a id="l00173" name="l00173"></a><span class="lineno"><a class="line" href="struct_compound_shape_1_1_cast_shape_visitor.html#a11687e8851b02a264d77bfa665822398"> 173</a></span> JPH_INLINE <span class="keywordtype">bool</span> <a class="code hl_function" href="struct_compound_shape_1_1_cast_shape_visitor.html#a11687e8851b02a264d77bfa665822398">ShouldAbort</a>()<span class="keyword"> const</span></div>
  306. <div class="line"><a id="l00174" name="l00174"></a><span class="lineno"> 174</span><span class="keyword"> </span>{</div>
  307. <div class="line"><a id="l00175" name="l00175"></a><span class="lineno"> 175</span> <span class="keywordflow">return</span> <a class="code hl_variable" href="struct_compound_shape_1_1_cast_shape_visitor.html#a290ab12059bcc67d2a199f8a57a69027">mCollector</a>.<a class="code hl_function" href="class_collision_collector.html#a45cb1cfbb5ec957d3c66b65d2333d825">ShouldEarlyOut</a>();</div>
  308. <div class="line"><a id="l00176" name="l00176"></a><span class="lineno"> 176</span> }</div>
  309. </div>
  310. <div class="line"><a id="l00177" name="l00177"></a><span class="lineno"> 177</span> </div>
  311. <div class="foldopen" id="foldopen00179" data-start="{" data-end="}">
  312. <div class="line"><a id="l00179" name="l00179"></a><span class="lineno"><a class="line" href="struct_compound_shape_1_1_cast_shape_visitor.html#aa89ca00f54a79ed5ead44eebbc25f41e"> 179</a></span> JPH_INLINE <a class="code hl_class" href="class_vec4.html">Vec4</a> <a class="code hl_function" href="struct_compound_shape_1_1_cast_shape_visitor.html#aa89ca00f54a79ed5ead44eebbc25f41e">TestBounds</a>(<a class="code hl_class" href="class_vec4.html">Vec4Arg</a> inBoundsMinX, <a class="code hl_class" href="class_vec4.html">Vec4Arg</a> inBoundsMinY, <a class="code hl_class" href="class_vec4.html">Vec4Arg</a> inBoundsMinZ, <a class="code hl_class" href="class_vec4.html">Vec4Arg</a> inBoundsMaxX, <a class="code hl_class" href="class_vec4.html">Vec4Arg</a> inBoundsMaxY, <a class="code hl_class" href="class_vec4.html">Vec4Arg</a> inBoundsMaxZ)<span class="keyword"> const</span></div>
  313. <div class="line"><a id="l00180" name="l00180"></a><span class="lineno"> 180</span><span class="keyword"> </span>{</div>
  314. <div class="line"><a id="l00181" name="l00181"></a><span class="lineno"> 181</span> <span class="comment">// Scale the bounding boxes</span></div>
  315. <div class="line"><a id="l00182" name="l00182"></a><span class="lineno"> 182</span> <a class="code hl_class" href="class_vec4.html">Vec4</a> bounds_min_x, bounds_min_y, bounds_min_z, bounds_max_x, bounds_max_y, bounds_max_z;</div>
  316. <div class="line"><a id="l00183" name="l00183"></a><span class="lineno"> 183</span> <a class="code hl_function" href="_a_a_box4_8h.html#afdbaad9921240fb3b210eab09cede242">AABox4Scale</a>(<a class="code hl_variable" href="struct_compound_shape_1_1_cast_shape_visitor.html#a012a8f770d2d7c6722d0ea074a0ce272">mScale</a>, inBoundsMinX, inBoundsMinY, inBoundsMinZ, inBoundsMaxX, inBoundsMaxY, inBoundsMaxZ, bounds_min_x, bounds_min_y, bounds_min_z, bounds_max_x, bounds_max_y, bounds_max_z);</div>
  317. <div class="line"><a id="l00184" name="l00184"></a><span class="lineno"> 184</span> </div>
  318. <div class="line"><a id="l00185" name="l00185"></a><span class="lineno"> 185</span> <span class="comment">// Enlarge them by the casted shape&#39;s box extents</span></div>
  319. <div class="line"><a id="l00186" name="l00186"></a><span class="lineno"> 186</span> <a class="code hl_function" href="_a_a_box4_8h.html#afc6a0849cd38d215de0f02ee553de99f">AABox4EnlargeWithExtent</a>(<a class="code hl_variable" href="struct_compound_shape_1_1_cast_shape_visitor.html#a6fa233b683235d32096365a5d9ac5894">mBoxExtent</a>, bounds_min_x, bounds_min_y, bounds_min_z, bounds_max_x, bounds_max_y, bounds_max_z);</div>
  320. <div class="line"><a id="l00187" name="l00187"></a><span class="lineno"> 187</span> </div>
  321. <div class="line"><a id="l00188" name="l00188"></a><span class="lineno"> 188</span> <span class="comment">// Test ray against the bounding boxes</span></div>
  322. <div class="line"><a id="l00189" name="l00189"></a><span class="lineno"> 189</span> <span class="keywordflow">return</span> <a class="code hl_function" href="_ray_a_a_box_8h.html#a47b273497f8309ea15797696f48f41ad">RayAABox4</a>(<a class="code hl_variable" href="struct_compound_shape_1_1_cast_shape_visitor.html#abc86dba5d2e4f85caf6e84e0926fae26">mBoxCenter</a>, <a class="code hl_variable" href="struct_compound_shape_1_1_cast_shape_visitor.html#ae3d1ce73b6255f42f50e9acb10608477">mInvDirection</a>, bounds_min_x, bounds_min_y, bounds_min_z, bounds_max_x, bounds_max_y, bounds_max_z);</div>
  323. <div class="line"><a id="l00190" name="l00190"></a><span class="lineno"> 190</span> }</div>
  324. </div>
  325. <div class="line"><a id="l00191" name="l00191"></a><span class="lineno"> 191</span> </div>
  326. <div class="foldopen" id="foldopen00193" data-start="{" data-end="}">
  327. <div class="line"><a id="l00193" name="l00193"></a><span class="lineno"><a class="line" href="struct_compound_shape_1_1_cast_shape_visitor.html#aa834797c904738fc3bee984367a46df4"> 193</a></span> JPH_INLINE <span class="keywordtype">void</span> <a class="code hl_function" href="struct_compound_shape_1_1_cast_shape_visitor.html#aa834797c904738fc3bee984367a46df4">VisitShape</a>(<span class="keyword">const</span> <a class="code hl_struct" href="struct_compound_shape_1_1_sub_shape.html">SubShape</a> &amp;inSubShape, <a class="code hl_typedef" href="_core_8h.html#a8f95e75e58492e87412191fabadd8ca8">uint32</a> inSubShapeIndex)</div>
  328. <div class="line"><a id="l00194" name="l00194"></a><span class="lineno"> 194</span> {</div>
  329. <div class="line"><a id="l00195" name="l00195"></a><span class="lineno"> 195</span> <a class="code hl_define" href="_issue_reporting_8h.html#aaf6b1df827e11b7ca5f6f8778bd8f8cd">JPH_ASSERT</a>(inSubShape.<a class="code hl_function" href="struct_compound_shape_1_1_sub_shape.html#a33448959f96311ef875a912b8a104dcf">IsValidScale</a>(<a class="code hl_variable" href="struct_compound_shape_1_1_cast_shape_visitor.html#a012a8f770d2d7c6722d0ea074a0ce272">mScale</a>));</div>
  330. <div class="line"><a id="l00196" name="l00196"></a><span class="lineno"> 196</span> </div>
  331. <div class="line"><a id="l00197" name="l00197"></a><span class="lineno"> 197</span> <span class="comment">// Create ID for sub shape</span></div>
  332. <div class="line"><a id="l00198" name="l00198"></a><span class="lineno"> 198</span> <a class="code hl_class" href="class_sub_shape_i_d_creator.html">SubShapeIDCreator</a> shape2_sub_shape_id = <a class="code hl_variable" href="struct_compound_shape_1_1_cast_shape_visitor.html#a6e39d022fd61dff3cd0572c0a76c0894">mSubShapeIDCreator2</a>.<a class="code hl_function" href="class_sub_shape_i_d_creator.html#a29997885833b2c9625bcbcba4548273d">PushID</a>(inSubShapeIndex, <a class="code hl_variable" href="struct_compound_shape_1_1_cast_shape_visitor.html#a71060cc2b409ddda0dd6a8d6da5086a7">mSubShapeBits</a>);</div>
  333. <div class="line"><a id="l00199" name="l00199"></a><span class="lineno"> 199</span> </div>
  334. <div class="line"><a id="l00200" name="l00200"></a><span class="lineno"> 200</span> <span class="comment">// Calculate the local transform for this sub shape</span></div>
  335. <div class="line"><a id="l00201" name="l00201"></a><span class="lineno"> 201</span> <a class="code hl_class" href="class_mat44.html">Mat44</a> local_transform = <a class="code hl_function" href="class_mat44.html#aba5427f45393b40263d52ec614cfa985">Mat44::sRotationTranslation</a>(inSubShape.<a class="code hl_function" href="struct_compound_shape_1_1_sub_shape.html#a13d700b0e7064e9ecdf99afdc0262eae">GetRotation</a>(), <a class="code hl_variable" href="struct_compound_shape_1_1_cast_shape_visitor.html#a012a8f770d2d7c6722d0ea074a0ce272">mScale</a> * inSubShape.<a class="code hl_function" href="struct_compound_shape_1_1_sub_shape.html#ac3fea8705474011f4f5681c18fcdaaa2">GetPositionCOM</a>());</div>
  336. <div class="line"><a id="l00202" name="l00202"></a><span class="lineno"> 202</span> </div>
  337. <div class="line"><a id="l00203" name="l00203"></a><span class="lineno"> 203</span> <span class="comment">// Transform the center of mass of 2</span></div>
  338. <div class="line"><a id="l00204" name="l00204"></a><span class="lineno"> 204</span> <a class="code hl_class" href="class_mat44.html">Mat44</a> center_of_mass_transform2 = <a class="code hl_variable" href="struct_compound_shape_1_1_cast_shape_visitor.html#af4a7cfe31a9090b41b803e94f6a35ed5">mCenterOfMassTransform2</a> * local_transform;</div>
  339. <div class="line"><a id="l00205" name="l00205"></a><span class="lineno"> 205</span> </div>
  340. <div class="line"><a id="l00206" name="l00206"></a><span class="lineno"> 206</span> <span class="comment">// Transform the shape cast</span></div>
  341. <div class="line"><a id="l00207" name="l00207"></a><span class="lineno"> 207</span> <a class="code hl_struct" href="struct_shape_cast.html">ShapeCast</a> shape_cast = <a class="code hl_variable" href="struct_compound_shape_1_1_cast_shape_visitor.html#a7bcdd12bb40a5694b8cea6c6b72ee730">mShapeCast</a>.<a class="code hl_function" href="struct_shape_cast_t.html#ab07dbf4278d79895fb480781d24db2f3">PostTransformed</a>(local_transform.<a class="code hl_function" href="class_mat44.html#af962ad0ed20cb6112f8249cb9573c233">InversedRotationTranslation</a>());</div>
  342. <div class="line"><a id="l00208" name="l00208"></a><span class="lineno"> 208</span> </div>
  343. <div class="line"><a id="l00209" name="l00209"></a><span class="lineno"> 209</span> <a class="code hl_function" href="class_collision_dispatch.html#a684c783f79569805d64cd436800b1d2a">CollisionDispatch::sCastShapeVsShapeLocalSpace</a>(shape_cast, <a class="code hl_variable" href="struct_compound_shape_1_1_cast_shape_visitor.html#a31cf68987698a4a4d01d6c3db7a25bb8">mShapeCastSettings</a>, inSubShape.<a class="code hl_variable" href="struct_compound_shape_1_1_sub_shape.html#af0e288762fbe4fcdec676ce1836d5375">mShape</a>, inSubShape.<a class="code hl_function" href="struct_compound_shape_1_1_sub_shape.html#a92de7326e077355d680f2d6ce860d7fc">TransformScale</a>(<a class="code hl_variable" href="struct_compound_shape_1_1_cast_shape_visitor.html#a012a8f770d2d7c6722d0ea074a0ce272">mScale</a>), <a class="code hl_variable" href="struct_compound_shape_1_1_cast_shape_visitor.html#a87b65ee6239d12e86511a22e35911181">mShapeFilter</a>, center_of_mass_transform2, <a class="code hl_variable" href="struct_compound_shape_1_1_cast_shape_visitor.html#a88be6d8856ed44ab1bce0e18c6716f69">mSubShapeIDCreator1</a>, shape2_sub_shape_id, <a class="code hl_variable" href="struct_compound_shape_1_1_cast_shape_visitor.html#a290ab12059bcc67d2a199f8a57a69027">mCollector</a>);</div>
  344. <div class="line"><a id="l00210" name="l00210"></a><span class="lineno"> 210</span> }</div>
  345. </div>
  346. <div class="line"><a id="l00211" name="l00211"></a><span class="lineno"> 211</span> </div>
  347. <div class="line"><a id="l00212" name="l00212"></a><span class="lineno"><a class="line" href="struct_compound_shape_1_1_cast_shape_visitor.html#ae3d1ce73b6255f42f50e9acb10608477"> 212</a></span> <a class="code hl_class" href="class_ray_inv_direction.html">RayInvDirection</a> <a class="code hl_variable" href="struct_compound_shape_1_1_cast_shape_visitor.html#ae3d1ce73b6255f42f50e9acb10608477">mInvDirection</a>;</div>
  348. <div class="line"><a id="l00213" name="l00213"></a><span class="lineno"><a class="line" href="struct_compound_shape_1_1_cast_shape_visitor.html#abc86dba5d2e4f85caf6e84e0926fae26"> 213</a></span> <a class="code hl_class" href="class_vec3.html">Vec3</a> <a class="code hl_variable" href="struct_compound_shape_1_1_cast_shape_visitor.html#abc86dba5d2e4f85caf6e84e0926fae26">mBoxCenter</a>;</div>
  349. <div class="line"><a id="l00214" name="l00214"></a><span class="lineno"><a class="line" href="struct_compound_shape_1_1_cast_shape_visitor.html#a6fa233b683235d32096365a5d9ac5894"> 214</a></span> <a class="code hl_class" href="class_vec3.html">Vec3</a> <a class="code hl_variable" href="struct_compound_shape_1_1_cast_shape_visitor.html#a6fa233b683235d32096365a5d9ac5894">mBoxExtent</a>;</div>
  350. <div class="line"><a id="l00215" name="l00215"></a><span class="lineno"><a class="line" href="struct_compound_shape_1_1_cast_shape_visitor.html#a012a8f770d2d7c6722d0ea074a0ce272"> 215</a></span> <a class="code hl_class" href="class_vec3.html">Vec3</a> <a class="code hl_variable" href="struct_compound_shape_1_1_cast_shape_visitor.html#a012a8f770d2d7c6722d0ea074a0ce272">mScale</a>;</div>
  351. <div class="line"><a id="l00216" name="l00216"></a><span class="lineno"><a class="line" href="struct_compound_shape_1_1_cast_shape_visitor.html#a7bcdd12bb40a5694b8cea6c6b72ee730"> 216</a></span> <span class="keyword">const</span> <a class="code hl_struct" href="struct_shape_cast.html">ShapeCast</a> &amp; <a class="code hl_variable" href="struct_compound_shape_1_1_cast_shape_visitor.html#a7bcdd12bb40a5694b8cea6c6b72ee730">mShapeCast</a>;</div>
  352. <div class="line"><a id="l00217" name="l00217"></a><span class="lineno"><a class="line" href="struct_compound_shape_1_1_cast_shape_visitor.html#a31cf68987698a4a4d01d6c3db7a25bb8"> 217</a></span> <span class="keyword">const</span> <a class="code hl_class" href="class_shape_cast_settings.html">ShapeCastSettings</a> &amp; <a class="code hl_variable" href="struct_compound_shape_1_1_cast_shape_visitor.html#a31cf68987698a4a4d01d6c3db7a25bb8">mShapeCastSettings</a>;</div>
  353. <div class="line"><a id="l00218" name="l00218"></a><span class="lineno"><a class="line" href="struct_compound_shape_1_1_cast_shape_visitor.html#a87b65ee6239d12e86511a22e35911181"> 218</a></span> <span class="keyword">const</span> <a class="code hl_class" href="class_shape_filter.html">ShapeFilter</a> &amp; <a class="code hl_variable" href="struct_compound_shape_1_1_cast_shape_visitor.html#a87b65ee6239d12e86511a22e35911181">mShapeFilter</a>;</div>
  354. <div class="line"><a id="l00219" name="l00219"></a><span class="lineno"><a class="line" href="struct_compound_shape_1_1_cast_shape_visitor.html#a290ab12059bcc67d2a199f8a57a69027"> 219</a></span> <a class="code hl_class" href="class_collision_collector.html">CastShapeCollector</a> &amp; <a class="code hl_variable" href="struct_compound_shape_1_1_cast_shape_visitor.html#a290ab12059bcc67d2a199f8a57a69027">mCollector</a>;</div>
  355. <div class="line"><a id="l00220" name="l00220"></a><span class="lineno"><a class="line" href="struct_compound_shape_1_1_cast_shape_visitor.html#af4a7cfe31a9090b41b803e94f6a35ed5"> 220</a></span> <a class="code hl_class" href="class_mat44.html">Mat44</a> <a class="code hl_variable" href="struct_compound_shape_1_1_cast_shape_visitor.html#af4a7cfe31a9090b41b803e94f6a35ed5">mCenterOfMassTransform2</a>;</div>
  356. <div class="line"><a id="l00221" name="l00221"></a><span class="lineno"><a class="line" href="struct_compound_shape_1_1_cast_shape_visitor.html#a88be6d8856ed44ab1bce0e18c6716f69"> 221</a></span> <a class="code hl_class" href="class_sub_shape_i_d_creator.html">SubShapeIDCreator</a> <a class="code hl_variable" href="struct_compound_shape_1_1_cast_shape_visitor.html#a88be6d8856ed44ab1bce0e18c6716f69">mSubShapeIDCreator1</a>;</div>
  357. <div class="line"><a id="l00222" name="l00222"></a><span class="lineno"><a class="line" href="struct_compound_shape_1_1_cast_shape_visitor.html#a6e39d022fd61dff3cd0572c0a76c0894"> 222</a></span> <a class="code hl_class" href="class_sub_shape_i_d_creator.html">SubShapeIDCreator</a> <a class="code hl_variable" href="struct_compound_shape_1_1_cast_shape_visitor.html#a6e39d022fd61dff3cd0572c0a76c0894">mSubShapeIDCreator2</a>;</div>
  358. <div class="line"><a id="l00223" name="l00223"></a><span class="lineno"><a class="line" href="struct_compound_shape_1_1_cast_shape_visitor.html#a71060cc2b409ddda0dd6a8d6da5086a7"> 223</a></span> <a class="code hl_typedef" href="_core_8h.html#a69aa29b598b851b0640aa225a9e5d61d">uint</a> <a class="code hl_variable" href="struct_compound_shape_1_1_cast_shape_visitor.html#a71060cc2b409ddda0dd6a8d6da5086a7">mSubShapeBits</a>;</div>
  359. <div class="line"><a id="l00224" name="l00224"></a><span class="lineno"> 224</span>};</div>
  360. </div>
  361. <div class="line"><a id="l00225" name="l00225"></a><span class="lineno"> 225</span> </div>
  362. <div class="foldopen" id="foldopen00226" data-start="{" data-end="};">
  363. <div class="line"><a id="l00226" name="l00226"></a><span class="lineno"><a class="line" href="struct_compound_shape_1_1_collect_transformed_shapes_visitor.html"> 226</a></span><span class="keyword">struct </span><a class="code hl_struct" href="struct_compound_shape_1_1_collect_transformed_shapes_visitor.html">CompoundShape::CollectTransformedShapesVisitor</a></div>
  364. <div class="line"><a id="l00227" name="l00227"></a><span class="lineno"> 227</span>{</div>
  365. <div class="foldopen" id="foldopen00228" data-start="{" data-end="}">
  366. <div class="line"><a id="l00228" name="l00228"></a><span class="lineno"><a class="line" href="struct_compound_shape_1_1_collect_transformed_shapes_visitor.html#a68b2dd66eeaafdf0fcb240f1bfd66b44"> 228</a></span> JPH_INLINE <a class="code hl_function" href="struct_compound_shape_1_1_collect_transformed_shapes_visitor.html#a68b2dd66eeaafdf0fcb240f1bfd66b44">CollectTransformedShapesVisitor</a>(<span class="keyword">const</span> <a class="code hl_class" href="class_a_a_box.html">AABox</a> &amp;inBox, <span class="keyword">const</span> <a class="code hl_class" href="class_compound_shape.html">CompoundShape</a> *inShape, <a class="code hl_class" href="class_vec3.html">Vec3Arg</a> inPositionCOM, <a class="code hl_class" href="class_quat.html">QuatArg</a> inRotation, <a class="code hl_class" href="class_vec3.html">Vec3Arg</a> inScale, <span class="keyword">const</span> <a class="code hl_class" href="class_sub_shape_i_d_creator.html">SubShapeIDCreator</a> &amp;inSubShapeIDCreator, <a class="code hl_class" href="class_collision_collector.html">TransformedShapeCollector</a> &amp;ioCollector, <span class="keyword">const</span> <a class="code hl_class" href="class_shape_filter.html">ShapeFilter</a> &amp;inShapeFilter) :</div>
  367. <div class="line"><a id="l00229" name="l00229"></a><span class="lineno"> 229</span> <a class="code hl_variable" href="struct_compound_shape_1_1_collect_transformed_shapes_visitor.html#a55cc06cb9e9d00cc51e902e0b038d96e">mBox</a>(inBox),</div>
  368. <div class="line"><a id="l00230" name="l00230"></a><span class="lineno"> 230</span> <a class="code hl_variable" href="struct_compound_shape_1_1_collect_transformed_shapes_visitor.html#ae803bcfcf769987698f075c49f34708b">mLocalBox</a>(<a class="code hl_class" href="class_mat44.html">Mat44</a>::sInverseRotationTranslation(inRotation, inPositionCOM), inBox),</div>
  369. <div class="line"><a id="l00231" name="l00231"></a><span class="lineno"> 231</span> <a class="code hl_variable" href="struct_compound_shape_1_1_collect_transformed_shapes_visitor.html#a0b73160273b742d692193d37e4f5e571">mPositionCOM</a>(inPositionCOM),</div>
  370. <div class="line"><a id="l00232" name="l00232"></a><span class="lineno"> 232</span> <a class="code hl_variable" href="struct_compound_shape_1_1_collect_transformed_shapes_visitor.html#a47b09d94bdefcf6a75a756f3e37c339f">mRotation</a>(inRotation),</div>
  371. <div class="line"><a id="l00233" name="l00233"></a><span class="lineno"> 233</span> <a class="code hl_variable" href="struct_compound_shape_1_1_collect_transformed_shapes_visitor.html#a760002fad6044539aaa17b42c293032c">mScale</a>(inScale),</div>
  372. <div class="line"><a id="l00234" name="l00234"></a><span class="lineno"> 234</span> <a class="code hl_variable" href="struct_compound_shape_1_1_collect_transformed_shapes_visitor.html#a613d75816ac10978847612943afa504e">mSubShapeIDCreator</a>(inSubShapeIDCreator),</div>
  373. <div class="line"><a id="l00235" name="l00235"></a><span class="lineno"> 235</span> <a class="code hl_variable" href="struct_compound_shape_1_1_collect_transformed_shapes_visitor.html#a888023b455a023aa817178a3ccc50797">mCollector</a>(ioCollector),</div>
  374. <div class="line"><a id="l00236" name="l00236"></a><span class="lineno"> 236</span> <a class="code hl_variable" href="struct_compound_shape_1_1_collect_transformed_shapes_visitor.html#ae36c22c62df54bfaabe0272463b0b32c">mSubShapeBits</a>(inShape-&gt;<a class="code hl_function" href="class_compound_shape.html#a3f4a71f903b9b37eb61262257ca268f2">GetSubShapeIDBits</a>()),</div>
  375. <div class="line"><a id="l00237" name="l00237"></a><span class="lineno"> 237</span> <a class="code hl_variable" href="struct_compound_shape_1_1_collect_transformed_shapes_visitor.html#ab0b166da6e14b8694b567f68605c3225">mShapeFilter</a>(inShapeFilter)</div>
  376. <div class="line"><a id="l00238" name="l00238"></a><span class="lineno"> 238</span> {</div>
  377. <div class="line"><a id="l00239" name="l00239"></a><span class="lineno"> 239</span> }</div>
  378. </div>
  379. <div class="line"><a id="l00240" name="l00240"></a><span class="lineno"> 240</span> </div>
  380. <div class="foldopen" id="foldopen00242" data-start="{" data-end="}">
  381. <div class="line"><a id="l00242" name="l00242"></a><span class="lineno"><a class="line" href="struct_compound_shape_1_1_collect_transformed_shapes_visitor.html#a0514f8498006d248fc1ca54e5420ba41"> 242</a></span> JPH_INLINE <span class="keywordtype">bool</span> <a class="code hl_function" href="struct_compound_shape_1_1_collect_transformed_shapes_visitor.html#a0514f8498006d248fc1ca54e5420ba41">ShouldAbort</a>()<span class="keyword"> const</span></div>
  382. <div class="line"><a id="l00243" name="l00243"></a><span class="lineno"> 243</span><span class="keyword"> </span>{</div>
  383. <div class="line"><a id="l00244" name="l00244"></a><span class="lineno"> 244</span> <span class="keywordflow">return</span> <a class="code hl_variable" href="struct_compound_shape_1_1_collect_transformed_shapes_visitor.html#a888023b455a023aa817178a3ccc50797">mCollector</a>.<a class="code hl_function" href="class_collision_collector.html#a45cb1cfbb5ec957d3c66b65d2333d825">ShouldEarlyOut</a>();</div>
  384. <div class="line"><a id="l00245" name="l00245"></a><span class="lineno"> 245</span> }</div>
  385. </div>
  386. <div class="line"><a id="l00246" name="l00246"></a><span class="lineno"> 246</span> </div>
  387. <div class="foldopen" id="foldopen00248" data-start="{" data-end="}">
  388. <div class="line"><a id="l00248" name="l00248"></a><span class="lineno"><a class="line" href="struct_compound_shape_1_1_collect_transformed_shapes_visitor.html#ae2e78802ce43915c117bc1e0d91d08b5"> 248</a></span> JPH_INLINE <a class="code hl_class" href="class_u_vec4.html">UVec4</a> <a class="code hl_function" href="struct_compound_shape_1_1_collect_transformed_shapes_visitor.html#ae2e78802ce43915c117bc1e0d91d08b5">TestBounds</a>(<a class="code hl_class" href="class_vec4.html">Vec4Arg</a> inBoundsMinX, <a class="code hl_class" href="class_vec4.html">Vec4Arg</a> inBoundsMinY, <a class="code hl_class" href="class_vec4.html">Vec4Arg</a> inBoundsMinZ, <a class="code hl_class" href="class_vec4.html">Vec4Arg</a> inBoundsMaxX, <a class="code hl_class" href="class_vec4.html">Vec4Arg</a> inBoundsMaxY, <a class="code hl_class" href="class_vec4.html">Vec4Arg</a> inBoundsMaxZ)<span class="keyword"> const</span></div>
  389. <div class="line"><a id="l00249" name="l00249"></a><span class="lineno"> 249</span><span class="keyword"> </span>{</div>
  390. <div class="line"><a id="l00250" name="l00250"></a><span class="lineno"> 250</span> <span class="comment">// Scale the bounding boxes of this node</span></div>
  391. <div class="line"><a id="l00251" name="l00251"></a><span class="lineno"> 251</span> <a class="code hl_class" href="class_vec4.html">Vec4</a> bounds_min_x, bounds_min_y, bounds_min_z, bounds_max_x, bounds_max_y, bounds_max_z;</div>
  392. <div class="line"><a id="l00252" name="l00252"></a><span class="lineno"> 252</span> <a class="code hl_function" href="_a_a_box4_8h.html#afdbaad9921240fb3b210eab09cede242">AABox4Scale</a>(<a class="code hl_variable" href="struct_compound_shape_1_1_collect_transformed_shapes_visitor.html#a760002fad6044539aaa17b42c293032c">mScale</a>, inBoundsMinX, inBoundsMinY, inBoundsMinZ, inBoundsMaxX, inBoundsMaxY, inBoundsMaxZ, bounds_min_x, bounds_min_y, bounds_min_z, bounds_max_x, bounds_max_y, bounds_max_z);</div>
  393. <div class="line"><a id="l00253" name="l00253"></a><span class="lineno"> 253</span> </div>
  394. <div class="line"><a id="l00254" name="l00254"></a><span class="lineno"> 254</span> <span class="comment">// Test which nodes collide</span></div>
  395. <div class="line"><a id="l00255" name="l00255"></a><span class="lineno"> 255</span> <span class="keywordflow">return</span> <a class="code hl_function" href="_a_a_box4_8h.html#a99b05cb64dcecc32ddc482050e45321c">AABox4VsBox</a>(<a class="code hl_variable" href="struct_compound_shape_1_1_collect_transformed_shapes_visitor.html#ae803bcfcf769987698f075c49f34708b">mLocalBox</a>, bounds_min_x, bounds_min_y, bounds_min_z, bounds_max_x, bounds_max_y, bounds_max_z);</div>
  396. <div class="line"><a id="l00256" name="l00256"></a><span class="lineno"> 256</span> }</div>
  397. </div>
  398. <div class="line"><a id="l00257" name="l00257"></a><span class="lineno"> 257</span> </div>
  399. <div class="foldopen" id="foldopen00259" data-start="{" data-end="}">
  400. <div class="line"><a id="l00259" name="l00259"></a><span class="lineno"><a class="line" href="struct_compound_shape_1_1_collect_transformed_shapes_visitor.html#a40155b16c19875b30971665976d2b3be"> 259</a></span> JPH_INLINE <span class="keywordtype">void</span> <a class="code hl_function" href="struct_compound_shape_1_1_collect_transformed_shapes_visitor.html#a40155b16c19875b30971665976d2b3be">VisitShape</a>(<span class="keyword">const</span> <a class="code hl_struct" href="struct_compound_shape_1_1_sub_shape.html">SubShape</a> &amp;inSubShape, <a class="code hl_typedef" href="_core_8h.html#a8f95e75e58492e87412191fabadd8ca8">uint32</a> inSubShapeIndex)</div>
  401. <div class="line"><a id="l00260" name="l00260"></a><span class="lineno"> 260</span> {</div>
  402. <div class="line"><a id="l00261" name="l00261"></a><span class="lineno"> 261</span> <a class="code hl_define" href="_issue_reporting_8h.html#aaf6b1df827e11b7ca5f6f8778bd8f8cd">JPH_ASSERT</a>(inSubShape.<a class="code hl_function" href="struct_compound_shape_1_1_sub_shape.html#a33448959f96311ef875a912b8a104dcf">IsValidScale</a>(<a class="code hl_variable" href="struct_compound_shape_1_1_collect_transformed_shapes_visitor.html#a760002fad6044539aaa17b42c293032c">mScale</a>));</div>
  403. <div class="line"><a id="l00262" name="l00262"></a><span class="lineno"> 262</span> </div>
  404. <div class="line"><a id="l00263" name="l00263"></a><span class="lineno"> 263</span> <span class="comment">// Create ID for sub shape</span></div>
  405. <div class="line"><a id="l00264" name="l00264"></a><span class="lineno"> 264</span> <a class="code hl_class" href="class_sub_shape_i_d_creator.html">SubShapeIDCreator</a> sub_shape_id = <a class="code hl_variable" href="struct_compound_shape_1_1_collect_transformed_shapes_visitor.html#a613d75816ac10978847612943afa504e">mSubShapeIDCreator</a>.<a class="code hl_function" href="class_sub_shape_i_d_creator.html#a29997885833b2c9625bcbcba4548273d">PushID</a>(inSubShapeIndex, <a class="code hl_variable" href="struct_compound_shape_1_1_collect_transformed_shapes_visitor.html#ae36c22c62df54bfaabe0272463b0b32c">mSubShapeBits</a>);</div>
  406. <div class="line"><a id="l00265" name="l00265"></a><span class="lineno"> 265</span> </div>
  407. <div class="line"><a id="l00266" name="l00266"></a><span class="lineno"> 266</span> <span class="comment">// Calculate world transform for sub shape</span></div>
  408. <div class="line"><a id="l00267" name="l00267"></a><span class="lineno"> 267</span> <a class="code hl_class" href="class_vec3.html">Vec3</a> position = <a class="code hl_variable" href="struct_compound_shape_1_1_collect_transformed_shapes_visitor.html#a0b73160273b742d692193d37e4f5e571">mPositionCOM</a> + <a class="code hl_variable" href="struct_compound_shape_1_1_collect_transformed_shapes_visitor.html#a47b09d94bdefcf6a75a756f3e37c339f">mRotation</a> * (<a class="code hl_variable" href="struct_compound_shape_1_1_collect_transformed_shapes_visitor.html#a760002fad6044539aaa17b42c293032c">mScale</a> * inSubShape.<a class="code hl_function" href="struct_compound_shape_1_1_sub_shape.html#ac3fea8705474011f4f5681c18fcdaaa2">GetPositionCOM</a>());</div>
  409. <div class="line"><a id="l00268" name="l00268"></a><span class="lineno"> 268</span> <a class="code hl_class" href="class_quat.html">Quat</a> rotation = <a class="code hl_variable" href="struct_compound_shape_1_1_collect_transformed_shapes_visitor.html#a47b09d94bdefcf6a75a756f3e37c339f">mRotation</a> * inSubShape.<a class="code hl_function" href="struct_compound_shape_1_1_sub_shape.html#a13d700b0e7064e9ecdf99afdc0262eae">GetRotation</a>();</div>
  410. <div class="line"><a id="l00269" name="l00269"></a><span class="lineno"> 269</span> </div>
  411. <div class="line"><a id="l00270" name="l00270"></a><span class="lineno"> 270</span> <span class="comment">// Recurse to sub shape</span></div>
  412. <div class="line"><a id="l00271" name="l00271"></a><span class="lineno"> 271</span> inSubShape.<a class="code hl_variable" href="struct_compound_shape_1_1_sub_shape.html#af0e288762fbe4fcdec676ce1836d5375">mShape</a>-&gt;<a class="code hl_function" href="class_shape.html#a3ed865e7eb30221b418cfd61d1430173">CollectTransformedShapes</a>(<a class="code hl_variable" href="struct_compound_shape_1_1_collect_transformed_shapes_visitor.html#a55cc06cb9e9d00cc51e902e0b038d96e">mBox</a>, position, rotation, inSubShape.<a class="code hl_function" href="struct_compound_shape_1_1_sub_shape.html#a92de7326e077355d680f2d6ce860d7fc">TransformScale</a>(<a class="code hl_variable" href="struct_compound_shape_1_1_collect_transformed_shapes_visitor.html#a760002fad6044539aaa17b42c293032c">mScale</a>), sub_shape_id, <a class="code hl_variable" href="struct_compound_shape_1_1_collect_transformed_shapes_visitor.html#a888023b455a023aa817178a3ccc50797">mCollector</a>, <a class="code hl_variable" href="struct_compound_shape_1_1_collect_transformed_shapes_visitor.html#ab0b166da6e14b8694b567f68605c3225">mShapeFilter</a>);</div>
  413. <div class="line"><a id="l00272" name="l00272"></a><span class="lineno"> 272</span> }</div>
  414. </div>
  415. <div class="line"><a id="l00273" name="l00273"></a><span class="lineno"> 273</span> </div>
  416. <div class="line"><a id="l00274" name="l00274"></a><span class="lineno"><a class="line" href="struct_compound_shape_1_1_collect_transformed_shapes_visitor.html#a55cc06cb9e9d00cc51e902e0b038d96e"> 274</a></span> <a class="code hl_class" href="class_a_a_box.html">AABox</a> <a class="code hl_variable" href="struct_compound_shape_1_1_collect_transformed_shapes_visitor.html#a55cc06cb9e9d00cc51e902e0b038d96e">mBox</a>;</div>
  417. <div class="line"><a id="l00275" name="l00275"></a><span class="lineno"><a class="line" href="struct_compound_shape_1_1_collect_transformed_shapes_visitor.html#ae803bcfcf769987698f075c49f34708b"> 275</a></span> <a class="code hl_class" href="class_oriented_box.html">OrientedBox</a> <a class="code hl_variable" href="struct_compound_shape_1_1_collect_transformed_shapes_visitor.html#ae803bcfcf769987698f075c49f34708b">mLocalBox</a>;</div>
  418. <div class="line"><a id="l00276" name="l00276"></a><span class="lineno"><a class="line" href="struct_compound_shape_1_1_collect_transformed_shapes_visitor.html#a0b73160273b742d692193d37e4f5e571"> 276</a></span> <a class="code hl_class" href="class_vec3.html">Vec3</a> <a class="code hl_variable" href="struct_compound_shape_1_1_collect_transformed_shapes_visitor.html#a0b73160273b742d692193d37e4f5e571">mPositionCOM</a>;</div>
  419. <div class="line"><a id="l00277" name="l00277"></a><span class="lineno"><a class="line" href="struct_compound_shape_1_1_collect_transformed_shapes_visitor.html#a47b09d94bdefcf6a75a756f3e37c339f"> 277</a></span> <a class="code hl_class" href="class_quat.html">Quat</a> <a class="code hl_variable" href="struct_compound_shape_1_1_collect_transformed_shapes_visitor.html#a47b09d94bdefcf6a75a756f3e37c339f">mRotation</a>;</div>
  420. <div class="line"><a id="l00278" name="l00278"></a><span class="lineno"><a class="line" href="struct_compound_shape_1_1_collect_transformed_shapes_visitor.html#a760002fad6044539aaa17b42c293032c"> 278</a></span> <a class="code hl_class" href="class_vec3.html">Vec3</a> <a class="code hl_variable" href="struct_compound_shape_1_1_collect_transformed_shapes_visitor.html#a760002fad6044539aaa17b42c293032c">mScale</a>;</div>
  421. <div class="line"><a id="l00279" name="l00279"></a><span class="lineno"><a class="line" href="struct_compound_shape_1_1_collect_transformed_shapes_visitor.html#a613d75816ac10978847612943afa504e"> 279</a></span> <a class="code hl_class" href="class_sub_shape_i_d_creator.html">SubShapeIDCreator</a> <a class="code hl_variable" href="struct_compound_shape_1_1_collect_transformed_shapes_visitor.html#a613d75816ac10978847612943afa504e">mSubShapeIDCreator</a>;</div>
  422. <div class="line"><a id="l00280" name="l00280"></a><span class="lineno"><a class="line" href="struct_compound_shape_1_1_collect_transformed_shapes_visitor.html#a888023b455a023aa817178a3ccc50797"> 280</a></span> <a class="code hl_class" href="class_collision_collector.html">TransformedShapeCollector</a> &amp; <a class="code hl_variable" href="struct_compound_shape_1_1_collect_transformed_shapes_visitor.html#a888023b455a023aa817178a3ccc50797">mCollector</a>;</div>
  423. <div class="line"><a id="l00281" name="l00281"></a><span class="lineno"><a class="line" href="struct_compound_shape_1_1_collect_transformed_shapes_visitor.html#ae36c22c62df54bfaabe0272463b0b32c"> 281</a></span> <a class="code hl_typedef" href="_core_8h.html#a69aa29b598b851b0640aa225a9e5d61d">uint</a> <a class="code hl_variable" href="struct_compound_shape_1_1_collect_transformed_shapes_visitor.html#ae36c22c62df54bfaabe0272463b0b32c">mSubShapeBits</a>;</div>
  424. <div class="line"><a id="l00282" name="l00282"></a><span class="lineno"><a class="line" href="struct_compound_shape_1_1_collect_transformed_shapes_visitor.html#ab0b166da6e14b8694b567f68605c3225"> 282</a></span> <span class="keyword">const</span> <a class="code hl_class" href="class_shape_filter.html">ShapeFilter</a> &amp; <a class="code hl_variable" href="struct_compound_shape_1_1_collect_transformed_shapes_visitor.html#ab0b166da6e14b8694b567f68605c3225">mShapeFilter</a>;</div>
  425. <div class="line"><a id="l00283" name="l00283"></a><span class="lineno"> 283</span>};</div>
  426. </div>
  427. <div class="line"><a id="l00284" name="l00284"></a><span class="lineno"> 284</span> </div>
  428. <div class="foldopen" id="foldopen00285" data-start="{" data-end="};">
  429. <div class="line"><a id="l00285" name="l00285"></a><span class="lineno"><a class="line" href="struct_compound_shape_1_1_collide_compound_vs_shape_visitor.html"> 285</a></span><span class="keyword">struct </span><a class="code hl_struct" href="struct_compound_shape_1_1_collide_compound_vs_shape_visitor.html">CompoundShape::CollideCompoundVsShapeVisitor</a></div>
  430. <div class="line"><a id="l00286" name="l00286"></a><span class="lineno"> 286</span>{</div>
  431. <div class="foldopen" id="foldopen00287" data-start="{" data-end="}">
  432. <div class="line"><a id="l00287" name="l00287"></a><span class="lineno"><a class="line" href="struct_compound_shape_1_1_collide_compound_vs_shape_visitor.html#aadc26efc419ef5f50163fcbb07d7d404"> 287</a></span> JPH_INLINE <a class="code hl_function" href="struct_compound_shape_1_1_collide_compound_vs_shape_visitor.html#aadc26efc419ef5f50163fcbb07d7d404">CollideCompoundVsShapeVisitor</a>(<span class="keyword">const</span> <a class="code hl_class" href="class_compound_shape.html">CompoundShape</a> *inShape1, <span class="keyword">const</span> <a class="code hl_class" href="class_shape.html">Shape</a> *inShape2, <a class="code hl_class" href="class_vec3.html">Vec3Arg</a> inScale1, <a class="code hl_class" href="class_vec3.html">Vec3Arg</a> inScale2, <a class="code hl_class" href="class_mat44.html">Mat44Arg</a> inCenterOfMassTransform1, <a class="code hl_class" href="class_mat44.html">Mat44Arg</a> inCenterOfMassTransform2, <span class="keyword">const</span> <a class="code hl_class" href="class_sub_shape_i_d_creator.html">SubShapeIDCreator</a> &amp;inSubShapeIDCreator1, <span class="keyword">const</span> <a class="code hl_class" href="class_sub_shape_i_d_creator.html">SubShapeIDCreator</a> &amp;inSubShapeIDCreator2, <span class="keyword">const</span> <a class="code hl_class" href="class_collide_shape_settings.html">CollideShapeSettings</a> &amp;inCollideShapeSettings, <a class="code hl_class" href="class_collision_collector.html">CollideShapeCollector</a> &amp;ioCollector, <span class="keyword">const</span> <a class="code hl_class" href="class_shape_filter.html">ShapeFilter</a> &amp;inShapeFilter) :</div>
  433. <div class="line"><a id="l00288" name="l00288"></a><span class="lineno"> 288</span> <a class="code hl_variable" href="struct_compound_shape_1_1_collide_compound_vs_shape_visitor.html#a350f11e56d89c4f9200163a131f3f444">mCollideShapeSettings</a>(inCollideShapeSettings),</div>
  434. <div class="line"><a id="l00289" name="l00289"></a><span class="lineno"> 289</span> <a class="code hl_variable" href="struct_compound_shape_1_1_collide_compound_vs_shape_visitor.html#a0baf1b449eed819cb072a676d72398cd">mCollector</a>(ioCollector),</div>
  435. <div class="line"><a id="l00290" name="l00290"></a><span class="lineno"> 290</span> <a class="code hl_variable" href="struct_compound_shape_1_1_collide_compound_vs_shape_visitor.html#af4eac4c381d05d1c7cfb1512a2f202f7">mShape2</a>(inShape2),</div>
  436. <div class="line"><a id="l00291" name="l00291"></a><span class="lineno"> 291</span> <a class="code hl_variable" href="struct_compound_shape_1_1_collide_compound_vs_shape_visitor.html#a7b3698ab299d4e1f2881337c09892cd5">mScale1</a>(inScale1),</div>
  437. <div class="line"><a id="l00292" name="l00292"></a><span class="lineno"> 292</span> <a class="code hl_variable" href="struct_compound_shape_1_1_collide_compound_vs_shape_visitor.html#a80a7872b09611c352c0c02cf18a0fa67">mScale2</a>(inScale2),</div>
  438. <div class="line"><a id="l00293" name="l00293"></a><span class="lineno"> 293</span> <a class="code hl_variable" href="struct_compound_shape_1_1_collide_compound_vs_shape_visitor.html#a10a2d8ac67f9978eeacf09dae77c894b">mTransform1</a>(inCenterOfMassTransform1),</div>
  439. <div class="line"><a id="l00294" name="l00294"></a><span class="lineno"> 294</span> <a class="code hl_variable" href="struct_compound_shape_1_1_collide_compound_vs_shape_visitor.html#a3e53fc715eeb683b4b753c43923f5839">mTransform2</a>(inCenterOfMassTransform2),</div>
  440. <div class="line"><a id="l00295" name="l00295"></a><span class="lineno"> 295</span> <a class="code hl_variable" href="struct_compound_shape_1_1_collide_compound_vs_shape_visitor.html#afd4c304df5e719a22c21e479fbfffa32">mSubShapeIDCreator1</a>(inSubShapeIDCreator1),</div>
  441. <div class="line"><a id="l00296" name="l00296"></a><span class="lineno"> 296</span> <a class="code hl_variable" href="struct_compound_shape_1_1_collide_compound_vs_shape_visitor.html#a7d54b29e53e0fb097be48c090307afa2">mSubShapeIDCreator2</a>(inSubShapeIDCreator2),</div>
  442. <div class="line"><a id="l00297" name="l00297"></a><span class="lineno"> 297</span> <a class="code hl_variable" href="struct_compound_shape_1_1_collide_compound_vs_shape_visitor.html#a5b0a740a68fd32de56518ab00e2d5afa">mSubShapeBits</a>(inShape1-&gt;<a class="code hl_function" href="class_compound_shape.html#a3f4a71f903b9b37eb61262257ca268f2">GetSubShapeIDBits</a>()),</div>
  443. <div class="line"><a id="l00298" name="l00298"></a><span class="lineno"> 298</span> <a class="code hl_variable" href="struct_compound_shape_1_1_collide_compound_vs_shape_visitor.html#a63d01e5f27bd4944b066e6a33c3f4698">mShapeFilter</a>(inShapeFilter)</div>
  444. <div class="line"><a id="l00299" name="l00299"></a><span class="lineno"> 299</span> {</div>
  445. <div class="line"><a id="l00300" name="l00300"></a><span class="lineno"> 300</span> <span class="comment">// Get transform from shape 2 to shape 1</span></div>
  446. <div class="line"><a id="l00301" name="l00301"></a><span class="lineno"> 301</span> <a class="code hl_class" href="class_mat44.html">Mat44</a> transform2_to_1 = inCenterOfMassTransform1.<a class="code hl_function" href="class_mat44.html#af962ad0ed20cb6112f8249cb9573c233">InversedRotationTranslation</a>() * inCenterOfMassTransform2;</div>
  447. <div class="line"><a id="l00302" name="l00302"></a><span class="lineno"> 302</span> </div>
  448. <div class="line"><a id="l00303" name="l00303"></a><span class="lineno"> 303</span> <span class="comment">// Convert bounding box of 2 into space of 1</span></div>
  449. <div class="line"><a id="l00304" name="l00304"></a><span class="lineno"> 304</span> <a class="code hl_variable" href="struct_compound_shape_1_1_collide_compound_vs_shape_visitor.html#ade932f2552ec9da071d7c588fd4bde34">mBoundsOf2InSpaceOf1</a> = inShape2-&gt;<a class="code hl_function" href="class_shape.html#a30ea165596e01df087f6e4980ed6b0cb">GetLocalBounds</a>().<a class="code hl_enumvalue" href="_shape_8h.html#aa332e0529e75b83aad91881c8d32551ba7380ae6c5e1189eef50cfd0557d74e99">Scaled</a>(inScale2).Transformed(transform2_to_1);</div>
  450. <div class="line"><a id="l00305" name="l00305"></a><span class="lineno"> 305</span> <a class="code hl_variable" href="struct_compound_shape_1_1_collide_compound_vs_shape_visitor.html#ade932f2552ec9da071d7c588fd4bde34">mBoundsOf2InSpaceOf1</a>.<a class="code hl_function" href="class_a_a_box.html#a7023c1c28f073fa0d14ecee0f5fc8ee8">ExpandBy</a>(<a class="code hl_function" href="class_vec3.html#ad6be51ce14811d6c196784d20cb39b98">Vec3::sReplicate</a>(inCollideShapeSettings.<a class="code hl_variable" href="class_collide_shape_settings.html#a511c99470c2fe3b2e82d06ffe26c52c1">mMaxSeparationDistance</a>));</div>
  451. <div class="line"><a id="l00306" name="l00306"></a><span class="lineno"> 306</span> }</div>
  452. </div>
  453. <div class="line"><a id="l00307" name="l00307"></a><span class="lineno"> 307</span> </div>
  454. <div class="foldopen" id="foldopen00309" data-start="{" data-end="}">
  455. <div class="line"><a id="l00309" name="l00309"></a><span class="lineno"><a class="line" href="struct_compound_shape_1_1_collide_compound_vs_shape_visitor.html#a135fbf1825c7dfbfc0556005b92bc5c1"> 309</a></span> JPH_INLINE <span class="keywordtype">bool</span> <a class="code hl_function" href="struct_compound_shape_1_1_collide_compound_vs_shape_visitor.html#a135fbf1825c7dfbfc0556005b92bc5c1">ShouldAbort</a>()<span class="keyword"> const</span></div>
  456. <div class="line"><a id="l00310" name="l00310"></a><span class="lineno"> 310</span><span class="keyword"> </span>{</div>
  457. <div class="line"><a id="l00311" name="l00311"></a><span class="lineno"> 311</span> <span class="keywordflow">return</span> <a class="code hl_variable" href="struct_compound_shape_1_1_collide_compound_vs_shape_visitor.html#a0baf1b449eed819cb072a676d72398cd">mCollector</a>.<a class="code hl_function" href="class_collision_collector.html#a45cb1cfbb5ec957d3c66b65d2333d825">ShouldEarlyOut</a>();</div>
  458. <div class="line"><a id="l00312" name="l00312"></a><span class="lineno"> 312</span> }</div>
  459. </div>
  460. <div class="line"><a id="l00313" name="l00313"></a><span class="lineno"> 313</span> </div>
  461. <div class="foldopen" id="foldopen00315" data-start="{" data-end="}">
  462. <div class="line"><a id="l00315" name="l00315"></a><span class="lineno"><a class="line" href="struct_compound_shape_1_1_collide_compound_vs_shape_visitor.html#af43a759ff857d5f3ee1246425e146851"> 315</a></span> JPH_INLINE <a class="code hl_class" href="class_u_vec4.html">UVec4</a> <a class="code hl_function" href="struct_compound_shape_1_1_collide_compound_vs_shape_visitor.html#af43a759ff857d5f3ee1246425e146851">TestBounds</a>(<a class="code hl_class" href="class_vec4.html">Vec4Arg</a> inBoundsMinX, <a class="code hl_class" href="class_vec4.html">Vec4Arg</a> inBoundsMinY, <a class="code hl_class" href="class_vec4.html">Vec4Arg</a> inBoundsMinZ, <a class="code hl_class" href="class_vec4.html">Vec4Arg</a> inBoundsMaxX, <a class="code hl_class" href="class_vec4.html">Vec4Arg</a> inBoundsMaxY, <a class="code hl_class" href="class_vec4.html">Vec4Arg</a> inBoundsMaxZ)<span class="keyword"> const</span></div>
  463. <div class="line"><a id="l00316" name="l00316"></a><span class="lineno"> 316</span><span class="keyword"> </span>{</div>
  464. <div class="line"><a id="l00317" name="l00317"></a><span class="lineno"> 317</span> <span class="comment">// Scale the bounding boxes</span></div>
  465. <div class="line"><a id="l00318" name="l00318"></a><span class="lineno"> 318</span> <a class="code hl_class" href="class_vec4.html">Vec4</a> bounds_min_x, bounds_min_y, bounds_min_z, bounds_max_x, bounds_max_y, bounds_max_z;</div>
  466. <div class="line"><a id="l00319" name="l00319"></a><span class="lineno"> 319</span> <a class="code hl_function" href="_a_a_box4_8h.html#afdbaad9921240fb3b210eab09cede242">AABox4Scale</a>(<a class="code hl_variable" href="struct_compound_shape_1_1_collide_compound_vs_shape_visitor.html#a7b3698ab299d4e1f2881337c09892cd5">mScale1</a>, inBoundsMinX, inBoundsMinY, inBoundsMinZ, inBoundsMaxX, inBoundsMaxY, inBoundsMaxZ, bounds_min_x, bounds_min_y, bounds_min_z, bounds_max_x, bounds_max_y, bounds_max_z);</div>
  467. <div class="line"><a id="l00320" name="l00320"></a><span class="lineno"> 320</span> </div>
  468. <div class="line"><a id="l00321" name="l00321"></a><span class="lineno"> 321</span> <span class="comment">// Test which boxes collide</span></div>
  469. <div class="line"><a id="l00322" name="l00322"></a><span class="lineno"> 322</span> <span class="keywordflow">return</span> <a class="code hl_function" href="_a_a_box4_8h.html#a99b05cb64dcecc32ddc482050e45321c">AABox4VsBox</a>(<a class="code hl_variable" href="struct_compound_shape_1_1_collide_compound_vs_shape_visitor.html#ade932f2552ec9da071d7c588fd4bde34">mBoundsOf2InSpaceOf1</a>, bounds_min_x, bounds_min_y, bounds_min_z, bounds_max_x, bounds_max_y, bounds_max_z);</div>
  470. <div class="line"><a id="l00323" name="l00323"></a><span class="lineno"> 323</span> }</div>
  471. </div>
  472. <div class="line"><a id="l00324" name="l00324"></a><span class="lineno"> 324</span> </div>
  473. <div class="foldopen" id="foldopen00326" data-start="{" data-end="}">
  474. <div class="line"><a id="l00326" name="l00326"></a><span class="lineno"><a class="line" href="struct_compound_shape_1_1_collide_compound_vs_shape_visitor.html#af575d07fd175a53c7c9039c9b91a060a"> 326</a></span> JPH_INLINE <span class="keywordtype">void</span> <a class="code hl_function" href="struct_compound_shape_1_1_collide_compound_vs_shape_visitor.html#af575d07fd175a53c7c9039c9b91a060a">VisitShape</a>(<span class="keyword">const</span> <a class="code hl_struct" href="struct_compound_shape_1_1_sub_shape.html">SubShape</a> &amp;inSubShape, <a class="code hl_typedef" href="_core_8h.html#a8f95e75e58492e87412191fabadd8ca8">uint32</a> inSubShapeIndex)</div>
  475. <div class="line"><a id="l00327" name="l00327"></a><span class="lineno"> 327</span> {</div>
  476. <div class="line"><a id="l00328" name="l00328"></a><span class="lineno"> 328</span> <span class="comment">// Get world transform of 1</span></div>
  477. <div class="line"><a id="l00329" name="l00329"></a><span class="lineno"> 329</span> <a class="code hl_class" href="class_mat44.html">Mat44</a> transform1 = <a class="code hl_variable" href="struct_compound_shape_1_1_collide_compound_vs_shape_visitor.html#a10a2d8ac67f9978eeacf09dae77c894b">mTransform1</a> * inSubShape.<a class="code hl_function" href="struct_compound_shape_1_1_sub_shape.html#a18ba22cc1d5ad095bce61a7fcfcbcc25">GetLocalTransformNoScale</a>(<a class="code hl_variable" href="struct_compound_shape_1_1_collide_compound_vs_shape_visitor.html#a7b3698ab299d4e1f2881337c09892cd5">mScale1</a>);</div>
  478. <div class="line"><a id="l00330" name="l00330"></a><span class="lineno"> 330</span> </div>
  479. <div class="line"><a id="l00331" name="l00331"></a><span class="lineno"> 331</span> <span class="comment">// Create ID for sub shape</span></div>
  480. <div class="line"><a id="l00332" name="l00332"></a><span class="lineno"> 332</span> <a class="code hl_class" href="class_sub_shape_i_d_creator.html">SubShapeIDCreator</a> shape1_sub_shape_id = <a class="code hl_variable" href="struct_compound_shape_1_1_collide_compound_vs_shape_visitor.html#afd4c304df5e719a22c21e479fbfffa32">mSubShapeIDCreator1</a>.<a class="code hl_function" href="class_sub_shape_i_d_creator.html#a29997885833b2c9625bcbcba4548273d">PushID</a>(inSubShapeIndex, <a class="code hl_variable" href="struct_compound_shape_1_1_collide_compound_vs_shape_visitor.html#a5b0a740a68fd32de56518ab00e2d5afa">mSubShapeBits</a>);</div>
  481. <div class="line"><a id="l00333" name="l00333"></a><span class="lineno"> 333</span> </div>
  482. <div class="line"><a id="l00334" name="l00334"></a><span class="lineno"> 334</span> <a class="code hl_function" href="class_collision_dispatch.html#a29634d08db5d24ce7c0d5c44b547c075">CollisionDispatch::sCollideShapeVsShape</a>(inSubShape.<a class="code hl_variable" href="struct_compound_shape_1_1_sub_shape.html#af0e288762fbe4fcdec676ce1836d5375">mShape</a>, <a class="code hl_variable" href="struct_compound_shape_1_1_collide_compound_vs_shape_visitor.html#af4eac4c381d05d1c7cfb1512a2f202f7">mShape2</a>, inSubShape.<a class="code hl_function" href="struct_compound_shape_1_1_sub_shape.html#a92de7326e077355d680f2d6ce860d7fc">TransformScale</a>(<a class="code hl_variable" href="struct_compound_shape_1_1_collide_compound_vs_shape_visitor.html#a7b3698ab299d4e1f2881337c09892cd5">mScale1</a>), <a class="code hl_variable" href="struct_compound_shape_1_1_collide_compound_vs_shape_visitor.html#a80a7872b09611c352c0c02cf18a0fa67">mScale2</a>, transform1, <a class="code hl_variable" href="struct_compound_shape_1_1_collide_compound_vs_shape_visitor.html#a3e53fc715eeb683b4b753c43923f5839">mTransform2</a>, shape1_sub_shape_id, <a class="code hl_variable" href="struct_compound_shape_1_1_collide_compound_vs_shape_visitor.html#a7d54b29e53e0fb097be48c090307afa2">mSubShapeIDCreator2</a>, <a class="code hl_variable" href="struct_compound_shape_1_1_collide_compound_vs_shape_visitor.html#a350f11e56d89c4f9200163a131f3f444">mCollideShapeSettings</a>, <a class="code hl_variable" href="struct_compound_shape_1_1_collide_compound_vs_shape_visitor.html#a0baf1b449eed819cb072a676d72398cd">mCollector</a>, <a class="code hl_variable" href="struct_compound_shape_1_1_collide_compound_vs_shape_visitor.html#a63d01e5f27bd4944b066e6a33c3f4698">mShapeFilter</a>);</div>
  483. <div class="line"><a id="l00335" name="l00335"></a><span class="lineno"> 335</span> }</div>
  484. </div>
  485. <div class="line"><a id="l00336" name="l00336"></a><span class="lineno"> 336</span> </div>
  486. <div class="line"><a id="l00337" name="l00337"></a><span class="lineno"><a class="line" href="struct_compound_shape_1_1_collide_compound_vs_shape_visitor.html#a350f11e56d89c4f9200163a131f3f444"> 337</a></span> <span class="keyword">const</span> <a class="code hl_class" href="class_collide_shape_settings.html">CollideShapeSettings</a> &amp; <a class="code hl_variable" href="struct_compound_shape_1_1_collide_compound_vs_shape_visitor.html#a350f11e56d89c4f9200163a131f3f444">mCollideShapeSettings</a>;</div>
  487. <div class="line"><a id="l00338" name="l00338"></a><span class="lineno"><a class="line" href="struct_compound_shape_1_1_collide_compound_vs_shape_visitor.html#a0baf1b449eed819cb072a676d72398cd"> 338</a></span> <a class="code hl_class" href="class_collision_collector.html">CollideShapeCollector</a> &amp; <a class="code hl_variable" href="struct_compound_shape_1_1_collide_compound_vs_shape_visitor.html#a0baf1b449eed819cb072a676d72398cd">mCollector</a>;</div>
  488. <div class="line"><a id="l00339" name="l00339"></a><span class="lineno"><a class="line" href="struct_compound_shape_1_1_collide_compound_vs_shape_visitor.html#af4eac4c381d05d1c7cfb1512a2f202f7"> 339</a></span> <span class="keyword">const</span> <a class="code hl_class" href="class_shape.html">Shape</a> * <a class="code hl_variable" href="struct_compound_shape_1_1_collide_compound_vs_shape_visitor.html#af4eac4c381d05d1c7cfb1512a2f202f7">mShape2</a>;</div>
  489. <div class="line"><a id="l00340" name="l00340"></a><span class="lineno"><a class="line" href="struct_compound_shape_1_1_collide_compound_vs_shape_visitor.html#a7b3698ab299d4e1f2881337c09892cd5"> 340</a></span> <a class="code hl_class" href="class_vec3.html">Vec3</a> <a class="code hl_variable" href="struct_compound_shape_1_1_collide_compound_vs_shape_visitor.html#a7b3698ab299d4e1f2881337c09892cd5">mScale1</a>;</div>
  490. <div class="line"><a id="l00341" name="l00341"></a><span class="lineno"><a class="line" href="struct_compound_shape_1_1_collide_compound_vs_shape_visitor.html#a80a7872b09611c352c0c02cf18a0fa67"> 341</a></span> <a class="code hl_class" href="class_vec3.html">Vec3</a> <a class="code hl_variable" href="struct_compound_shape_1_1_collide_compound_vs_shape_visitor.html#a80a7872b09611c352c0c02cf18a0fa67">mScale2</a>;</div>
  491. <div class="line"><a id="l00342" name="l00342"></a><span class="lineno"><a class="line" href="struct_compound_shape_1_1_collide_compound_vs_shape_visitor.html#a10a2d8ac67f9978eeacf09dae77c894b"> 342</a></span> <a class="code hl_class" href="class_mat44.html">Mat44</a> <a class="code hl_variable" href="struct_compound_shape_1_1_collide_compound_vs_shape_visitor.html#a10a2d8ac67f9978eeacf09dae77c894b">mTransform1</a>;</div>
  492. <div class="line"><a id="l00343" name="l00343"></a><span class="lineno"><a class="line" href="struct_compound_shape_1_1_collide_compound_vs_shape_visitor.html#a3e53fc715eeb683b4b753c43923f5839"> 343</a></span> <a class="code hl_class" href="class_mat44.html">Mat44</a> <a class="code hl_variable" href="struct_compound_shape_1_1_collide_compound_vs_shape_visitor.html#a3e53fc715eeb683b4b753c43923f5839">mTransform2</a>;</div>
  493. <div class="line"><a id="l00344" name="l00344"></a><span class="lineno"><a class="line" href="struct_compound_shape_1_1_collide_compound_vs_shape_visitor.html#ade932f2552ec9da071d7c588fd4bde34"> 344</a></span> <a class="code hl_class" href="class_a_a_box.html">AABox</a> <a class="code hl_variable" href="struct_compound_shape_1_1_collide_compound_vs_shape_visitor.html#ade932f2552ec9da071d7c588fd4bde34">mBoundsOf2InSpaceOf1</a>;</div>
  494. <div class="line"><a id="l00345" name="l00345"></a><span class="lineno"><a class="line" href="struct_compound_shape_1_1_collide_compound_vs_shape_visitor.html#afd4c304df5e719a22c21e479fbfffa32"> 345</a></span> <a class="code hl_class" href="class_sub_shape_i_d_creator.html">SubShapeIDCreator</a> <a class="code hl_variable" href="struct_compound_shape_1_1_collide_compound_vs_shape_visitor.html#afd4c304df5e719a22c21e479fbfffa32">mSubShapeIDCreator1</a>;</div>
  495. <div class="line"><a id="l00346" name="l00346"></a><span class="lineno"><a class="line" href="struct_compound_shape_1_1_collide_compound_vs_shape_visitor.html#a7d54b29e53e0fb097be48c090307afa2"> 346</a></span> <a class="code hl_class" href="class_sub_shape_i_d_creator.html">SubShapeIDCreator</a> <a class="code hl_variable" href="struct_compound_shape_1_1_collide_compound_vs_shape_visitor.html#a7d54b29e53e0fb097be48c090307afa2">mSubShapeIDCreator2</a>;</div>
  496. <div class="line"><a id="l00347" name="l00347"></a><span class="lineno"><a class="line" href="struct_compound_shape_1_1_collide_compound_vs_shape_visitor.html#a5b0a740a68fd32de56518ab00e2d5afa"> 347</a></span> <a class="code hl_typedef" href="_core_8h.html#a69aa29b598b851b0640aa225a9e5d61d">uint</a> <a class="code hl_variable" href="struct_compound_shape_1_1_collide_compound_vs_shape_visitor.html#a5b0a740a68fd32de56518ab00e2d5afa">mSubShapeBits</a>;</div>
  497. <div class="line"><a id="l00348" name="l00348"></a><span class="lineno"><a class="line" href="struct_compound_shape_1_1_collide_compound_vs_shape_visitor.html#a63d01e5f27bd4944b066e6a33c3f4698"> 348</a></span> <span class="keyword">const</span> <a class="code hl_class" href="class_shape_filter.html">ShapeFilter</a> &amp; <a class="code hl_variable" href="struct_compound_shape_1_1_collide_compound_vs_shape_visitor.html#a63d01e5f27bd4944b066e6a33c3f4698">mShapeFilter</a>;</div>
  498. <div class="line"><a id="l00349" name="l00349"></a><span class="lineno"> 349</span>};</div>
  499. </div>
  500. <div class="line"><a id="l00350" name="l00350"></a><span class="lineno"> 350</span> </div>
  501. <div class="foldopen" id="foldopen00351" data-start="{" data-end="};">
  502. <div class="line"><a id="l00351" name="l00351"></a><span class="lineno"><a class="line" href="struct_compound_shape_1_1_collide_shape_vs_compound_visitor.html"> 351</a></span><span class="keyword">struct </span><a class="code hl_struct" href="struct_compound_shape_1_1_collide_shape_vs_compound_visitor.html">CompoundShape::CollideShapeVsCompoundVisitor</a></div>
  503. <div class="line"><a id="l00352" name="l00352"></a><span class="lineno"> 352</span>{</div>
  504. <div class="foldopen" id="foldopen00353" data-start="{" data-end="}">
  505. <div class="line"><a id="l00353" name="l00353"></a><span class="lineno"><a class="line" href="struct_compound_shape_1_1_collide_shape_vs_compound_visitor.html#af99172bf5598b022f42e3b071d7dd7e9"> 353</a></span> JPH_INLINE <a class="code hl_function" href="struct_compound_shape_1_1_collide_shape_vs_compound_visitor.html#af99172bf5598b022f42e3b071d7dd7e9">CollideShapeVsCompoundVisitor</a>(<span class="keyword">const</span> <a class="code hl_class" href="class_shape.html">Shape</a> *inShape1, <span class="keyword">const</span> <a class="code hl_class" href="class_compound_shape.html">CompoundShape</a> *inShape2, <a class="code hl_class" href="class_vec3.html">Vec3Arg</a> inScale1, <a class="code hl_class" href="class_vec3.html">Vec3Arg</a> inScale2, <a class="code hl_class" href="class_mat44.html">Mat44Arg</a> inCenterOfMassTransform1, <a class="code hl_class" href="class_mat44.html">Mat44Arg</a> inCenterOfMassTransform2, <span class="keyword">const</span> <a class="code hl_class" href="class_sub_shape_i_d_creator.html">SubShapeIDCreator</a> &amp;inSubShapeIDCreator1, <span class="keyword">const</span> <a class="code hl_class" href="class_sub_shape_i_d_creator.html">SubShapeIDCreator</a> &amp;inSubShapeIDCreator2, <span class="keyword">const</span> <a class="code hl_class" href="class_collide_shape_settings.html">CollideShapeSettings</a> &amp;inCollideShapeSettings, <a class="code hl_class" href="class_collision_collector.html">CollideShapeCollector</a> &amp;ioCollector, <span class="keyword">const</span> <a class="code hl_class" href="class_shape_filter.html">ShapeFilter</a> &amp;inShapeFilter) :</div>
  506. <div class="line"><a id="l00354" name="l00354"></a><span class="lineno"> 354</span> <a class="code hl_variable" href="struct_compound_shape_1_1_collide_shape_vs_compound_visitor.html#a20a3312bd10ca3d58c70f963a279f76b">mCollideShapeSettings</a>(inCollideShapeSettings),</div>
  507. <div class="line"><a id="l00355" name="l00355"></a><span class="lineno"> 355</span> <a class="code hl_variable" href="struct_compound_shape_1_1_collide_shape_vs_compound_visitor.html#a3592c0f8c400489c4545be9f65db26c5">mCollector</a>(ioCollector),</div>
  508. <div class="line"><a id="l00356" name="l00356"></a><span class="lineno"> 356</span> <a class="code hl_variable" href="struct_compound_shape_1_1_collide_shape_vs_compound_visitor.html#a0692931a0b827d909c886b3b9cd1c94e">mShape1</a>(inShape1),</div>
  509. <div class="line"><a id="l00357" name="l00357"></a><span class="lineno"> 357</span> <a class="code hl_variable" href="struct_compound_shape_1_1_collide_shape_vs_compound_visitor.html#a78626c6f58d5682180522b6304e9aa5e">mScale1</a>(inScale1),</div>
  510. <div class="line"><a id="l00358" name="l00358"></a><span class="lineno"> 358</span> <a class="code hl_variable" href="struct_compound_shape_1_1_collide_shape_vs_compound_visitor.html#a7c826e2194c6d76f3022473123346869">mScale2</a>(inScale2),</div>
  511. <div class="line"><a id="l00359" name="l00359"></a><span class="lineno"> 359</span> <a class="code hl_variable" href="struct_compound_shape_1_1_collide_shape_vs_compound_visitor.html#a5aaf192557a3ec7462f9615d2982f21e">mTransform1</a>(inCenterOfMassTransform1),</div>
  512. <div class="line"><a id="l00360" name="l00360"></a><span class="lineno"> 360</span> <a class="code hl_variable" href="struct_compound_shape_1_1_collide_shape_vs_compound_visitor.html#acecad887d6ab8d8d243679afcb0146eb">mTransform2</a>(inCenterOfMassTransform2),</div>
  513. <div class="line"><a id="l00361" name="l00361"></a><span class="lineno"> 361</span> <a class="code hl_variable" href="struct_compound_shape_1_1_collide_shape_vs_compound_visitor.html#a9746a70a1987e1a6bf752cd959559335">mSubShapeIDCreator1</a>(inSubShapeIDCreator1),</div>
  514. <div class="line"><a id="l00362" name="l00362"></a><span class="lineno"> 362</span> <a class="code hl_variable" href="struct_compound_shape_1_1_collide_shape_vs_compound_visitor.html#a1c496d4fffaa54a2bb1119811ead6906">mSubShapeIDCreator2</a>(inSubShapeIDCreator2),</div>
  515. <div class="line"><a id="l00363" name="l00363"></a><span class="lineno"> 363</span> <a class="code hl_variable" href="struct_compound_shape_1_1_collide_shape_vs_compound_visitor.html#a05854f0c5dc41a5e299b988edb4936d8">mSubShapeBits</a>(inShape2-&gt;<a class="code hl_function" href="class_compound_shape.html#a3f4a71f903b9b37eb61262257ca268f2">GetSubShapeIDBits</a>()),</div>
  516. <div class="line"><a id="l00364" name="l00364"></a><span class="lineno"> 364</span> <a class="code hl_variable" href="struct_compound_shape_1_1_collide_shape_vs_compound_visitor.html#a1078f83004c82a93a7674180fe0e0667">mShapeFilter</a>(inShapeFilter)</div>
  517. <div class="line"><a id="l00365" name="l00365"></a><span class="lineno"> 365</span> {</div>
  518. <div class="line"><a id="l00366" name="l00366"></a><span class="lineno"> 366</span> <span class="comment">// Get transform from shape 1 to shape 2</span></div>
  519. <div class="line"><a id="l00367" name="l00367"></a><span class="lineno"> 367</span> <a class="code hl_class" href="class_mat44.html">Mat44</a> transform1_to_2 = inCenterOfMassTransform2.<a class="code hl_function" href="class_mat44.html#af962ad0ed20cb6112f8249cb9573c233">InversedRotationTranslation</a>() * inCenterOfMassTransform1;</div>
  520. <div class="line"><a id="l00368" name="l00368"></a><span class="lineno"> 368</span> </div>
  521. <div class="line"><a id="l00369" name="l00369"></a><span class="lineno"> 369</span> <span class="comment">// Convert bounding box of 1 into space of 2</span></div>
  522. <div class="line"><a id="l00370" name="l00370"></a><span class="lineno"> 370</span> <a class="code hl_variable" href="struct_compound_shape_1_1_collide_shape_vs_compound_visitor.html#a6e2e736800b3999118fe4ba13a500f26">mBoundsOf1InSpaceOf2</a> = inShape1-&gt;<a class="code hl_function" href="class_shape.html#a30ea165596e01df087f6e4980ed6b0cb">GetLocalBounds</a>().<a class="code hl_enumvalue" href="_shape_8h.html#aa332e0529e75b83aad91881c8d32551ba7380ae6c5e1189eef50cfd0557d74e99">Scaled</a>(inScale1).Transformed(transform1_to_2);</div>
  523. <div class="line"><a id="l00371" name="l00371"></a><span class="lineno"> 371</span> <a class="code hl_variable" href="struct_compound_shape_1_1_collide_shape_vs_compound_visitor.html#a6e2e736800b3999118fe4ba13a500f26">mBoundsOf1InSpaceOf2</a>.<a class="code hl_function" href="class_a_a_box.html#a7023c1c28f073fa0d14ecee0f5fc8ee8">ExpandBy</a>(<a class="code hl_function" href="class_vec3.html#ad6be51ce14811d6c196784d20cb39b98">Vec3::sReplicate</a>(inCollideShapeSettings.<a class="code hl_variable" href="class_collide_shape_settings.html#a511c99470c2fe3b2e82d06ffe26c52c1">mMaxSeparationDistance</a>));</div>
  524. <div class="line"><a id="l00372" name="l00372"></a><span class="lineno"> 372</span> }</div>
  525. </div>
  526. <div class="line"><a id="l00373" name="l00373"></a><span class="lineno"> 373</span> </div>
  527. <div class="foldopen" id="foldopen00375" data-start="{" data-end="}">
  528. <div class="line"><a id="l00375" name="l00375"></a><span class="lineno"><a class="line" href="struct_compound_shape_1_1_collide_shape_vs_compound_visitor.html#a017c33d9b6a4dee82d757dc499999c01"> 375</a></span> JPH_INLINE <span class="keywordtype">bool</span> <a class="code hl_function" href="struct_compound_shape_1_1_collide_shape_vs_compound_visitor.html#a017c33d9b6a4dee82d757dc499999c01">ShouldAbort</a>()<span class="keyword"> const</span></div>
  529. <div class="line"><a id="l00376" name="l00376"></a><span class="lineno"> 376</span><span class="keyword"> </span>{</div>
  530. <div class="line"><a id="l00377" name="l00377"></a><span class="lineno"> 377</span> <span class="keywordflow">return</span> <a class="code hl_variable" href="struct_compound_shape_1_1_collide_shape_vs_compound_visitor.html#a3592c0f8c400489c4545be9f65db26c5">mCollector</a>.<a class="code hl_function" href="class_collision_collector.html#a45cb1cfbb5ec957d3c66b65d2333d825">ShouldEarlyOut</a>();</div>
  531. <div class="line"><a id="l00378" name="l00378"></a><span class="lineno"> 378</span> }</div>
  532. </div>
  533. <div class="line"><a id="l00379" name="l00379"></a><span class="lineno"> 379</span> </div>
  534. <div class="foldopen" id="foldopen00381" data-start="{" data-end="}">
  535. <div class="line"><a id="l00381" name="l00381"></a><span class="lineno"><a class="line" href="struct_compound_shape_1_1_collide_shape_vs_compound_visitor.html#a7ee379618c3c642c3b84b1bdb6be6bb1"> 381</a></span> JPH_INLINE <a class="code hl_class" href="class_u_vec4.html">UVec4</a> <a class="code hl_function" href="struct_compound_shape_1_1_collide_shape_vs_compound_visitor.html#a7ee379618c3c642c3b84b1bdb6be6bb1">TestBounds</a>(<a class="code hl_class" href="class_vec4.html">Vec4Arg</a> inBoundsMinX, <a class="code hl_class" href="class_vec4.html">Vec4Arg</a> inBoundsMinY, <a class="code hl_class" href="class_vec4.html">Vec4Arg</a> inBoundsMinZ, <a class="code hl_class" href="class_vec4.html">Vec4Arg</a> inBoundsMaxX, <a class="code hl_class" href="class_vec4.html">Vec4Arg</a> inBoundsMaxY, <a class="code hl_class" href="class_vec4.html">Vec4Arg</a> inBoundsMaxZ)<span class="keyword"> const</span></div>
  536. <div class="line"><a id="l00382" name="l00382"></a><span class="lineno"> 382</span><span class="keyword"> </span>{</div>
  537. <div class="line"><a id="l00383" name="l00383"></a><span class="lineno"> 383</span> <span class="comment">// Scale the bounding boxes</span></div>
  538. <div class="line"><a id="l00384" name="l00384"></a><span class="lineno"> 384</span> <a class="code hl_class" href="class_vec4.html">Vec4</a> bounds_min_x, bounds_min_y, bounds_min_z, bounds_max_x, bounds_max_y, bounds_max_z;</div>
  539. <div class="line"><a id="l00385" name="l00385"></a><span class="lineno"> 385</span> <a class="code hl_function" href="_a_a_box4_8h.html#afdbaad9921240fb3b210eab09cede242">AABox4Scale</a>(<a class="code hl_variable" href="struct_compound_shape_1_1_collide_shape_vs_compound_visitor.html#a7c826e2194c6d76f3022473123346869">mScale2</a>, inBoundsMinX, inBoundsMinY, inBoundsMinZ, inBoundsMaxX, inBoundsMaxY, inBoundsMaxZ, bounds_min_x, bounds_min_y, bounds_min_z, bounds_max_x, bounds_max_y, bounds_max_z);</div>
  540. <div class="line"><a id="l00386" name="l00386"></a><span class="lineno"> 386</span> </div>
  541. <div class="line"><a id="l00387" name="l00387"></a><span class="lineno"> 387</span> <span class="comment">// Test which bounding boxes collide</span></div>
  542. <div class="line"><a id="l00388" name="l00388"></a><span class="lineno"> 388</span> <span class="keywordflow">return</span> <a class="code hl_function" href="_a_a_box4_8h.html#a99b05cb64dcecc32ddc482050e45321c">AABox4VsBox</a>(<a class="code hl_variable" href="struct_compound_shape_1_1_collide_shape_vs_compound_visitor.html#a6e2e736800b3999118fe4ba13a500f26">mBoundsOf1InSpaceOf2</a>, bounds_min_x, bounds_min_y, bounds_min_z, bounds_max_x, bounds_max_y, bounds_max_z);</div>
  543. <div class="line"><a id="l00389" name="l00389"></a><span class="lineno"> 389</span> }</div>
  544. </div>
  545. <div class="line"><a id="l00390" name="l00390"></a><span class="lineno"> 390</span> </div>
  546. <div class="foldopen" id="foldopen00392" data-start="{" data-end="}">
  547. <div class="line"><a id="l00392" name="l00392"></a><span class="lineno"><a class="line" href="struct_compound_shape_1_1_collide_shape_vs_compound_visitor.html#ac29444555250eaf5cafdf944efadde2f"> 392</a></span> JPH_INLINE <span class="keywordtype">void</span> <a class="code hl_function" href="struct_compound_shape_1_1_collide_shape_vs_compound_visitor.html#ac29444555250eaf5cafdf944efadde2f">VisitShape</a>(<span class="keyword">const</span> <a class="code hl_struct" href="struct_compound_shape_1_1_sub_shape.html">SubShape</a> &amp;inSubShape, <a class="code hl_typedef" href="_core_8h.html#a8f95e75e58492e87412191fabadd8ca8">uint32</a> inSubShapeIndex)</div>
  548. <div class="line"><a id="l00393" name="l00393"></a><span class="lineno"> 393</span> {</div>
  549. <div class="line"><a id="l00394" name="l00394"></a><span class="lineno"> 394</span> <span class="comment">// Create ID for sub shape</span></div>
  550. <div class="line"><a id="l00395" name="l00395"></a><span class="lineno"> 395</span> <a class="code hl_class" href="class_sub_shape_i_d_creator.html">SubShapeIDCreator</a> shape2_sub_shape_id = <a class="code hl_variable" href="struct_compound_shape_1_1_collide_shape_vs_compound_visitor.html#a1c496d4fffaa54a2bb1119811ead6906">mSubShapeIDCreator2</a>.<a class="code hl_function" href="class_sub_shape_i_d_creator.html#a29997885833b2c9625bcbcba4548273d">PushID</a>(inSubShapeIndex, <a class="code hl_variable" href="struct_compound_shape_1_1_collide_shape_vs_compound_visitor.html#a05854f0c5dc41a5e299b988edb4936d8">mSubShapeBits</a>);</div>
  551. <div class="line"><a id="l00396" name="l00396"></a><span class="lineno"> 396</span> </div>
  552. <div class="line"><a id="l00397" name="l00397"></a><span class="lineno"> 397</span> <span class="comment">// Get world transform of 2</span></div>
  553. <div class="line"><a id="l00398" name="l00398"></a><span class="lineno"> 398</span> <a class="code hl_class" href="class_mat44.html">Mat44</a> transform2 = <a class="code hl_variable" href="struct_compound_shape_1_1_collide_shape_vs_compound_visitor.html#acecad887d6ab8d8d243679afcb0146eb">mTransform2</a> * inSubShape.<a class="code hl_function" href="struct_compound_shape_1_1_sub_shape.html#a18ba22cc1d5ad095bce61a7fcfcbcc25">GetLocalTransformNoScale</a>(<a class="code hl_variable" href="struct_compound_shape_1_1_collide_shape_vs_compound_visitor.html#a7c826e2194c6d76f3022473123346869">mScale2</a>);</div>
  554. <div class="line"><a id="l00399" name="l00399"></a><span class="lineno"> 399</span> </div>
  555. <div class="line"><a id="l00400" name="l00400"></a><span class="lineno"> 400</span> <a class="code hl_function" href="class_collision_dispatch.html#a29634d08db5d24ce7c0d5c44b547c075">CollisionDispatch::sCollideShapeVsShape</a>(<a class="code hl_variable" href="struct_compound_shape_1_1_collide_shape_vs_compound_visitor.html#a0692931a0b827d909c886b3b9cd1c94e">mShape1</a>, inSubShape.<a class="code hl_variable" href="struct_compound_shape_1_1_sub_shape.html#af0e288762fbe4fcdec676ce1836d5375">mShape</a>, <a class="code hl_variable" href="struct_compound_shape_1_1_collide_shape_vs_compound_visitor.html#a78626c6f58d5682180522b6304e9aa5e">mScale1</a>, inSubShape.<a class="code hl_function" href="struct_compound_shape_1_1_sub_shape.html#a92de7326e077355d680f2d6ce860d7fc">TransformScale</a>(<a class="code hl_variable" href="struct_compound_shape_1_1_collide_shape_vs_compound_visitor.html#a7c826e2194c6d76f3022473123346869">mScale2</a>), <a class="code hl_variable" href="struct_compound_shape_1_1_collide_shape_vs_compound_visitor.html#a5aaf192557a3ec7462f9615d2982f21e">mTransform1</a>, transform2, <a class="code hl_variable" href="struct_compound_shape_1_1_collide_shape_vs_compound_visitor.html#a9746a70a1987e1a6bf752cd959559335">mSubShapeIDCreator1</a>, shape2_sub_shape_id, <a class="code hl_variable" href="struct_compound_shape_1_1_collide_shape_vs_compound_visitor.html#a20a3312bd10ca3d58c70f963a279f76b">mCollideShapeSettings</a>, <a class="code hl_variable" href="struct_compound_shape_1_1_collide_shape_vs_compound_visitor.html#a3592c0f8c400489c4545be9f65db26c5">mCollector</a>, <a class="code hl_variable" href="struct_compound_shape_1_1_collide_shape_vs_compound_visitor.html#a1078f83004c82a93a7674180fe0e0667">mShapeFilter</a>);</div>
  556. <div class="line"><a id="l00401" name="l00401"></a><span class="lineno"> 401</span> }</div>
  557. </div>
  558. <div class="line"><a id="l00402" name="l00402"></a><span class="lineno"> 402</span> </div>
  559. <div class="line"><a id="l00403" name="l00403"></a><span class="lineno"><a class="line" href="struct_compound_shape_1_1_collide_shape_vs_compound_visitor.html#a20a3312bd10ca3d58c70f963a279f76b"> 403</a></span> <span class="keyword">const</span> <a class="code hl_class" href="class_collide_shape_settings.html">CollideShapeSettings</a> &amp; <a class="code hl_variable" href="struct_compound_shape_1_1_collide_shape_vs_compound_visitor.html#a20a3312bd10ca3d58c70f963a279f76b">mCollideShapeSettings</a>;</div>
  560. <div class="line"><a id="l00404" name="l00404"></a><span class="lineno"><a class="line" href="struct_compound_shape_1_1_collide_shape_vs_compound_visitor.html#a3592c0f8c400489c4545be9f65db26c5"> 404</a></span> <a class="code hl_class" href="class_collision_collector.html">CollideShapeCollector</a> &amp; <a class="code hl_variable" href="struct_compound_shape_1_1_collide_shape_vs_compound_visitor.html#a3592c0f8c400489c4545be9f65db26c5">mCollector</a>;</div>
  561. <div class="line"><a id="l00405" name="l00405"></a><span class="lineno"><a class="line" href="struct_compound_shape_1_1_collide_shape_vs_compound_visitor.html#a0692931a0b827d909c886b3b9cd1c94e"> 405</a></span> <span class="keyword">const</span> <a class="code hl_class" href="class_shape.html">Shape</a> * <a class="code hl_variable" href="struct_compound_shape_1_1_collide_shape_vs_compound_visitor.html#a0692931a0b827d909c886b3b9cd1c94e">mShape1</a>;</div>
  562. <div class="line"><a id="l00406" name="l00406"></a><span class="lineno"><a class="line" href="struct_compound_shape_1_1_collide_shape_vs_compound_visitor.html#a78626c6f58d5682180522b6304e9aa5e"> 406</a></span> <a class="code hl_class" href="class_vec3.html">Vec3</a> <a class="code hl_variable" href="struct_compound_shape_1_1_collide_shape_vs_compound_visitor.html#a78626c6f58d5682180522b6304e9aa5e">mScale1</a>;</div>
  563. <div class="line"><a id="l00407" name="l00407"></a><span class="lineno"><a class="line" href="struct_compound_shape_1_1_collide_shape_vs_compound_visitor.html#a7c826e2194c6d76f3022473123346869"> 407</a></span> <a class="code hl_class" href="class_vec3.html">Vec3</a> <a class="code hl_variable" href="struct_compound_shape_1_1_collide_shape_vs_compound_visitor.html#a7c826e2194c6d76f3022473123346869">mScale2</a>;</div>
  564. <div class="line"><a id="l00408" name="l00408"></a><span class="lineno"><a class="line" href="struct_compound_shape_1_1_collide_shape_vs_compound_visitor.html#a5aaf192557a3ec7462f9615d2982f21e"> 408</a></span> <a class="code hl_class" href="class_mat44.html">Mat44</a> <a class="code hl_variable" href="struct_compound_shape_1_1_collide_shape_vs_compound_visitor.html#a5aaf192557a3ec7462f9615d2982f21e">mTransform1</a>;</div>
  565. <div class="line"><a id="l00409" name="l00409"></a><span class="lineno"><a class="line" href="struct_compound_shape_1_1_collide_shape_vs_compound_visitor.html#acecad887d6ab8d8d243679afcb0146eb"> 409</a></span> <a class="code hl_class" href="class_mat44.html">Mat44</a> <a class="code hl_variable" href="struct_compound_shape_1_1_collide_shape_vs_compound_visitor.html#acecad887d6ab8d8d243679afcb0146eb">mTransform2</a>;</div>
  566. <div class="line"><a id="l00410" name="l00410"></a><span class="lineno"><a class="line" href="struct_compound_shape_1_1_collide_shape_vs_compound_visitor.html#a6e2e736800b3999118fe4ba13a500f26"> 410</a></span> <a class="code hl_class" href="class_a_a_box.html">AABox</a> <a class="code hl_variable" href="struct_compound_shape_1_1_collide_shape_vs_compound_visitor.html#a6e2e736800b3999118fe4ba13a500f26">mBoundsOf1InSpaceOf2</a>;</div>
  567. <div class="line"><a id="l00411" name="l00411"></a><span class="lineno"><a class="line" href="struct_compound_shape_1_1_collide_shape_vs_compound_visitor.html#a9746a70a1987e1a6bf752cd959559335"> 411</a></span> <a class="code hl_class" href="class_sub_shape_i_d_creator.html">SubShapeIDCreator</a> <a class="code hl_variable" href="struct_compound_shape_1_1_collide_shape_vs_compound_visitor.html#a9746a70a1987e1a6bf752cd959559335">mSubShapeIDCreator1</a>;</div>
  568. <div class="line"><a id="l00412" name="l00412"></a><span class="lineno"><a class="line" href="struct_compound_shape_1_1_collide_shape_vs_compound_visitor.html#a1c496d4fffaa54a2bb1119811ead6906"> 412</a></span> <a class="code hl_class" href="class_sub_shape_i_d_creator.html">SubShapeIDCreator</a> <a class="code hl_variable" href="struct_compound_shape_1_1_collide_shape_vs_compound_visitor.html#a1c496d4fffaa54a2bb1119811ead6906">mSubShapeIDCreator2</a>;</div>
  569. <div class="line"><a id="l00413" name="l00413"></a><span class="lineno"><a class="line" href="struct_compound_shape_1_1_collide_shape_vs_compound_visitor.html#a05854f0c5dc41a5e299b988edb4936d8"> 413</a></span> <a class="code hl_typedef" href="_core_8h.html#a69aa29b598b851b0640aa225a9e5d61d">uint</a> <a class="code hl_variable" href="struct_compound_shape_1_1_collide_shape_vs_compound_visitor.html#a05854f0c5dc41a5e299b988edb4936d8">mSubShapeBits</a>;</div>
  570. <div class="line"><a id="l00414" name="l00414"></a><span class="lineno"><a class="line" href="struct_compound_shape_1_1_collide_shape_vs_compound_visitor.html#a1078f83004c82a93a7674180fe0e0667"> 414</a></span> <span class="keyword">const</span> <a class="code hl_class" href="class_shape_filter.html">ShapeFilter</a> &amp; <a class="code hl_variable" href="struct_compound_shape_1_1_collide_shape_vs_compound_visitor.html#a1078f83004c82a93a7674180fe0e0667">mShapeFilter</a>;</div>
  571. <div class="line"><a id="l00415" name="l00415"></a><span class="lineno"> 415</span>};</div>
  572. </div>
  573. <div class="line"><a id="l00416" name="l00416"></a><span class="lineno"> 416</span> </div>
  574. <div class="line"><a id="l00417" name="l00417"></a><span class="lineno"> 417</span><span class="keyword">template</span> &lt;<span class="keyword">class</span> BoxType&gt;</div>
  575. <div class="foldopen" id="foldopen00418" data-start="{" data-end="};">
  576. <div class="line"><a id="l00418" name="l00418"></a><span class="lineno"><a class="line" href="struct_compound_shape_1_1_get_intersecting_sub_shapes_visitor.html"> 418</a></span><span class="keyword">struct </span><a class="code hl_struct" href="struct_compound_shape_1_1_get_intersecting_sub_shapes_visitor.html">CompoundShape::GetIntersectingSubShapesVisitor</a></div>
  577. <div class="line"><a id="l00419" name="l00419"></a><span class="lineno"> 419</span>{</div>
  578. <div class="foldopen" id="foldopen00420" data-start="{" data-end="}">
  579. <div class="line"><a id="l00420" name="l00420"></a><span class="lineno"><a class="line" href="struct_compound_shape_1_1_get_intersecting_sub_shapes_visitor.html#a0f676ecd2951cd9c1abd7d3ebfa24561"> 420</a></span> JPH_INLINE <a class="code hl_function" href="struct_compound_shape_1_1_get_intersecting_sub_shapes_visitor.html#a0f676ecd2951cd9c1abd7d3ebfa24561">GetIntersectingSubShapesVisitor</a>(<span class="keyword">const</span> BoxType &amp;inBox, <a class="code hl_typedef" href="_core_8h.html#a69aa29b598b851b0640aa225a9e5d61d">uint</a> *outSubShapeIndices, <span class="keywordtype">int</span> inMaxSubShapeIndices) :</div>
  580. <div class="line"><a id="l00421" name="l00421"></a><span class="lineno"> 421</span> mBox(inBox),</div>
  581. <div class="line"><a id="l00422" name="l00422"></a><span class="lineno"> 422</span> mSubShapeIndices(outSubShapeIndices),</div>
  582. <div class="line"><a id="l00423" name="l00423"></a><span class="lineno"> 423</span> mMaxSubShapeIndices(inMaxSubShapeIndices)</div>
  583. <div class="line"><a id="l00424" name="l00424"></a><span class="lineno"> 424</span> {</div>
  584. <div class="line"><a id="l00425" name="l00425"></a><span class="lineno"> 425</span> }</div>
  585. </div>
  586. <div class="line"><a id="l00426" name="l00426"></a><span class="lineno"> 426</span> </div>
  587. <div class="foldopen" id="foldopen00428" data-start="{" data-end="}">
  588. <div class="line"><a id="l00428" name="l00428"></a><span class="lineno"><a class="line" href="struct_compound_shape_1_1_get_intersecting_sub_shapes_visitor.html#a0747547a9895a7dc598391e602ae67e6"> 428</a></span> JPH_INLINE <span class="keywordtype">bool</span> <a class="code hl_function" href="struct_compound_shape_1_1_get_intersecting_sub_shapes_visitor.html#a0747547a9895a7dc598391e602ae67e6">ShouldAbort</a>()<span class="keyword"> const</span></div>
  589. <div class="line"><a id="l00429" name="l00429"></a><span class="lineno"> 429</span><span class="keyword"> </span>{</div>
  590. <div class="line"><a id="l00430" name="l00430"></a><span class="lineno"> 430</span> <span class="keywordflow">return</span> mNumResults &gt;= mMaxSubShapeIndices;</div>
  591. <div class="line"><a id="l00431" name="l00431"></a><span class="lineno"> 431</span> }</div>
  592. </div>
  593. <div class="line"><a id="l00432" name="l00432"></a><span class="lineno"> 432</span> </div>
  594. <div class="foldopen" id="foldopen00434" data-start="{" data-end="}">
  595. <div class="line"><a id="l00434" name="l00434"></a><span class="lineno"><a class="line" href="struct_compound_shape_1_1_get_intersecting_sub_shapes_visitor.html#a0271b87f4c7610b317b82a77d7d255c6"> 434</a></span> JPH_INLINE <a class="code hl_class" href="class_u_vec4.html">UVec4</a> <a class="code hl_function" href="struct_compound_shape_1_1_get_intersecting_sub_shapes_visitor.html#a0271b87f4c7610b317b82a77d7d255c6">TestBounds</a>(<a class="code hl_class" href="class_vec4.html">Vec4Arg</a> inBoundsMinX, <a class="code hl_class" href="class_vec4.html">Vec4Arg</a> inBoundsMinY, <a class="code hl_class" href="class_vec4.html">Vec4Arg</a> inBoundsMinZ, <a class="code hl_class" href="class_vec4.html">Vec4Arg</a> inBoundsMaxX, <a class="code hl_class" href="class_vec4.html">Vec4Arg</a> inBoundsMaxY, <a class="code hl_class" href="class_vec4.html">Vec4Arg</a> inBoundsMaxZ)<span class="keyword"> const</span></div>
  596. <div class="line"><a id="l00435" name="l00435"></a><span class="lineno"> 435</span><span class="keyword"> </span>{</div>
  597. <div class="line"><a id="l00436" name="l00436"></a><span class="lineno"> 436</span> <span class="comment">// Test which bounding boxes collide</span></div>
  598. <div class="line"><a id="l00437" name="l00437"></a><span class="lineno"> 437</span> <span class="keywordflow">return</span> <a class="code hl_function" href="_a_a_box4_8h.html#a99b05cb64dcecc32ddc482050e45321c">AABox4VsBox</a>(mBox, inBoundsMinX, inBoundsMinY, inBoundsMinZ, inBoundsMaxX, inBoundsMaxY, inBoundsMaxZ);</div>
  599. <div class="line"><a id="l00438" name="l00438"></a><span class="lineno"> 438</span> }</div>
  600. </div>
  601. <div class="line"><a id="l00439" name="l00439"></a><span class="lineno"> 439</span> </div>
  602. <div class="foldopen" id="foldopen00441" data-start="{" data-end="}">
  603. <div class="line"><a id="l00441" name="l00441"></a><span class="lineno"><a class="line" href="struct_compound_shape_1_1_get_intersecting_sub_shapes_visitor.html#a611d2a998517551ba3d1ad3355033135"> 441</a></span> JPH_INLINE <span class="keywordtype">void</span> <a class="code hl_function" href="struct_compound_shape_1_1_get_intersecting_sub_shapes_visitor.html#a611d2a998517551ba3d1ad3355033135">VisitShape</a>([[maybe_unused]] <span class="keyword">const</span> <a class="code hl_struct" href="struct_compound_shape_1_1_sub_shape.html">SubShape</a> &amp;inSubShape, <a class="code hl_typedef" href="_core_8h.html#a8f95e75e58492e87412191fabadd8ca8">uint32</a> inSubShapeIndex)</div>
  604. <div class="line"><a id="l00442" name="l00442"></a><span class="lineno"> 442</span> {</div>
  605. <div class="line"><a id="l00443" name="l00443"></a><span class="lineno"> 443</span> <a class="code hl_define" href="_issue_reporting_8h.html#aaf6b1df827e11b7ca5f6f8778bd8f8cd">JPH_ASSERT</a>(mNumResults &lt; mMaxSubShapeIndices);</div>
  606. <div class="line"><a id="l00444" name="l00444"></a><span class="lineno"> 444</span> *mSubShapeIndices++ = inSubShapeIndex;</div>
  607. <div class="line"><a id="l00445" name="l00445"></a><span class="lineno"> 445</span> mNumResults++;</div>
  608. <div class="line"><a id="l00446" name="l00446"></a><span class="lineno"> 446</span> }</div>
  609. </div>
  610. <div class="line"><a id="l00447" name="l00447"></a><span class="lineno"> 447</span> </div>
  611. <div class="foldopen" id="foldopen00449" data-start="{" data-end="}">
  612. <div class="line"><a id="l00449" name="l00449"></a><span class="lineno"><a class="line" href="struct_compound_shape_1_1_get_intersecting_sub_shapes_visitor.html#a61d8a2add21106dc7b21b46cab11bc93"> 449</a></span> JPH_INLINE <span class="keywordtype">int</span> <a class="code hl_function" href="struct_compound_shape_1_1_get_intersecting_sub_shapes_visitor.html#a61d8a2add21106dc7b21b46cab11bc93">GetNumResults</a>()<span class="keyword"> const</span></div>
  613. <div class="line"><a id="l00450" name="l00450"></a><span class="lineno"> 450</span><span class="keyword"> </span>{</div>
  614. <div class="line"><a id="l00451" name="l00451"></a><span class="lineno"> 451</span> <span class="keywordflow">return</span> mNumResults;</div>
  615. <div class="line"><a id="l00452" name="l00452"></a><span class="lineno"> 452</span> }</div>
  616. </div>
  617. <div class="line"><a id="l00453" name="l00453"></a><span class="lineno"> 453</span> </div>
  618. <div class="line"><a id="l00454" name="l00454"></a><span class="lineno"> 454</span><span class="keyword">private</span>:</div>
  619. <div class="line"><a id="l00455" name="l00455"></a><span class="lineno"> 455</span> BoxType mBox;</div>
  620. <div class="line"><a id="l00456" name="l00456"></a><span class="lineno"> 456</span> <a class="code hl_typedef" href="_core_8h.html#a69aa29b598b851b0640aa225a9e5d61d">uint</a> * mSubShapeIndices;</div>
  621. <div class="line"><a id="l00457" name="l00457"></a><span class="lineno"> 457</span> <span class="keywordtype">int</span> mMaxSubShapeIndices;</div>
  622. <div class="line"><a id="l00458" name="l00458"></a><span class="lineno"> 458</span> <span class="keywordtype">int</span> mNumResults = 0;</div>
  623. <div class="line"><a id="l00459" name="l00459"></a><span class="lineno"> 459</span>};</div>
  624. </div>
  625. <div class="line"><a id="l00460" name="l00460"></a><span class="lineno"> 460</span> </div>
  626. <div class="line"><a id="l00461" name="l00461"></a><span class="lineno"> 461</span><a class="code hl_define" href="_core_8h.html#a73da8725998b00321a9db341202d650d">JPH_NAMESPACE_END</a></div>
  627. <div class="ttc" id="a_a_a_box4_8h_html"><div class="ttname"><a href="_a_a_box4_8h.html">AABox4.h</a></div></div>
  628. <div class="ttc" id="a_a_a_box4_8h_html_a96c8ee8d10ad0b3971de242ea1217cb9"><div class="ttname"><a href="_a_a_box4_8h.html#a96c8ee8d10ad0b3971de242ea1217cb9">AABox4VsPoint</a></div><div class="ttdeci">JPH_INLINE UVec4 AABox4VsPoint(Vec3Arg inPoint, Vec4Arg inBoxMinX, Vec4Arg inBoxMinY, Vec4Arg inBoxMinZ, Vec4Arg inBoxMaxX, Vec4Arg inBoxMaxY, Vec4Arg inBoxMaxZ)</div><div class="ttdoc">Test if 4 bounding boxes overlap with a point.</div><div class="ttdef"><b>Definition</b> AABox4.h:71</div></div>
  629. <div class="ttc" id="a_a_a_box4_8h_html_a99b05cb64dcecc32ddc482050e45321c"><div class="ttname"><a href="_a_a_box4_8h.html#a99b05cb64dcecc32ddc482050e45321c">AABox4VsBox</a></div><div class="ttdeci">JPH_NAMESPACE_BEGIN JPH_INLINE UVec4 AABox4VsBox(const AABox &amp;inBox1, Vec4Arg inBox2MinX, Vec4Arg inBox2MinY, Vec4Arg inBox2MinZ, Vec4Arg inBox2MaxX, Vec4Arg inBox2MaxY, Vec4Arg inBox2MaxZ)</div><div class="ttdef"><b>Definition</b> AABox4.h:13</div></div>
  630. <div class="ttc" id="a_a_a_box4_8h_html_afc6a0849cd38d215de0f02ee553de99f"><div class="ttname"><a href="_a_a_box4_8h.html#afc6a0849cd38d215de0f02ee553de99f">AABox4EnlargeWithExtent</a></div><div class="ttdeci">JPH_INLINE void AABox4EnlargeWithExtent(Vec3Arg inExtent, Vec4 &amp;ioBoundsMinX, Vec4 &amp;ioBoundsMinY, Vec4 &amp;ioBoundsMinZ, Vec4 &amp;ioBoundsMaxX, Vec4 &amp;ioBoundsMaxY, Vec4 &amp;ioBoundsMaxZ)</div><div class="ttdoc">Enlarge 4 bounding boxes with extent (add to both sides)</div><div class="ttdef"><b>Definition</b> AABox4.h:55</div></div>
  631. <div class="ttc" id="a_a_a_box4_8h_html_afdbaad9921240fb3b210eab09cede242"><div class="ttname"><a href="_a_a_box4_8h.html#afdbaad9921240fb3b210eab09cede242">AABox4Scale</a></div><div class="ttdeci">JPH_INLINE void AABox4Scale(Vec3Arg inScale, Vec4Arg inBoxMinX, Vec4Arg inBoxMinY, Vec4Arg inBoxMinZ, Vec4Arg inBoxMaxX, Vec4Arg inBoxMaxY, Vec4Arg inBoxMaxZ, Vec4 &amp;outBoundsMinX, Vec4 &amp;outBoundsMinY, Vec4 &amp;outBoundsMinZ, Vec4 &amp;outBoundsMaxX, Vec4 &amp;outBoundsMaxY, Vec4 &amp;outBoundsMaxZ)</div><div class="ttdoc">Scale 4 axis aligned boxes.</div><div class="ttdef"><b>Definition</b> AABox4.h:33</div></div>
  632. <div class="ttc" id="a_cast_result_8h_html"><div class="ttname"><a href="_cast_result_8h.html">CastResult.h</a></div></div>
  633. <div class="ttc" id="a_collision_dispatch_8h_html"><div class="ttname"><a href="_collision_dispatch_8h.html">CollisionDispatch.h</a></div></div>
  634. <div class="ttc" id="a_compound_shape_8h_html"><div class="ttname"><a href="_compound_shape_8h.html">CompoundShape.h</a></div></div>
  635. <div class="ttc" id="a_core_8h_html_a69aa29b598b851b0640aa225a9e5d61d"><div class="ttname"><a href="_core_8h.html#a69aa29b598b851b0640aa225a9e5d61d">uint</a></div><div class="ttdeci">unsigned int uint</div><div class="ttdef"><b>Definition</b> Core.h:500</div></div>
  636. <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>
  637. <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>
  638. <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>
  639. <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>
  640. <div class="ttc" id="a_oriented_box_8h_html"><div class="ttname"><a href="_oriented_box_8h.html">OrientedBox.h</a></div></div>
  641. <div class="ttc" id="a_ray_a_a_box_8h_html"><div class="ttname"><a href="_ray_a_a_box_8h.html">RayAABox.h</a></div></div>
  642. <div class="ttc" id="a_ray_a_a_box_8h_html_a47b273497f8309ea15797696f48f41ad"><div class="ttname"><a href="_ray_a_a_box_8h.html#a47b273497f8309ea15797696f48f41ad">RayAABox4</a></div><div class="ttdeci">JPH_INLINE Vec4 RayAABox4(Vec3Arg inOrigin, const RayInvDirection &amp;inInvDirection, Vec4Arg inBoundsMinX, Vec4Arg inBoundsMinY, Vec4Arg inBoundsMinZ, Vec4Arg inBoundsMaxX, Vec4Arg inBoundsMaxY, Vec4Arg inBoundsMaxZ)</div><div class="ttdef"><b>Definition</b> RayAABox.h:72</div></div>
  643. <div class="ttc" id="a_ray_cast_8h_html"><div class="ttname"><a href="_ray_cast_8h.html">RayCast.h</a></div></div>
  644. <div class="ttc" id="a_shape_8h_html_aa332e0529e75b83aad91881c8d32551ba7380ae6c5e1189eef50cfd0557d74e99"><div class="ttname"><a href="_shape_8h.html#aa332e0529e75b83aad91881c8d32551ba7380ae6c5e1189eef50cfd0557d74e99">EShapeSubType::Scaled</a></div><div class="ttdeci">@ Scaled</div></div>
  645. <div class="ttc" id="a_shape_cast_8h_html"><div class="ttname"><a href="_shape_cast_8h.html">ShapeCast.h</a></div></div>
  646. <div class="ttc" id="a_sub_shape_i_d_8h_html"><div class="ttname"><a href="_sub_shape_i_d_8h.html">SubShapeID.h</a></div></div>
  647. <div class="ttc" id="a_transformed_shape_8h_html"><div class="ttname"><a href="_transformed_shape_8h.html">TransformedShape.h</a></div></div>
  648. <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>
  649. <div class="ttc" id="aclass_a_a_box_html_a7023c1c28f073fa0d14ecee0f5fc8ee8"><div class="ttname"><a href="class_a_a_box.html#a7023c1c28f073fa0d14ecee0f5fc8ee8">AABox::ExpandBy</a></div><div class="ttdeci">void ExpandBy(Vec3Arg inVector)</div><div class="ttdoc">Widen the box on both sides by inVector.</div><div class="ttdef"><b>Definition</b> AABox.h:107</div></div>
  650. <div class="ttc" id="aclass_broad_phase_cast_result_html_a3336f4d32762bcbcb6bcfd2b6fcbf7fb"><div class="ttname"><a href="class_broad_phase_cast_result.html#a3336f4d32762bcbcb6bcfd2b6fcbf7fb">BroadPhaseCastResult::mFraction</a></div><div class="ttdeci">float mFraction</div><div class="ttdoc">Hit fraction of the ray/object [0, 1], HitPoint = Start + mFraction * (End - Start)</div><div class="ttdef"><b>Definition</b> CastResult.h:25</div></div>
  651. <div class="ttc" id="aclass_collide_shape_settings_html"><div class="ttname"><a href="class_collide_shape_settings.html">CollideShapeSettings</a></div><div class="ttdoc">Settings to be passed with a collision query.</div><div class="ttdef"><b>Definition</b> CollideShape.h:94</div></div>
  652. <div class="ttc" id="aclass_collide_shape_settings_html_a511c99470c2fe3b2e82d06ffe26c52c1"><div class="ttname"><a href="class_collide_shape_settings.html#a511c99470c2fe3b2e82d06ffe26c52c1">CollideShapeSettings::mMaxSeparationDistance</a></div><div class="ttdeci">JPH_OVERRIDE_NEW_DELETE float mMaxSeparationDistance</div><div class="ttdef"><b>Definition</b> CollideShape.h:100</div></div>
  653. <div class="ttc" id="aclass_collision_collector_html"><div class="ttname"><a href="class_collision_collector.html">CollisionCollector</a></div><div class="ttdoc">Virtual interface that allows collecting multiple collision results.</div><div class="ttdef"><b>Definition</b> CollisionCollector.h:45</div></div>
  654. <div class="ttc" id="aclass_collision_collector_html_a45cb1cfbb5ec957d3c66b65d2333d825"><div class="ttname"><a href="class_collision_collector.html#a45cb1cfbb5ec957d3c66b65d2333d825">CollisionCollector::ShouldEarlyOut</a></div><div class="ttdeci">bool ShouldEarlyOut() const</div><div class="ttdoc">When true, the collector will no longer accept any additional hits and the collision detection routin...</div><div class="ttdef"><b>Definition</b> CollisionCollector.h:93</div></div>
  655. <div class="ttc" id="aclass_collision_dispatch_html_a29634d08db5d24ce7c0d5c44b547c075"><div class="ttname"><a href="class_collision_dispatch.html#a29634d08db5d24ce7c0d5c44b547c075">CollisionDispatch::sCollideShapeVsShape</a></div><div class="ttdeci">static void sCollideShapeVsShape(const Shape *inShape1, const Shape *inShape2, Vec3Arg inScale1, Vec3Arg inScale2, Mat44Arg inCenterOfMassTransform1, Mat44Arg inCenterOfMassTransform2, const SubShapeIDCreator &amp;inSubShapeIDCreator1, const SubShapeIDCreator &amp;inSubShapeIDCreator2, const CollideShapeSettings &amp;inCollideShapeSettings, CollideShapeCollector &amp;ioCollector, const ShapeFilter &amp;inShapeFilter={ })</div><div class="ttdef"><b>Definition</b> CollisionDispatch.h:33</div></div>
  656. <div class="ttc" id="aclass_collision_dispatch_html_a684c783f79569805d64cd436800b1d2a"><div class="ttname"><a href="class_collision_dispatch.html#a684c783f79569805d64cd436800b1d2a">CollisionDispatch::sCastShapeVsShapeLocalSpace</a></div><div class="ttdeci">static void sCastShapeVsShapeLocalSpace(const ShapeCast &amp;inShapeCastLocal, const ShapeCastSettings &amp;inShapeCastSettings, const Shape *inShape, Vec3Arg inScale, const ShapeFilter &amp;inShapeFilter, Mat44Arg inCenterOfMassTransform2, const SubShapeIDCreator &amp;inSubShapeIDCreator1, const SubShapeIDCreator &amp;inSubShapeIDCreator2, CastShapeCollector &amp;ioCollector)</div><div class="ttdef"><b>Definition</b> CollisionDispatch.h:53</div></div>
  657. <div class="ttc" id="aclass_compound_shape_html"><div class="ttname"><a href="class_compound_shape.html">CompoundShape</a></div><div class="ttdoc">Base class for a compound shape.</div><div class="ttdef"><b>Definition</b> CompoundShape.h:53</div></div>
  658. <div class="ttc" id="aclass_compound_shape_html_a3f4a71f903b9b37eb61262257ca268f2"><div class="ttname"><a href="class_compound_shape.html#a3f4a71f903b9b37eb61262257ca268f2">CompoundShape::GetSubShapeIDBits</a></div><div class="ttdeci">uint GetSubShapeIDBits() const</div><div class="ttdoc">Determine amount of bits needed to encode sub shape id.</div><div class="ttdef"><b>Definition</b> CompoundShape.h:329</div></div>
  659. <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>
  660. <div class="ttc" id="aclass_mat44_html_aba5427f45393b40263d52ec614cfa985"><div class="ttname"><a href="class_mat44.html#aba5427f45393b40263d52ec614cfa985">Mat44::sRotationTranslation</a></div><div class="ttdeci">static JPH_INLINE Mat44 sRotationTranslation(QuatArg inR, Vec3Arg inT)</div><div class="ttdoc">Get matrix that rotates and translates.</div><div class="ttdef"><b>Definition</b> Mat44.inl:149</div></div>
  661. <div class="ttc" id="aclass_mat44_html_ac8be820a7eeb44bf570abb8dc01f4c59"><div class="ttname"><a href="class_mat44.html#ac8be820a7eeb44bf570abb8dc01f4c59">Mat44::sInverseRotationTranslation</a></div><div class="ttdeci">static JPH_INLINE Mat44 sInverseRotationTranslation(QuatArg inR, Vec3Arg inT)</div><div class="ttdoc">Get inverse matrix of sRotationTranslation.</div><div class="ttdef"><b>Definition</b> Mat44.inl:156</div></div>
  662. <div class="ttc" id="aclass_mat44_html_af962ad0ed20cb6112f8249cb9573c233"><div class="ttname"><a href="class_mat44.html#af962ad0ed20cb6112f8249cb9573c233">Mat44::InversedRotationTranslation</a></div><div class="ttdeci">JPH_INLINE Mat44 InversedRotationTranslation() const</div><div class="ttdoc">Inverse 4x4 matrix when it only contains rotation and translation.</div><div class="ttdef"><b>Definition</b> Mat44.inl:729</div></div>
  663. <div class="ttc" id="aclass_oriented_box_html"><div class="ttname"><a href="class_oriented_box.html">OrientedBox</a></div><div class="ttdoc">Oriented box.</div><div class="ttdef"><b>Definition</b> OrientedBox.h:18</div></div>
  664. <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>
  665. <div class="ttc" id="aclass_ray_cast_result_html"><div class="ttname"><a href="class_ray_cast_result.html">RayCastResult</a></div><div class="ttdoc">Specialization of cast result against a shape.</div><div class="ttdef"><b>Definition</b> CastResult.h:30</div></div>
  666. <div class="ttc" id="aclass_ray_cast_settings_html"><div class="ttname"><a href="class_ray_cast_settings.html">RayCastSettings</a></div><div class="ttdoc">Settings to be passed with a ray cast.</div><div class="ttdef"><b>Definition</b> RayCast.h:70</div></div>
  667. <div class="ttc" id="aclass_ray_inv_direction_html"><div class="ttname"><a href="class_ray_inv_direction.html">RayInvDirection</a></div><div class="ttdoc">Helper structure holding the reciprocal of a ray for Ray vs AABox testing.</div><div class="ttdef"><b>Definition</b> RayAABox.h:11</div></div>
  668. <div class="ttc" id="aclass_ray_inv_direction_html_ac9569874f14ade61e966744af2abdc79"><div class="ttname"><a href="class_ray_inv_direction.html#ac9569874f14ade61e966744af2abdc79">RayInvDirection::Set</a></div><div class="ttdeci">void Set(Vec3Arg inDirection)</div><div class="ttdoc">Set reciprocal from ray direction.</div><div class="ttdef"><b>Definition</b> RayAABox.h:18</div></div>
  669. <div class="ttc" id="aclass_shape_cast_settings_html"><div class="ttname"><a href="class_shape_cast_settings.html">ShapeCastSettings</a></div><div class="ttdoc">Settings to be passed with a shape cast.</div><div class="ttdef"><b>Definition</b> ShapeCast.h:92</div></div>
  670. <div class="ttc" id="aclass_shape_filter_html"><div class="ttname"><a href="class_shape_filter.html">ShapeFilter</a></div><div class="ttdoc">Filter class.</div><div class="ttdef"><b>Definition</b> ShapeFilter.h:17</div></div>
  671. <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>
  672. <div class="ttc" id="aclass_shape_html_a30ea165596e01df087f6e4980ed6b0cb"><div class="ttname"><a href="class_shape.html#a30ea165596e01df087f6e4980ed6b0cb">Shape::GetLocalBounds</a></div><div class="ttdeci">virtual AABox GetLocalBounds() const =0</div><div class="ttdoc">Get local bounding box including convex radius, this box is centered around the center of mass rather...</div></div>
  673. <div class="ttc" id="aclass_shape_html_a3ed865e7eb30221b418cfd61d1430173"><div class="ttname"><a href="class_shape.html#a3ed865e7eb30221b418cfd61d1430173">Shape::CollectTransformedShapes</a></div><div class="ttdeci">virtual void CollectTransformedShapes(const AABox &amp;inBox, Vec3Arg inPositionCOM, QuatArg inRotation, Vec3Arg inScale, const SubShapeIDCreator &amp;inSubShapeIDCreator, TransformedShapeCollector &amp;ioCollector, const ShapeFilter &amp;inShapeFilter) const</div><div class="ttdef"><b>Definition</b> Shape.cpp:52</div></div>
  674. <div class="ttc" id="aclass_shape_html_a955ec1953bc94c6c910dc4dc16114732"><div class="ttname"><a href="class_shape.html#a955ec1953bc94c6c910dc4dc16114732">Shape::CastRay</a></div><div class="ttdeci">virtual bool CastRay(const RayCast &amp;inRay, const SubShapeIDCreator &amp;inSubShapeIDCreator, RayCastResult &amp;ioHit) const =0</div></div>
  675. <div class="ttc" id="aclass_shape_html_af6e77d16736434769d72152bf059a126"><div class="ttname"><a href="class_shape.html#af6e77d16736434769d72152bf059a126">Shape::CollidePoint</a></div><div class="ttdeci">virtual void CollidePoint(Vec3Arg inPoint, const SubShapeIDCreator &amp;inSubShapeIDCreator, CollidePointCollector &amp;ioCollector, const ShapeFilter &amp;inShapeFilter={ }) const =0</div></div>
  676. <div class="ttc" id="aclass_sub_shape_i_d_creator_html"><div class="ttname"><a href="class_sub_shape_i_d_creator.html">SubShapeIDCreator</a></div><div class="ttdef"><b>Definition</b> SubShapeID.h:108</div></div>
  677. <div class="ttc" id="aclass_sub_shape_i_d_creator_html_a29997885833b2c9625bcbcba4548273d"><div class="ttname"><a href="class_sub_shape_i_d_creator.html#a29997885833b2c9625bcbcba4548273d">SubShapeIDCreator::PushID</a></div><div class="ttdeci">SubShapeIDCreator PushID(uint inValue, uint inBits) const</div><div class="ttdoc">Add a new id to the chain of id's and return it.</div><div class="ttdef"><b>Definition</b> SubShapeID.h:111</div></div>
  678. <div class="ttc" id="aclass_u_vec4_html"><div class="ttname"><a href="class_u_vec4.html">UVec4</a></div><div class="ttdef"><b>Definition</b> UVec4.h:12</div></div>
  679. <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>
  680. <div class="ttc" id="aclass_vec3_html_ad6be51ce14811d6c196784d20cb39b98"><div class="ttname"><a href="class_vec3.html#ad6be51ce14811d6c196784d20cb39b98">Vec3::sReplicate</a></div><div class="ttdeci">static JPH_INLINE Vec3 sReplicate(float inV)</div><div class="ttdoc">Replicate inV across all components.</div><div class="ttdef"><b>Definition</b> Vec3.inl:114</div></div>
  681. <div class="ttc" id="aclass_vec4_html"><div class="ttname"><a href="class_vec4.html">Vec4</a></div><div class="ttdef"><b>Definition</b> Vec4.h:14</div></div>
  682. <div class="ttc" id="astruct_compound_shape_1_1_cast_ray_visitor_collector_html"><div class="ttname"><a href="struct_compound_shape_1_1_cast_ray_visitor_collector.html">CompoundShape::CastRayVisitorCollector</a></div><div class="ttdef"><b>Definition</b> CompoundShapeVisitors.h:66</div></div>
  683. <div class="ttc" id="astruct_compound_shape_1_1_cast_ray_visitor_collector_html_a085af308c94408bd9f45fb3195402ba1"><div class="ttname"><a href="struct_compound_shape_1_1_cast_ray_visitor_collector.html#a085af308c94408bd9f45fb3195402ba1">CompoundShape::CastRayVisitorCollector::mShapeFilter</a></div><div class="ttdeci">const ShapeFilter &amp; mShapeFilter</div><div class="ttdef"><b>Definition</b> CompoundShapeVisitors.h:109</div></div>
  684. <div class="ttc" id="astruct_compound_shape_1_1_cast_ray_visitor_collector_html_a279153b159b17f4bf1fb7a1a4df46122"><div class="ttname"><a href="struct_compound_shape_1_1_cast_ray_visitor_collector.html#a279153b159b17f4bf1fb7a1a4df46122">CompoundShape::CastRayVisitorCollector::mRayCastSettings</a></div><div class="ttdeci">RayCastSettings mRayCastSettings</div><div class="ttdef"><b>Definition</b> CompoundShapeVisitors.h:108</div></div>
  685. <div class="ttc" id="astruct_compound_shape_1_1_cast_ray_visitor_collector_html_a27e6f90c97311cb2274d1c15b7088367"><div class="ttname"><a href="struct_compound_shape_1_1_cast_ray_visitor_collector.html#a27e6f90c97311cb2274d1c15b7088367">CompoundShape::CastRayVisitorCollector::mRay</a></div><div class="ttdeci">const RayCast &amp; mRay</div><div class="ttdef"><b>Definition</b> CompoundShapeVisitors.h:104</div></div>
  686. <div class="ttc" id="astruct_compound_shape_1_1_cast_ray_visitor_collector_html_a295365cb216ebe0c673cddae6fe7fcc6"><div class="ttname"><a href="struct_compound_shape_1_1_cast_ray_visitor_collector.html#a295365cb216ebe0c673cddae6fe7fcc6">CompoundShape::CastRayVisitorCollector::VisitShape</a></div><div class="ttdeci">JPH_INLINE void VisitShape(const SubShape &amp;inSubShape, uint32 inSubShapeIndex)</div><div class="ttdoc">Test the ray against a single subshape.</div><div class="ttdef"><b>Definition</b> CompoundShapeVisitors.h:92</div></div>
  687. <div class="ttc" id="astruct_compound_shape_1_1_cast_ray_visitor_collector_html_a3a9a5655d3583d15e247d7c3ce94da35"><div class="ttname"><a href="struct_compound_shape_1_1_cast_ray_visitor_collector.html#a3a9a5655d3583d15e247d7c3ce94da35">CompoundShape::CastRayVisitorCollector::mSubShapeIDCreator</a></div><div class="ttdeci">SubShapeIDCreator mSubShapeIDCreator</div><div class="ttdef"><b>Definition</b> CompoundShapeVisitors.h:106</div></div>
  688. <div class="ttc" id="astruct_compound_shape_1_1_cast_ray_visitor_collector_html_a77fc1dbc8b79d5ec9cb3bf6803f9ca33"><div class="ttname"><a href="struct_compound_shape_1_1_cast_ray_visitor_collector.html#a77fc1dbc8b79d5ec9cb3bf6803f9ca33">CompoundShape::CastRayVisitorCollector::mSubShapeBits</a></div><div class="ttdeci">uint mSubShapeBits</div><div class="ttdef"><b>Definition</b> CompoundShapeVisitors.h:107</div></div>
  689. <div class="ttc" id="astruct_compound_shape_1_1_cast_ray_visitor_collector_html_a814152f9307136c005f19c36131746d2"><div class="ttname"><a href="struct_compound_shape_1_1_cast_ray_visitor_collector.html#a814152f9307136c005f19c36131746d2">CompoundShape::CastRayVisitorCollector::TestBounds</a></div><div class="ttdeci">JPH_INLINE Vec4 TestBounds(Vec4Arg inBoundsMinX, Vec4Arg inBoundsMinY, Vec4Arg inBoundsMinZ, Vec4Arg inBoundsMaxX, Vec4Arg inBoundsMaxY, Vec4Arg inBoundsMaxZ) const</div><div class="ttdoc">Test ray against 4 bounding boxes and returns the distance where the ray enters the bounding box.</div><div class="ttdef"><b>Definition</b> CompoundShapeVisitors.h:86</div></div>
  690. <div class="ttc" id="astruct_compound_shape_1_1_cast_ray_visitor_collector_html_aa482aff5292c183077270554b7053fb5"><div class="ttname"><a href="struct_compound_shape_1_1_cast_ray_visitor_collector.html#aa482aff5292c183077270554b7053fb5">CompoundShape::CastRayVisitorCollector::mCollector</a></div><div class="ttdeci">CastRayCollector &amp; mCollector</div><div class="ttdef"><b>Definition</b> CompoundShapeVisitors.h:105</div></div>
  691. <div class="ttc" id="astruct_compound_shape_1_1_cast_ray_visitor_collector_html_adcc33d30649befa932d49742db59986d"><div class="ttname"><a href="struct_compound_shape_1_1_cast_ray_visitor_collector.html#adcc33d30649befa932d49742db59986d">CompoundShape::CastRayVisitorCollector::ShouldAbort</a></div><div class="ttdeci">JPH_INLINE bool ShouldAbort() const</div><div class="ttdoc">Returns true when collision detection should abort because it's not possible to find a better hit.</div><div class="ttdef"><b>Definition</b> CompoundShapeVisitors.h:80</div></div>
  692. <div class="ttc" id="astruct_compound_shape_1_1_cast_ray_visitor_collector_html_af17b4ee8b0f590e72d35ced0d45563f0"><div class="ttname"><a href="struct_compound_shape_1_1_cast_ray_visitor_collector.html#af17b4ee8b0f590e72d35ced0d45563f0">CompoundShape::CastRayVisitorCollector::CastRayVisitorCollector</a></div><div class="ttdeci">JPH_INLINE CastRayVisitorCollector(const RayCast &amp;inRay, const RayCastSettings &amp;inRayCastSettings, const CompoundShape *inShape, const SubShapeIDCreator &amp;inSubShapeIDCreator, CastRayCollector &amp;ioCollector, const ShapeFilter &amp;inShapeFilter)</div><div class="ttdef"><b>Definition</b> CompoundShapeVisitors.h:67</div></div>
  693. <div class="ttc" id="astruct_compound_shape_1_1_cast_ray_visitor_collector_html_afe91b86d85eebf7f35660efeb535ae9d"><div class="ttname"><a href="struct_compound_shape_1_1_cast_ray_visitor_collector.html#afe91b86d85eebf7f35660efeb535ae9d">CompoundShape::CastRayVisitorCollector::mInvDirection</a></div><div class="ttdeci">RayInvDirection mInvDirection</div><div class="ttdef"><b>Definition</b> CompoundShapeVisitors.h:103</div></div>
  694. <div class="ttc" id="astruct_compound_shape_1_1_cast_ray_visitor_html"><div class="ttname"><a href="struct_compound_shape_1_1_cast_ray_visitor.html">CompoundShape::CastRayVisitor</a></div><div class="ttdef"><b>Definition</b> CompoundShapeVisitors.h:21</div></div>
  695. <div class="ttc" id="astruct_compound_shape_1_1_cast_ray_visitor_html_a3d68ed7fbf5ccbb853e1ef47e45e72bb"><div class="ttname"><a href="struct_compound_shape_1_1_cast_ray_visitor.html#a3d68ed7fbf5ccbb853e1ef47e45e72bb">CompoundShape::CastRayVisitor::mSubShapeBits</a></div><div class="ttdeci">uint mSubShapeBits</div><div class="ttdef"><b>Definition</b> CompoundShapeVisitors.h:61</div></div>
  696. <div class="ttc" id="astruct_compound_shape_1_1_cast_ray_visitor_html_a45ca32b8515b057633bdea8c47f3f044"><div class="ttname"><a href="struct_compound_shape_1_1_cast_ray_visitor.html#a45ca32b8515b057633bdea8c47f3f044">CompoundShape::CastRayVisitor::TestBounds</a></div><div class="ttdeci">JPH_INLINE Vec4 TestBounds(Vec4Arg inBoundsMinX, Vec4Arg inBoundsMinY, Vec4Arg inBoundsMinZ, Vec4Arg inBoundsMaxX, Vec4Arg inBoundsMaxY, Vec4Arg inBoundsMaxZ) const</div><div class="ttdoc">Test ray against 4 bounding boxes and returns the distance where the ray enters the bounding box.</div><div class="ttdef"><b>Definition</b> CompoundShapeVisitors.h:39</div></div>
  697. <div class="ttc" id="astruct_compound_shape_1_1_cast_ray_visitor_html_a5d6fbbcbcb0a268582642c731d542c8f"><div class="ttname"><a href="struct_compound_shape_1_1_cast_ray_visitor.html#a5d6fbbcbcb0a268582642c731d542c8f">CompoundShape::CastRayVisitor::mSubShapeIDCreator</a></div><div class="ttdeci">SubShapeIDCreator mSubShapeIDCreator</div><div class="ttdef"><b>Definition</b> CompoundShapeVisitors.h:60</div></div>
  698. <div class="ttc" id="astruct_compound_shape_1_1_cast_ray_visitor_html_a67db40d3d39442109dff46d6c8962f6e"><div class="ttname"><a href="struct_compound_shape_1_1_cast_ray_visitor.html#a67db40d3d39442109dff46d6c8962f6e">CompoundShape::CastRayVisitor::mRay</a></div><div class="ttdeci">const RayCast &amp; mRay</div><div class="ttdef"><b>Definition</b> CompoundShapeVisitors.h:58</div></div>
  699. <div class="ttc" id="astruct_compound_shape_1_1_cast_ray_visitor_html_a7668a1ea39d30feee8636f90626320c4"><div class="ttname"><a href="struct_compound_shape_1_1_cast_ray_visitor.html#a7668a1ea39d30feee8636f90626320c4">CompoundShape::CastRayVisitor::ShouldAbort</a></div><div class="ttdeci">JPH_INLINE bool ShouldAbort() const</div><div class="ttdoc">Returns true when collision detection should abort because it's not possible to find a better hit.</div><div class="ttdef"><b>Definition</b> CompoundShapeVisitors.h:33</div></div>
  700. <div class="ttc" id="astruct_compound_shape_1_1_cast_ray_visitor_html_a7adfe292a88805c33097245c07d2d529"><div class="ttname"><a href="struct_compound_shape_1_1_cast_ray_visitor.html#a7adfe292a88805c33097245c07d2d529">CompoundShape::CastRayVisitor::CastRayVisitor</a></div><div class="ttdeci">JPH_INLINE CastRayVisitor(const RayCast &amp;inRay, const CompoundShape *inShape, const SubShapeIDCreator &amp;inSubShapeIDCreator, RayCastResult &amp;ioHit)</div><div class="ttdef"><b>Definition</b> CompoundShapeVisitors.h:22</div></div>
  701. <div class="ttc" id="astruct_compound_shape_1_1_cast_ray_visitor_html_a848fb221cd472001c314498be3ad4f71"><div class="ttname"><a href="struct_compound_shape_1_1_cast_ray_visitor.html#a848fb221cd472001c314498be3ad4f71">CompoundShape::CastRayVisitor::mInvDirection</a></div><div class="ttdeci">RayInvDirection mInvDirection</div><div class="ttdef"><b>Definition</b> CompoundShapeVisitors.h:57</div></div>
  702. <div class="ttc" id="astruct_compound_shape_1_1_cast_ray_visitor_html_a8b14b4e32934a67cbd94a7ff0f362ac5"><div class="ttname"><a href="struct_compound_shape_1_1_cast_ray_visitor.html#a8b14b4e32934a67cbd94a7ff0f362ac5">CompoundShape::CastRayVisitor::mReturnValue</a></div><div class="ttdeci">bool mReturnValue</div><div class="ttdef"><b>Definition</b> CompoundShapeVisitors.h:62</div></div>
  703. <div class="ttc" id="astruct_compound_shape_1_1_cast_ray_visitor_html_aa4f2babd360c7683d26e6d089179999e"><div class="ttname"><a href="struct_compound_shape_1_1_cast_ray_visitor.html#aa4f2babd360c7683d26e6d089179999e">CompoundShape::CastRayVisitor::mHit</a></div><div class="ttdeci">RayCastResult &amp; mHit</div><div class="ttdef"><b>Definition</b> CompoundShapeVisitors.h:59</div></div>
  704. <div class="ttc" id="astruct_compound_shape_1_1_cast_ray_visitor_html_abcfb06db0c470f7b887bd1ccbdf293e9"><div class="ttname"><a href="struct_compound_shape_1_1_cast_ray_visitor.html#abcfb06db0c470f7b887bd1ccbdf293e9">CompoundShape::CastRayVisitor::VisitShape</a></div><div class="ttdeci">JPH_INLINE void VisitShape(const SubShape &amp;inSubShape, uint32 inSubShapeIndex)</div><div class="ttdoc">Test the ray against a single subshape.</div><div class="ttdef"><b>Definition</b> CompoundShapeVisitors.h:45</div></div>
  705. <div class="ttc" id="astruct_compound_shape_1_1_cast_shape_visitor_html"><div class="ttname"><a href="struct_compound_shape_1_1_cast_shape_visitor.html">CompoundShape::CastShapeVisitor</a></div><div class="ttdef"><b>Definition</b> CompoundShapeVisitors.h:154</div></div>
  706. <div class="ttc" id="astruct_compound_shape_1_1_cast_shape_visitor_html_a012a8f770d2d7c6722d0ea074a0ce272"><div class="ttname"><a href="struct_compound_shape_1_1_cast_shape_visitor.html#a012a8f770d2d7c6722d0ea074a0ce272">CompoundShape::CastShapeVisitor::mScale</a></div><div class="ttdeci">Vec3 mScale</div><div class="ttdef"><b>Definition</b> CompoundShapeVisitors.h:215</div></div>
  707. <div class="ttc" id="astruct_compound_shape_1_1_cast_shape_visitor_html_a11687e8851b02a264d77bfa665822398"><div class="ttname"><a href="struct_compound_shape_1_1_cast_shape_visitor.html#a11687e8851b02a264d77bfa665822398">CompoundShape::CastShapeVisitor::ShouldAbort</a></div><div class="ttdeci">JPH_INLINE bool ShouldAbort() const</div><div class="ttdoc">Returns true when collision detection should abort because it's not possible to find a better hit.</div><div class="ttdef"><b>Definition</b> CompoundShapeVisitors.h:173</div></div>
  708. <div class="ttc" id="astruct_compound_shape_1_1_cast_shape_visitor_html_a290ab12059bcc67d2a199f8a57a69027"><div class="ttname"><a href="struct_compound_shape_1_1_cast_shape_visitor.html#a290ab12059bcc67d2a199f8a57a69027">CompoundShape::CastShapeVisitor::mCollector</a></div><div class="ttdeci">CastShapeCollector &amp; mCollector</div><div class="ttdef"><b>Definition</b> CompoundShapeVisitors.h:219</div></div>
  709. <div class="ttc" id="astruct_compound_shape_1_1_cast_shape_visitor_html_a31cf68987698a4a4d01d6c3db7a25bb8"><div class="ttname"><a href="struct_compound_shape_1_1_cast_shape_visitor.html#a31cf68987698a4a4d01d6c3db7a25bb8">CompoundShape::CastShapeVisitor::mShapeCastSettings</a></div><div class="ttdeci">const ShapeCastSettings &amp; mShapeCastSettings</div><div class="ttdef"><b>Definition</b> CompoundShapeVisitors.h:217</div></div>
  710. <div class="ttc" id="astruct_compound_shape_1_1_cast_shape_visitor_html_a6e39d022fd61dff3cd0572c0a76c0894"><div class="ttname"><a href="struct_compound_shape_1_1_cast_shape_visitor.html#a6e39d022fd61dff3cd0572c0a76c0894">CompoundShape::CastShapeVisitor::mSubShapeIDCreator2</a></div><div class="ttdeci">SubShapeIDCreator mSubShapeIDCreator2</div><div class="ttdef"><b>Definition</b> CompoundShapeVisitors.h:222</div></div>
  711. <div class="ttc" id="astruct_compound_shape_1_1_cast_shape_visitor_html_a6fa233b683235d32096365a5d9ac5894"><div class="ttname"><a href="struct_compound_shape_1_1_cast_shape_visitor.html#a6fa233b683235d32096365a5d9ac5894">CompoundShape::CastShapeVisitor::mBoxExtent</a></div><div class="ttdeci">Vec3 mBoxExtent</div><div class="ttdef"><b>Definition</b> CompoundShapeVisitors.h:214</div></div>
  712. <div class="ttc" id="astruct_compound_shape_1_1_cast_shape_visitor_html_a71060cc2b409ddda0dd6a8d6da5086a7"><div class="ttname"><a href="struct_compound_shape_1_1_cast_shape_visitor.html#a71060cc2b409ddda0dd6a8d6da5086a7">CompoundShape::CastShapeVisitor::mSubShapeBits</a></div><div class="ttdeci">uint mSubShapeBits</div><div class="ttdef"><b>Definition</b> CompoundShapeVisitors.h:223</div></div>
  713. <div class="ttc" id="astruct_compound_shape_1_1_cast_shape_visitor_html_a7bcdd12bb40a5694b8cea6c6b72ee730"><div class="ttname"><a href="struct_compound_shape_1_1_cast_shape_visitor.html#a7bcdd12bb40a5694b8cea6c6b72ee730">CompoundShape::CastShapeVisitor::mShapeCast</a></div><div class="ttdeci">const ShapeCast &amp; mShapeCast</div><div class="ttdef"><b>Definition</b> CompoundShapeVisitors.h:216</div></div>
  714. <div class="ttc" id="astruct_compound_shape_1_1_cast_shape_visitor_html_a87b65ee6239d12e86511a22e35911181"><div class="ttname"><a href="struct_compound_shape_1_1_cast_shape_visitor.html#a87b65ee6239d12e86511a22e35911181">CompoundShape::CastShapeVisitor::mShapeFilter</a></div><div class="ttdeci">const ShapeFilter &amp; mShapeFilter</div><div class="ttdef"><b>Definition</b> CompoundShapeVisitors.h:218</div></div>
  715. <div class="ttc" id="astruct_compound_shape_1_1_cast_shape_visitor_html_a88be6d8856ed44ab1bce0e18c6716f69"><div class="ttname"><a href="struct_compound_shape_1_1_cast_shape_visitor.html#a88be6d8856ed44ab1bce0e18c6716f69">CompoundShape::CastShapeVisitor::mSubShapeIDCreator1</a></div><div class="ttdeci">SubShapeIDCreator mSubShapeIDCreator1</div><div class="ttdef"><b>Definition</b> CompoundShapeVisitors.h:221</div></div>
  716. <div class="ttc" id="astruct_compound_shape_1_1_cast_shape_visitor_html_aa834797c904738fc3bee984367a46df4"><div class="ttname"><a href="struct_compound_shape_1_1_cast_shape_visitor.html#aa834797c904738fc3bee984367a46df4">CompoundShape::CastShapeVisitor::VisitShape</a></div><div class="ttdeci">JPH_INLINE void VisitShape(const SubShape &amp;inSubShape, uint32 inSubShapeIndex)</div><div class="ttdoc">Test the cast shape against a single subshape.</div><div class="ttdef"><b>Definition</b> CompoundShapeVisitors.h:193</div></div>
  717. <div class="ttc" id="astruct_compound_shape_1_1_cast_shape_visitor_html_aa89ca00f54a79ed5ead44eebbc25f41e"><div class="ttname"><a href="struct_compound_shape_1_1_cast_shape_visitor.html#aa89ca00f54a79ed5ead44eebbc25f41e">CompoundShape::CastShapeVisitor::TestBounds</a></div><div class="ttdeci">JPH_INLINE Vec4 TestBounds(Vec4Arg inBoundsMinX, Vec4Arg inBoundsMinY, Vec4Arg inBoundsMinZ, Vec4Arg inBoundsMaxX, Vec4Arg inBoundsMaxY, Vec4Arg inBoundsMaxZ) const</div><div class="ttdoc">Tests the shape cast against 4 bounding boxes, returns the distance along the shape cast where the sh...</div><div class="ttdef"><b>Definition</b> CompoundShapeVisitors.h:179</div></div>
  718. <div class="ttc" id="astruct_compound_shape_1_1_cast_shape_visitor_html_abbd8f9db973ff8289d6e7ec10374670b"><div class="ttname"><a href="struct_compound_shape_1_1_cast_shape_visitor.html#abbd8f9db973ff8289d6e7ec10374670b">CompoundShape::CastShapeVisitor::CastShapeVisitor</a></div><div class="ttdeci">JPH_INLINE CastShapeVisitor(const ShapeCast &amp;inShapeCast, const ShapeCastSettings &amp;inShapeCastSettings, const CompoundShape *inShape, Vec3Arg inScale, const ShapeFilter &amp;inShapeFilter, Mat44Arg inCenterOfMassTransform2, const SubShapeIDCreator &amp;inSubShapeIDCreator1, const SubShapeIDCreator &amp;inSubShapeIDCreator2, CastShapeCollector &amp;ioCollector)</div><div class="ttdef"><b>Definition</b> CompoundShapeVisitors.h:155</div></div>
  719. <div class="ttc" id="astruct_compound_shape_1_1_cast_shape_visitor_html_abc86dba5d2e4f85caf6e84e0926fae26"><div class="ttname"><a href="struct_compound_shape_1_1_cast_shape_visitor.html#abc86dba5d2e4f85caf6e84e0926fae26">CompoundShape::CastShapeVisitor::mBoxCenter</a></div><div class="ttdeci">Vec3 mBoxCenter</div><div class="ttdef"><b>Definition</b> CompoundShapeVisitors.h:213</div></div>
  720. <div class="ttc" id="astruct_compound_shape_1_1_cast_shape_visitor_html_ae3d1ce73b6255f42f50e9acb10608477"><div class="ttname"><a href="struct_compound_shape_1_1_cast_shape_visitor.html#ae3d1ce73b6255f42f50e9acb10608477">CompoundShape::CastShapeVisitor::mInvDirection</a></div><div class="ttdeci">RayInvDirection mInvDirection</div><div class="ttdef"><b>Definition</b> CompoundShapeVisitors.h:212</div></div>
  721. <div class="ttc" id="astruct_compound_shape_1_1_cast_shape_visitor_html_af4a7cfe31a9090b41b803e94f6a35ed5"><div class="ttname"><a href="struct_compound_shape_1_1_cast_shape_visitor.html#af4a7cfe31a9090b41b803e94f6a35ed5">CompoundShape::CastShapeVisitor::mCenterOfMassTransform2</a></div><div class="ttdeci">Mat44 mCenterOfMassTransform2</div><div class="ttdef"><b>Definition</b> CompoundShapeVisitors.h:220</div></div>
  722. <div class="ttc" id="astruct_compound_shape_1_1_collect_transformed_shapes_visitor_html"><div class="ttname"><a href="struct_compound_shape_1_1_collect_transformed_shapes_visitor.html">CompoundShape::CollectTransformedShapesVisitor</a></div><div class="ttdef"><b>Definition</b> CompoundShapeVisitors.h:227</div></div>
  723. <div class="ttc" id="astruct_compound_shape_1_1_collect_transformed_shapes_visitor_html_a0514f8498006d248fc1ca54e5420ba41"><div class="ttname"><a href="struct_compound_shape_1_1_collect_transformed_shapes_visitor.html#a0514f8498006d248fc1ca54e5420ba41">CompoundShape::CollectTransformedShapesVisitor::ShouldAbort</a></div><div class="ttdeci">JPH_INLINE bool ShouldAbort() const</div><div class="ttdoc">Returns true when collision detection should abort because it's not possible to find a better hit.</div><div class="ttdef"><b>Definition</b> CompoundShapeVisitors.h:242</div></div>
  724. <div class="ttc" id="astruct_compound_shape_1_1_collect_transformed_shapes_visitor_html_a0b73160273b742d692193d37e4f5e571"><div class="ttname"><a href="struct_compound_shape_1_1_collect_transformed_shapes_visitor.html#a0b73160273b742d692193d37e4f5e571">CompoundShape::CollectTransformedShapesVisitor::mPositionCOM</a></div><div class="ttdeci">Vec3 mPositionCOM</div><div class="ttdef"><b>Definition</b> CompoundShapeVisitors.h:276</div></div>
  725. <div class="ttc" id="astruct_compound_shape_1_1_collect_transformed_shapes_visitor_html_a40155b16c19875b30971665976d2b3be"><div class="ttname"><a href="struct_compound_shape_1_1_collect_transformed_shapes_visitor.html#a40155b16c19875b30971665976d2b3be">CompoundShape::CollectTransformedShapesVisitor::VisitShape</a></div><div class="ttdeci">JPH_INLINE void VisitShape(const SubShape &amp;inSubShape, uint32 inSubShapeIndex)</div><div class="ttdoc">Collect the transformed sub shapes for a single subshape.</div><div class="ttdef"><b>Definition</b> CompoundShapeVisitors.h:259</div></div>
  726. <div class="ttc" id="astruct_compound_shape_1_1_collect_transformed_shapes_visitor_html_a47b09d94bdefcf6a75a756f3e37c339f"><div class="ttname"><a href="struct_compound_shape_1_1_collect_transformed_shapes_visitor.html#a47b09d94bdefcf6a75a756f3e37c339f">CompoundShape::CollectTransformedShapesVisitor::mRotation</a></div><div class="ttdeci">Quat mRotation</div><div class="ttdef"><b>Definition</b> CompoundShapeVisitors.h:277</div></div>
  727. <div class="ttc" id="astruct_compound_shape_1_1_collect_transformed_shapes_visitor_html_a55cc06cb9e9d00cc51e902e0b038d96e"><div class="ttname"><a href="struct_compound_shape_1_1_collect_transformed_shapes_visitor.html#a55cc06cb9e9d00cc51e902e0b038d96e">CompoundShape::CollectTransformedShapesVisitor::mBox</a></div><div class="ttdeci">AABox mBox</div><div class="ttdef"><b>Definition</b> CompoundShapeVisitors.h:274</div></div>
  728. <div class="ttc" id="astruct_compound_shape_1_1_collect_transformed_shapes_visitor_html_a613d75816ac10978847612943afa504e"><div class="ttname"><a href="struct_compound_shape_1_1_collect_transformed_shapes_visitor.html#a613d75816ac10978847612943afa504e">CompoundShape::CollectTransformedShapesVisitor::mSubShapeIDCreator</a></div><div class="ttdeci">SubShapeIDCreator mSubShapeIDCreator</div><div class="ttdef"><b>Definition</b> CompoundShapeVisitors.h:279</div></div>
  729. <div class="ttc" id="astruct_compound_shape_1_1_collect_transformed_shapes_visitor_html_a68b2dd66eeaafdf0fcb240f1bfd66b44"><div class="ttname"><a href="struct_compound_shape_1_1_collect_transformed_shapes_visitor.html#a68b2dd66eeaafdf0fcb240f1bfd66b44">CompoundShape::CollectTransformedShapesVisitor::CollectTransformedShapesVisitor</a></div><div class="ttdeci">JPH_INLINE CollectTransformedShapesVisitor(const AABox &amp;inBox, const CompoundShape *inShape, Vec3Arg inPositionCOM, QuatArg inRotation, Vec3Arg inScale, const SubShapeIDCreator &amp;inSubShapeIDCreator, TransformedShapeCollector &amp;ioCollector, const ShapeFilter &amp;inShapeFilter)</div><div class="ttdef"><b>Definition</b> CompoundShapeVisitors.h:228</div></div>
  730. <div class="ttc" id="astruct_compound_shape_1_1_collect_transformed_shapes_visitor_html_a760002fad6044539aaa17b42c293032c"><div class="ttname"><a href="struct_compound_shape_1_1_collect_transformed_shapes_visitor.html#a760002fad6044539aaa17b42c293032c">CompoundShape::CollectTransformedShapesVisitor::mScale</a></div><div class="ttdeci">Vec3 mScale</div><div class="ttdef"><b>Definition</b> CompoundShapeVisitors.h:278</div></div>
  731. <div class="ttc" id="astruct_compound_shape_1_1_collect_transformed_shapes_visitor_html_a888023b455a023aa817178a3ccc50797"><div class="ttname"><a href="struct_compound_shape_1_1_collect_transformed_shapes_visitor.html#a888023b455a023aa817178a3ccc50797">CompoundShape::CollectTransformedShapesVisitor::mCollector</a></div><div class="ttdeci">TransformedShapeCollector &amp; mCollector</div><div class="ttdef"><b>Definition</b> CompoundShapeVisitors.h:280</div></div>
  732. <div class="ttc" id="astruct_compound_shape_1_1_collect_transformed_shapes_visitor_html_ab0b166da6e14b8694b567f68605c3225"><div class="ttname"><a href="struct_compound_shape_1_1_collect_transformed_shapes_visitor.html#ab0b166da6e14b8694b567f68605c3225">CompoundShape::CollectTransformedShapesVisitor::mShapeFilter</a></div><div class="ttdeci">const ShapeFilter &amp; mShapeFilter</div><div class="ttdef"><b>Definition</b> CompoundShapeVisitors.h:282</div></div>
  733. <div class="ttc" id="astruct_compound_shape_1_1_collect_transformed_shapes_visitor_html_ae2e78802ce43915c117bc1e0d91d08b5"><div class="ttname"><a href="struct_compound_shape_1_1_collect_transformed_shapes_visitor.html#ae2e78802ce43915c117bc1e0d91d08b5">CompoundShape::CollectTransformedShapesVisitor::TestBounds</a></div><div class="ttdeci">JPH_INLINE UVec4 TestBounds(Vec4Arg inBoundsMinX, Vec4Arg inBoundsMinY, Vec4Arg inBoundsMinZ, Vec4Arg inBoundsMaxX, Vec4Arg inBoundsMaxY, Vec4Arg inBoundsMaxZ) const</div><div class="ttdoc">Tests 4 bounding boxes against the query box, returns true for the ones that collide.</div><div class="ttdef"><b>Definition</b> CompoundShapeVisitors.h:248</div></div>
  734. <div class="ttc" id="astruct_compound_shape_1_1_collect_transformed_shapes_visitor_html_ae36c22c62df54bfaabe0272463b0b32c"><div class="ttname"><a href="struct_compound_shape_1_1_collect_transformed_shapes_visitor.html#ae36c22c62df54bfaabe0272463b0b32c">CompoundShape::CollectTransformedShapesVisitor::mSubShapeBits</a></div><div class="ttdeci">uint mSubShapeBits</div><div class="ttdef"><b>Definition</b> CompoundShapeVisitors.h:281</div></div>
  735. <div class="ttc" id="astruct_compound_shape_1_1_collect_transformed_shapes_visitor_html_ae803bcfcf769987698f075c49f34708b"><div class="ttname"><a href="struct_compound_shape_1_1_collect_transformed_shapes_visitor.html#ae803bcfcf769987698f075c49f34708b">CompoundShape::CollectTransformedShapesVisitor::mLocalBox</a></div><div class="ttdeci">OrientedBox mLocalBox</div><div class="ttdef"><b>Definition</b> CompoundShapeVisitors.h:275</div></div>
  736. <div class="ttc" id="astruct_compound_shape_1_1_collide_compound_vs_shape_visitor_html"><div class="ttname"><a href="struct_compound_shape_1_1_collide_compound_vs_shape_visitor.html">CompoundShape::CollideCompoundVsShapeVisitor</a></div><div class="ttdef"><b>Definition</b> CompoundShapeVisitors.h:286</div></div>
  737. <div class="ttc" id="astruct_compound_shape_1_1_collide_compound_vs_shape_visitor_html_a0baf1b449eed819cb072a676d72398cd"><div class="ttname"><a href="struct_compound_shape_1_1_collide_compound_vs_shape_visitor.html#a0baf1b449eed819cb072a676d72398cd">CompoundShape::CollideCompoundVsShapeVisitor::mCollector</a></div><div class="ttdeci">CollideShapeCollector &amp; mCollector</div><div class="ttdef"><b>Definition</b> CompoundShapeVisitors.h:338</div></div>
  738. <div class="ttc" id="astruct_compound_shape_1_1_collide_compound_vs_shape_visitor_html_a10a2d8ac67f9978eeacf09dae77c894b"><div class="ttname"><a href="struct_compound_shape_1_1_collide_compound_vs_shape_visitor.html#a10a2d8ac67f9978eeacf09dae77c894b">CompoundShape::CollideCompoundVsShapeVisitor::mTransform1</a></div><div class="ttdeci">Mat44 mTransform1</div><div class="ttdef"><b>Definition</b> CompoundShapeVisitors.h:342</div></div>
  739. <div class="ttc" id="astruct_compound_shape_1_1_collide_compound_vs_shape_visitor_html_a135fbf1825c7dfbfc0556005b92bc5c1"><div class="ttname"><a href="struct_compound_shape_1_1_collide_compound_vs_shape_visitor.html#a135fbf1825c7dfbfc0556005b92bc5c1">CompoundShape::CollideCompoundVsShapeVisitor::ShouldAbort</a></div><div class="ttdeci">JPH_INLINE bool ShouldAbort() const</div><div class="ttdoc">Returns true when collision detection should abort because it's not possible to find a better hit.</div><div class="ttdef"><b>Definition</b> CompoundShapeVisitors.h:309</div></div>
  740. <div class="ttc" id="astruct_compound_shape_1_1_collide_compound_vs_shape_visitor_html_a350f11e56d89c4f9200163a131f3f444"><div class="ttname"><a href="struct_compound_shape_1_1_collide_compound_vs_shape_visitor.html#a350f11e56d89c4f9200163a131f3f444">CompoundShape::CollideCompoundVsShapeVisitor::mCollideShapeSettings</a></div><div class="ttdeci">const CollideShapeSettings &amp; mCollideShapeSettings</div><div class="ttdef"><b>Definition</b> CompoundShapeVisitors.h:337</div></div>
  741. <div class="ttc" id="astruct_compound_shape_1_1_collide_compound_vs_shape_visitor_html_a3e53fc715eeb683b4b753c43923f5839"><div class="ttname"><a href="struct_compound_shape_1_1_collide_compound_vs_shape_visitor.html#a3e53fc715eeb683b4b753c43923f5839">CompoundShape::CollideCompoundVsShapeVisitor::mTransform2</a></div><div class="ttdeci">Mat44 mTransform2</div><div class="ttdef"><b>Definition</b> CompoundShapeVisitors.h:343</div></div>
  742. <div class="ttc" id="astruct_compound_shape_1_1_collide_compound_vs_shape_visitor_html_a5b0a740a68fd32de56518ab00e2d5afa"><div class="ttname"><a href="struct_compound_shape_1_1_collide_compound_vs_shape_visitor.html#a5b0a740a68fd32de56518ab00e2d5afa">CompoundShape::CollideCompoundVsShapeVisitor::mSubShapeBits</a></div><div class="ttdeci">uint mSubShapeBits</div><div class="ttdef"><b>Definition</b> CompoundShapeVisitors.h:347</div></div>
  743. <div class="ttc" id="astruct_compound_shape_1_1_collide_compound_vs_shape_visitor_html_a63d01e5f27bd4944b066e6a33c3f4698"><div class="ttname"><a href="struct_compound_shape_1_1_collide_compound_vs_shape_visitor.html#a63d01e5f27bd4944b066e6a33c3f4698">CompoundShape::CollideCompoundVsShapeVisitor::mShapeFilter</a></div><div class="ttdeci">const ShapeFilter &amp; mShapeFilter</div><div class="ttdef"><b>Definition</b> CompoundShapeVisitors.h:348</div></div>
  744. <div class="ttc" id="astruct_compound_shape_1_1_collide_compound_vs_shape_visitor_html_a7b3698ab299d4e1f2881337c09892cd5"><div class="ttname"><a href="struct_compound_shape_1_1_collide_compound_vs_shape_visitor.html#a7b3698ab299d4e1f2881337c09892cd5">CompoundShape::CollideCompoundVsShapeVisitor::mScale1</a></div><div class="ttdeci">Vec3 mScale1</div><div class="ttdef"><b>Definition</b> CompoundShapeVisitors.h:340</div></div>
  745. <div class="ttc" id="astruct_compound_shape_1_1_collide_compound_vs_shape_visitor_html_a7d54b29e53e0fb097be48c090307afa2"><div class="ttname"><a href="struct_compound_shape_1_1_collide_compound_vs_shape_visitor.html#a7d54b29e53e0fb097be48c090307afa2">CompoundShape::CollideCompoundVsShapeVisitor::mSubShapeIDCreator2</a></div><div class="ttdeci">SubShapeIDCreator mSubShapeIDCreator2</div><div class="ttdef"><b>Definition</b> CompoundShapeVisitors.h:346</div></div>
  746. <div class="ttc" id="astruct_compound_shape_1_1_collide_compound_vs_shape_visitor_html_a80a7872b09611c352c0c02cf18a0fa67"><div class="ttname"><a href="struct_compound_shape_1_1_collide_compound_vs_shape_visitor.html#a80a7872b09611c352c0c02cf18a0fa67">CompoundShape::CollideCompoundVsShapeVisitor::mScale2</a></div><div class="ttdeci">Vec3 mScale2</div><div class="ttdef"><b>Definition</b> CompoundShapeVisitors.h:341</div></div>
  747. <div class="ttc" id="astruct_compound_shape_1_1_collide_compound_vs_shape_visitor_html_aadc26efc419ef5f50163fcbb07d7d404"><div class="ttname"><a href="struct_compound_shape_1_1_collide_compound_vs_shape_visitor.html#aadc26efc419ef5f50163fcbb07d7d404">CompoundShape::CollideCompoundVsShapeVisitor::CollideCompoundVsShapeVisitor</a></div><div class="ttdeci">JPH_INLINE CollideCompoundVsShapeVisitor(const CompoundShape *inShape1, const Shape *inShape2, Vec3Arg inScale1, Vec3Arg inScale2, Mat44Arg inCenterOfMassTransform1, Mat44Arg inCenterOfMassTransform2, const SubShapeIDCreator &amp;inSubShapeIDCreator1, const SubShapeIDCreator &amp;inSubShapeIDCreator2, const CollideShapeSettings &amp;inCollideShapeSettings, CollideShapeCollector &amp;ioCollector, const ShapeFilter &amp;inShapeFilter)</div><div class="ttdef"><b>Definition</b> CompoundShapeVisitors.h:287</div></div>
  748. <div class="ttc" id="astruct_compound_shape_1_1_collide_compound_vs_shape_visitor_html_ade932f2552ec9da071d7c588fd4bde34"><div class="ttname"><a href="struct_compound_shape_1_1_collide_compound_vs_shape_visitor.html#ade932f2552ec9da071d7c588fd4bde34">CompoundShape::CollideCompoundVsShapeVisitor::mBoundsOf2InSpaceOf1</a></div><div class="ttdeci">AABox mBoundsOf2InSpaceOf1</div><div class="ttdef"><b>Definition</b> CompoundShapeVisitors.h:344</div></div>
  749. <div class="ttc" id="astruct_compound_shape_1_1_collide_compound_vs_shape_visitor_html_af43a759ff857d5f3ee1246425e146851"><div class="ttname"><a href="struct_compound_shape_1_1_collide_compound_vs_shape_visitor.html#af43a759ff857d5f3ee1246425e146851">CompoundShape::CollideCompoundVsShapeVisitor::TestBounds</a></div><div class="ttdeci">JPH_INLINE UVec4 TestBounds(Vec4Arg inBoundsMinX, Vec4Arg inBoundsMinY, Vec4Arg inBoundsMinZ, Vec4Arg inBoundsMaxX, Vec4Arg inBoundsMaxY, Vec4Arg inBoundsMaxZ) const</div><div class="ttdoc">Tests the bounds of shape 2 vs 4 bounding boxes, returns true for the ones that intersect.</div><div class="ttdef"><b>Definition</b> CompoundShapeVisitors.h:315</div></div>
  750. <div class="ttc" id="astruct_compound_shape_1_1_collide_compound_vs_shape_visitor_html_af4eac4c381d05d1c7cfb1512a2f202f7"><div class="ttname"><a href="struct_compound_shape_1_1_collide_compound_vs_shape_visitor.html#af4eac4c381d05d1c7cfb1512a2f202f7">CompoundShape::CollideCompoundVsShapeVisitor::mShape2</a></div><div class="ttdeci">const Shape * mShape2</div><div class="ttdef"><b>Definition</b> CompoundShapeVisitors.h:339</div></div>
  751. <div class="ttc" id="astruct_compound_shape_1_1_collide_compound_vs_shape_visitor_html_af575d07fd175a53c7c9039c9b91a060a"><div class="ttname"><a href="struct_compound_shape_1_1_collide_compound_vs_shape_visitor.html#af575d07fd175a53c7c9039c9b91a060a">CompoundShape::CollideCompoundVsShapeVisitor::VisitShape</a></div><div class="ttdeci">JPH_INLINE void VisitShape(const SubShape &amp;inSubShape, uint32 inSubShapeIndex)</div><div class="ttdoc">Test the shape against a single subshape.</div><div class="ttdef"><b>Definition</b> CompoundShapeVisitors.h:326</div></div>
  752. <div class="ttc" id="astruct_compound_shape_1_1_collide_compound_vs_shape_visitor_html_afd4c304df5e719a22c21e479fbfffa32"><div class="ttname"><a href="struct_compound_shape_1_1_collide_compound_vs_shape_visitor.html#afd4c304df5e719a22c21e479fbfffa32">CompoundShape::CollideCompoundVsShapeVisitor::mSubShapeIDCreator1</a></div><div class="ttdeci">SubShapeIDCreator mSubShapeIDCreator1</div><div class="ttdef"><b>Definition</b> CompoundShapeVisitors.h:345</div></div>
  753. <div class="ttc" id="astruct_compound_shape_1_1_collide_point_visitor_html"><div class="ttname"><a href="struct_compound_shape_1_1_collide_point_visitor.html">CompoundShape::CollidePointVisitor</a></div><div class="ttdef"><b>Definition</b> CompoundShapeVisitors.h:113</div></div>
  754. <div class="ttc" id="astruct_compound_shape_1_1_collide_point_visitor_html_a462fecb2d7a11225bc4b89015a4c6e9b"><div class="ttname"><a href="struct_compound_shape_1_1_collide_point_visitor.html#a462fecb2d7a11225bc4b89015a4c6e9b">CompoundShape::CollidePointVisitor::TestBounds</a></div><div class="ttdeci">JPH_INLINE UVec4 TestBounds(Vec4Arg inBoundsMinX, Vec4Arg inBoundsMinY, Vec4Arg inBoundsMinZ, Vec4Arg inBoundsMaxX, Vec4Arg inBoundsMaxY, Vec4Arg inBoundsMaxZ) const</div><div class="ttdoc">Test if point overlaps with 4 boxes, returns true for the ones that do.</div><div class="ttdef"><b>Definition</b> CompoundShapeVisitors.h:130</div></div>
  755. <div class="ttc" id="astruct_compound_shape_1_1_collide_point_visitor_html_a47156e21c9dd5a4cc626690185907836"><div class="ttname"><a href="struct_compound_shape_1_1_collide_point_visitor.html#a47156e21c9dd5a4cc626690185907836">CompoundShape::CollidePointVisitor::mPoint</a></div><div class="ttdeci">Vec3 mPoint</div><div class="ttdef"><b>Definition</b> CompoundShapeVisitors.h:146</div></div>
  756. <div class="ttc" id="astruct_compound_shape_1_1_collide_point_visitor_html_a7f36227c8d0f4ad5e2cf940616f41670"><div class="ttname"><a href="struct_compound_shape_1_1_collide_point_visitor.html#a7f36227c8d0f4ad5e2cf940616f41670">CompoundShape::CollidePointVisitor::mSubShapeIDCreator</a></div><div class="ttdeci">SubShapeIDCreator mSubShapeIDCreator</div><div class="ttdef"><b>Definition</b> CompoundShapeVisitors.h:147</div></div>
  757. <div class="ttc" id="astruct_compound_shape_1_1_collide_point_visitor_html_a832d09b2ee2731828915fb29183b5960"><div class="ttname"><a href="struct_compound_shape_1_1_collide_point_visitor.html#a832d09b2ee2731828915fb29183b5960">CompoundShape::CollidePointVisitor::CollidePointVisitor</a></div><div class="ttdeci">JPH_INLINE CollidePointVisitor(Vec3Arg inPoint, const CompoundShape *inShape, const SubShapeIDCreator &amp;inSubShapeIDCreator, CollidePointCollector &amp;ioCollector, const ShapeFilter &amp;inShapeFilter)</div><div class="ttdef"><b>Definition</b> CompoundShapeVisitors.h:114</div></div>
  758. <div class="ttc" id="astruct_compound_shape_1_1_collide_point_visitor_html_aab907c8ad14bf917323ed88160cd861d"><div class="ttname"><a href="struct_compound_shape_1_1_collide_point_visitor.html#aab907c8ad14bf917323ed88160cd861d">CompoundShape::CollidePointVisitor::ShouldAbort</a></div><div class="ttdeci">JPH_INLINE bool ShouldAbort() const</div><div class="ttdoc">Returns true when collision detection should abort because it's not possible to find a better hit.</div><div class="ttdef"><b>Definition</b> CompoundShapeVisitors.h:124</div></div>
  759. <div class="ttc" id="astruct_compound_shape_1_1_collide_point_visitor_html_ac192bb3d8ea53f93de9e6fb523b2949a"><div class="ttname"><a href="struct_compound_shape_1_1_collide_point_visitor.html#ac192bb3d8ea53f93de9e6fb523b2949a">CompoundShape::CollidePointVisitor::mCollector</a></div><div class="ttdeci">CollidePointCollector &amp; mCollector</div><div class="ttdef"><b>Definition</b> CompoundShapeVisitors.h:148</div></div>
  760. <div class="ttc" id="astruct_compound_shape_1_1_collide_point_visitor_html_adb322db658c73032656a070fad686949"><div class="ttname"><a href="struct_compound_shape_1_1_collide_point_visitor.html#adb322db658c73032656a070fad686949">CompoundShape::CollidePointVisitor::mSubShapeBits</a></div><div class="ttdeci">uint mSubShapeBits</div><div class="ttdef"><b>Definition</b> CompoundShapeVisitors.h:149</div></div>
  761. <div class="ttc" id="astruct_compound_shape_1_1_collide_point_visitor_html_aeeb14c482931fed4f18e825ee8bba908"><div class="ttname"><a href="struct_compound_shape_1_1_collide_point_visitor.html#aeeb14c482931fed4f18e825ee8bba908">CompoundShape::CollidePointVisitor::VisitShape</a></div><div class="ttdeci">JPH_INLINE void VisitShape(const SubShape &amp;inSubShape, uint32 inSubShapeIndex)</div><div class="ttdoc">Test the point against a single subshape.</div><div class="ttdef"><b>Definition</b> CompoundShapeVisitors.h:136</div></div>
  762. <div class="ttc" id="astruct_compound_shape_1_1_collide_point_visitor_html_aef8c2ccc7305949bb69db4cfcc56cf85"><div class="ttname"><a href="struct_compound_shape_1_1_collide_point_visitor.html#aef8c2ccc7305949bb69db4cfcc56cf85">CompoundShape::CollidePointVisitor::mShapeFilter</a></div><div class="ttdeci">const ShapeFilter &amp; mShapeFilter</div><div class="ttdef"><b>Definition</b> CompoundShapeVisitors.h:150</div></div>
  763. <div class="ttc" id="astruct_compound_shape_1_1_collide_shape_vs_compound_visitor_html"><div class="ttname"><a href="struct_compound_shape_1_1_collide_shape_vs_compound_visitor.html">CompoundShape::CollideShapeVsCompoundVisitor</a></div><div class="ttdef"><b>Definition</b> CompoundShapeVisitors.h:352</div></div>
  764. <div class="ttc" id="astruct_compound_shape_1_1_collide_shape_vs_compound_visitor_html_a017c33d9b6a4dee82d757dc499999c01"><div class="ttname"><a href="struct_compound_shape_1_1_collide_shape_vs_compound_visitor.html#a017c33d9b6a4dee82d757dc499999c01">CompoundShape::CollideShapeVsCompoundVisitor::ShouldAbort</a></div><div class="ttdeci">JPH_INLINE bool ShouldAbort() const</div><div class="ttdoc">Returns true when collision detection should abort because it's not possible to find a better hit.</div><div class="ttdef"><b>Definition</b> CompoundShapeVisitors.h:375</div></div>
  765. <div class="ttc" id="astruct_compound_shape_1_1_collide_shape_vs_compound_visitor_html_a05854f0c5dc41a5e299b988edb4936d8"><div class="ttname"><a href="struct_compound_shape_1_1_collide_shape_vs_compound_visitor.html#a05854f0c5dc41a5e299b988edb4936d8">CompoundShape::CollideShapeVsCompoundVisitor::mSubShapeBits</a></div><div class="ttdeci">uint mSubShapeBits</div><div class="ttdef"><b>Definition</b> CompoundShapeVisitors.h:413</div></div>
  766. <div class="ttc" id="astruct_compound_shape_1_1_collide_shape_vs_compound_visitor_html_a0692931a0b827d909c886b3b9cd1c94e"><div class="ttname"><a href="struct_compound_shape_1_1_collide_shape_vs_compound_visitor.html#a0692931a0b827d909c886b3b9cd1c94e">CompoundShape::CollideShapeVsCompoundVisitor::mShape1</a></div><div class="ttdeci">const Shape * mShape1</div><div class="ttdef"><b>Definition</b> CompoundShapeVisitors.h:405</div></div>
  767. <div class="ttc" id="astruct_compound_shape_1_1_collide_shape_vs_compound_visitor_html_a1078f83004c82a93a7674180fe0e0667"><div class="ttname"><a href="struct_compound_shape_1_1_collide_shape_vs_compound_visitor.html#a1078f83004c82a93a7674180fe0e0667">CompoundShape::CollideShapeVsCompoundVisitor::mShapeFilter</a></div><div class="ttdeci">const ShapeFilter &amp; mShapeFilter</div><div class="ttdef"><b>Definition</b> CompoundShapeVisitors.h:414</div></div>
  768. <div class="ttc" id="astruct_compound_shape_1_1_collide_shape_vs_compound_visitor_html_a1c496d4fffaa54a2bb1119811ead6906"><div class="ttname"><a href="struct_compound_shape_1_1_collide_shape_vs_compound_visitor.html#a1c496d4fffaa54a2bb1119811ead6906">CompoundShape::CollideShapeVsCompoundVisitor::mSubShapeIDCreator2</a></div><div class="ttdeci">SubShapeIDCreator mSubShapeIDCreator2</div><div class="ttdef"><b>Definition</b> CompoundShapeVisitors.h:412</div></div>
  769. <div class="ttc" id="astruct_compound_shape_1_1_collide_shape_vs_compound_visitor_html_a20a3312bd10ca3d58c70f963a279f76b"><div class="ttname"><a href="struct_compound_shape_1_1_collide_shape_vs_compound_visitor.html#a20a3312bd10ca3d58c70f963a279f76b">CompoundShape::CollideShapeVsCompoundVisitor::mCollideShapeSettings</a></div><div class="ttdeci">const CollideShapeSettings &amp; mCollideShapeSettings</div><div class="ttdef"><b>Definition</b> CompoundShapeVisitors.h:403</div></div>
  770. <div class="ttc" id="astruct_compound_shape_1_1_collide_shape_vs_compound_visitor_html_a3592c0f8c400489c4545be9f65db26c5"><div class="ttname"><a href="struct_compound_shape_1_1_collide_shape_vs_compound_visitor.html#a3592c0f8c400489c4545be9f65db26c5">CompoundShape::CollideShapeVsCompoundVisitor::mCollector</a></div><div class="ttdeci">CollideShapeCollector &amp; mCollector</div><div class="ttdef"><b>Definition</b> CompoundShapeVisitors.h:404</div></div>
  771. <div class="ttc" id="astruct_compound_shape_1_1_collide_shape_vs_compound_visitor_html_a5aaf192557a3ec7462f9615d2982f21e"><div class="ttname"><a href="struct_compound_shape_1_1_collide_shape_vs_compound_visitor.html#a5aaf192557a3ec7462f9615d2982f21e">CompoundShape::CollideShapeVsCompoundVisitor::mTransform1</a></div><div class="ttdeci">Mat44 mTransform1</div><div class="ttdef"><b>Definition</b> CompoundShapeVisitors.h:408</div></div>
  772. <div class="ttc" id="astruct_compound_shape_1_1_collide_shape_vs_compound_visitor_html_a6e2e736800b3999118fe4ba13a500f26"><div class="ttname"><a href="struct_compound_shape_1_1_collide_shape_vs_compound_visitor.html#a6e2e736800b3999118fe4ba13a500f26">CompoundShape::CollideShapeVsCompoundVisitor::mBoundsOf1InSpaceOf2</a></div><div class="ttdeci">AABox mBoundsOf1InSpaceOf2</div><div class="ttdef"><b>Definition</b> CompoundShapeVisitors.h:410</div></div>
  773. <div class="ttc" id="astruct_compound_shape_1_1_collide_shape_vs_compound_visitor_html_a78626c6f58d5682180522b6304e9aa5e"><div class="ttname"><a href="struct_compound_shape_1_1_collide_shape_vs_compound_visitor.html#a78626c6f58d5682180522b6304e9aa5e">CompoundShape::CollideShapeVsCompoundVisitor::mScale1</a></div><div class="ttdeci">Vec3 mScale1</div><div class="ttdef"><b>Definition</b> CompoundShapeVisitors.h:406</div></div>
  774. <div class="ttc" id="astruct_compound_shape_1_1_collide_shape_vs_compound_visitor_html_a7c826e2194c6d76f3022473123346869"><div class="ttname"><a href="struct_compound_shape_1_1_collide_shape_vs_compound_visitor.html#a7c826e2194c6d76f3022473123346869">CompoundShape::CollideShapeVsCompoundVisitor::mScale2</a></div><div class="ttdeci">Vec3 mScale2</div><div class="ttdef"><b>Definition</b> CompoundShapeVisitors.h:407</div></div>
  775. <div class="ttc" id="astruct_compound_shape_1_1_collide_shape_vs_compound_visitor_html_a7ee379618c3c642c3b84b1bdb6be6bb1"><div class="ttname"><a href="struct_compound_shape_1_1_collide_shape_vs_compound_visitor.html#a7ee379618c3c642c3b84b1bdb6be6bb1">CompoundShape::CollideShapeVsCompoundVisitor::TestBounds</a></div><div class="ttdeci">JPH_INLINE UVec4 TestBounds(Vec4Arg inBoundsMinX, Vec4Arg inBoundsMinY, Vec4Arg inBoundsMinZ, Vec4Arg inBoundsMaxX, Vec4Arg inBoundsMaxY, Vec4Arg inBoundsMaxZ) const</div><div class="ttdoc">Tests the bounds of shape 1 vs 4 bounding boxes, returns true for the ones that intersect.</div><div class="ttdef"><b>Definition</b> CompoundShapeVisitors.h:381</div></div>
  776. <div class="ttc" id="astruct_compound_shape_1_1_collide_shape_vs_compound_visitor_html_a9746a70a1987e1a6bf752cd959559335"><div class="ttname"><a href="struct_compound_shape_1_1_collide_shape_vs_compound_visitor.html#a9746a70a1987e1a6bf752cd959559335">CompoundShape::CollideShapeVsCompoundVisitor::mSubShapeIDCreator1</a></div><div class="ttdeci">SubShapeIDCreator mSubShapeIDCreator1</div><div class="ttdef"><b>Definition</b> CompoundShapeVisitors.h:411</div></div>
  777. <div class="ttc" id="astruct_compound_shape_1_1_collide_shape_vs_compound_visitor_html_ac29444555250eaf5cafdf944efadde2f"><div class="ttname"><a href="struct_compound_shape_1_1_collide_shape_vs_compound_visitor.html#ac29444555250eaf5cafdf944efadde2f">CompoundShape::CollideShapeVsCompoundVisitor::VisitShape</a></div><div class="ttdeci">JPH_INLINE void VisitShape(const SubShape &amp;inSubShape, uint32 inSubShapeIndex)</div><div class="ttdoc">Test the shape against a single subshape.</div><div class="ttdef"><b>Definition</b> CompoundShapeVisitors.h:392</div></div>
  778. <div class="ttc" id="astruct_compound_shape_1_1_collide_shape_vs_compound_visitor_html_acecad887d6ab8d8d243679afcb0146eb"><div class="ttname"><a href="struct_compound_shape_1_1_collide_shape_vs_compound_visitor.html#acecad887d6ab8d8d243679afcb0146eb">CompoundShape::CollideShapeVsCompoundVisitor::mTransform2</a></div><div class="ttdeci">Mat44 mTransform2</div><div class="ttdef"><b>Definition</b> CompoundShapeVisitors.h:409</div></div>
  779. <div class="ttc" id="astruct_compound_shape_1_1_collide_shape_vs_compound_visitor_html_af99172bf5598b022f42e3b071d7dd7e9"><div class="ttname"><a href="struct_compound_shape_1_1_collide_shape_vs_compound_visitor.html#af99172bf5598b022f42e3b071d7dd7e9">CompoundShape::CollideShapeVsCompoundVisitor::CollideShapeVsCompoundVisitor</a></div><div class="ttdeci">JPH_INLINE CollideShapeVsCompoundVisitor(const Shape *inShape1, const CompoundShape *inShape2, Vec3Arg inScale1, Vec3Arg inScale2, Mat44Arg inCenterOfMassTransform1, Mat44Arg inCenterOfMassTransform2, const SubShapeIDCreator &amp;inSubShapeIDCreator1, const SubShapeIDCreator &amp;inSubShapeIDCreator2, const CollideShapeSettings &amp;inCollideShapeSettings, CollideShapeCollector &amp;ioCollector, const ShapeFilter &amp;inShapeFilter)</div><div class="ttdef"><b>Definition</b> CompoundShapeVisitors.h:353</div></div>
  780. <div class="ttc" id="astruct_compound_shape_1_1_get_intersecting_sub_shapes_visitor_html"><div class="ttname"><a href="struct_compound_shape_1_1_get_intersecting_sub_shapes_visitor.html">CompoundShape::GetIntersectingSubShapesVisitor</a></div><div class="ttdef"><b>Definition</b> CompoundShapeVisitors.h:419</div></div>
  781. <div class="ttc" id="astruct_compound_shape_1_1_get_intersecting_sub_shapes_visitor_html_a0271b87f4c7610b317b82a77d7d255c6"><div class="ttname"><a href="struct_compound_shape_1_1_get_intersecting_sub_shapes_visitor.html#a0271b87f4c7610b317b82a77d7d255c6">CompoundShape::GetIntersectingSubShapesVisitor::TestBounds</a></div><div class="ttdeci">JPH_INLINE UVec4 TestBounds(Vec4Arg inBoundsMinX, Vec4Arg inBoundsMinY, Vec4Arg inBoundsMinZ, Vec4Arg inBoundsMaxX, Vec4Arg inBoundsMaxY, Vec4Arg inBoundsMaxZ) const</div><div class="ttdoc">Tests the box vs 4 bounding boxes, returns true for the ones that intersect.</div><div class="ttdef"><b>Definition</b> CompoundShapeVisitors.h:434</div></div>
  782. <div class="ttc" id="astruct_compound_shape_1_1_get_intersecting_sub_shapes_visitor_html_a0747547a9895a7dc598391e602ae67e6"><div class="ttname"><a href="struct_compound_shape_1_1_get_intersecting_sub_shapes_visitor.html#a0747547a9895a7dc598391e602ae67e6">CompoundShape::GetIntersectingSubShapesVisitor::ShouldAbort</a></div><div class="ttdeci">JPH_INLINE bool ShouldAbort() const</div><div class="ttdoc">Returns true when collision detection should abort because the buffer is full.</div><div class="ttdef"><b>Definition</b> CompoundShapeVisitors.h:428</div></div>
  783. <div class="ttc" id="astruct_compound_shape_1_1_get_intersecting_sub_shapes_visitor_html_a0f676ecd2951cd9c1abd7d3ebfa24561"><div class="ttname"><a href="struct_compound_shape_1_1_get_intersecting_sub_shapes_visitor.html#a0f676ecd2951cd9c1abd7d3ebfa24561">CompoundShape::GetIntersectingSubShapesVisitor::GetIntersectingSubShapesVisitor</a></div><div class="ttdeci">JPH_INLINE GetIntersectingSubShapesVisitor(const BoxType &amp;inBox, uint *outSubShapeIndices, int inMaxSubShapeIndices)</div><div class="ttdef"><b>Definition</b> CompoundShapeVisitors.h:420</div></div>
  784. <div class="ttc" id="astruct_compound_shape_1_1_get_intersecting_sub_shapes_visitor_html_a611d2a998517551ba3d1ad3355033135"><div class="ttname"><a href="struct_compound_shape_1_1_get_intersecting_sub_shapes_visitor.html#a611d2a998517551ba3d1ad3355033135">CompoundShape::GetIntersectingSubShapesVisitor::VisitShape</a></div><div class="ttdeci">JPH_INLINE void VisitShape(const SubShape &amp;inSubShape, uint32 inSubShapeIndex)</div><div class="ttdoc">Records a hit.</div><div class="ttdef"><b>Definition</b> CompoundShapeVisitors.h:441</div></div>
  785. <div class="ttc" id="astruct_compound_shape_1_1_get_intersecting_sub_shapes_visitor_html_a61d8a2add21106dc7b21b46cab11bc93"><div class="ttname"><a href="struct_compound_shape_1_1_get_intersecting_sub_shapes_visitor.html#a61d8a2add21106dc7b21b46cab11bc93">CompoundShape::GetIntersectingSubShapesVisitor::GetNumResults</a></div><div class="ttdeci">JPH_INLINE int GetNumResults() const</div><div class="ttdoc">Get the number of indices that were found.</div><div class="ttdef"><b>Definition</b> CompoundShapeVisitors.h:449</div></div>
  786. <div class="ttc" id="astruct_compound_shape_1_1_sub_shape_html"><div class="ttname"><a href="struct_compound_shape_1_1_sub_shape.html">CompoundShape::SubShape</a></div><div class="ttdef"><b>Definition</b> CompoundShape.h:142</div></div>
  787. <div class="ttc" id="astruct_compound_shape_1_1_sub_shape_html_a13d700b0e7064e9ecdf99afdc0262eae"><div class="ttname"><a href="struct_compound_shape_1_1_sub_shape.html#a13d700b0e7064e9ecdf99afdc0262eae">CompoundShape::SubShape::GetRotation</a></div><div class="ttdeci">JPH_INLINE Quat GetRotation() const</div><div class="ttdoc">Uncompress the rotation.</div><div class="ttdef"><b>Definition</b> CompoundShape.h:233</div></div>
  788. <div class="ttc" id="astruct_compound_shape_1_1_sub_shape_html_a18ba22cc1d5ad095bce61a7fcfcbcc25"><div class="ttname"><a href="struct_compound_shape_1_1_sub_shape.html#a18ba22cc1d5ad095bce61a7fcfcbcc25">CompoundShape::SubShape::GetLocalTransformNoScale</a></div><div class="ttdeci">JPH_INLINE Mat44 GetLocalTransformNoScale(Vec3Arg inScale) const</div><div class="ttdef"><b>Definition</b> CompoundShape.h:188</div></div>
  789. <div class="ttc" id="astruct_compound_shape_1_1_sub_shape_html_a33448959f96311ef875a912b8a104dcf"><div class="ttname"><a href="struct_compound_shape_1_1_sub_shape.html#a33448959f96311ef875a912b8a104dcf">CompoundShape::SubShape::IsValidScale</a></div><div class="ttdeci">bool IsValidScale(Vec3Arg inScale) const</div><div class="ttdoc">Test if inScale is valid for this sub shape.</div><div class="ttdef"><b>Definition</b> CompoundShape.h:195</div></div>
  790. <div class="ttc" id="astruct_compound_shape_1_1_sub_shape_html_a92de7326e077355d680f2d6ce860d7fc"><div class="ttname"><a href="struct_compound_shape_1_1_sub_shape.html#a92de7326e077355d680f2d6ce860d7fc">CompoundShape::SubShape::TransformScale</a></div><div class="ttdeci">Vec3 TransformScale(Vec3Arg inScale) const</div><div class="ttdoc">Transform the scale to the local space of the child shape.</div><div class="ttdef"><b>Definition</b> CompoundShape.h:205</div></div>
  791. <div class="ttc" id="astruct_compound_shape_1_1_sub_shape_html_ac3fea8705474011f4f5681c18fcdaaa2"><div class="ttname"><a href="struct_compound_shape_1_1_sub_shape.html#ac3fea8705474011f4f5681c18fcdaaa2">CompoundShape::SubShape::GetPositionCOM</a></div><div class="ttdeci">JPH_INLINE Vec3 GetPositionCOM() const</div><div class="ttdoc">Uncompress the center of mass position.</div><div class="ttdef"><b>Definition</b> CompoundShape.h:221</div></div>
  792. <div class="ttc" id="astruct_compound_shape_1_1_sub_shape_html_af0e288762fbe4fcdec676ce1836d5375"><div class="ttname"><a href="struct_compound_shape_1_1_sub_shape.html#af0e288762fbe4fcdec676ce1836d5375">CompoundShape::SubShape::mShape</a></div><div class="ttdeci">RefConst&lt; Shape &gt; mShape</div><div class="ttdef"><b>Definition</b> CompoundShape.h:238</div></div>
  793. <div class="ttc" id="astruct_ray_cast_html"><div class="ttname"><a href="struct_ray_cast.html">RayCast</a></div><div class="ttdef"><b>Definition</b> RayCast.h:47</div></div>
  794. <div class="ttc" id="astruct_ray_cast_t_html_a7eb5c3b516f95411ede61d7fd282bbd9"><div class="ttname"><a href="struct_ray_cast_t.html#a7eb5c3b516f95411ede61d7fd282bbd9">RayCastT::mDirection</a></div><div class="ttdeci">Vec3 mDirection</div><div class="ttdoc">Direction and length of the ray (anything beyond this length will not be reported as a hit)</div><div class="ttdef"><b>Definition</b> RayCast.h:43</div></div>
  795. <div class="ttc" id="astruct_ray_cast_t_html_a89d5ea77b4b5f8c92e1ec515ea70d14b"><div class="ttname"><a href="struct_ray_cast_t.html#a89d5ea77b4b5f8c92e1ec515ea70d14b">RayCastT::Transformed</a></div><div class="ttdeci">RayCastType Transformed(typename Mat::ArgType inTransform) const</div><div class="ttdoc">Transform this ray using inTransform.</div><div class="ttdef"><b>Definition</b> RayCast.h:23</div></div>
  796. <div class="ttc" id="astruct_ray_cast_t_html_ae66dc4b0c20b242f17bcf70cb5507e51"><div class="ttname"><a href="struct_ray_cast_t.html#ae66dc4b0c20b242f17bcf70cb5507e51">RayCastT::mOrigin</a></div><div class="ttdeci">Vec mOrigin</div><div class="ttdoc">Origin of the ray.</div><div class="ttdef"><b>Definition</b> RayCast.h:42</div></div>
  797. <div class="ttc" id="astruct_shape_cast_html"><div class="ttname"><a href="struct_shape_cast.html">ShapeCast</a></div><div class="ttdef"><b>Definition</b> ShapeCast.h:69</div></div>
  798. <div class="ttc" id="astruct_shape_cast_t_html_a4b45c3421b2f87e1553bb3325ca64752"><div class="ttname"><a href="struct_shape_cast_t.html#a4b45c3421b2f87e1553bb3325ca64752">ShapeCastT::mDirection</a></div><div class="ttdeci">const Vec3 mDirection</div><div class="ttdoc">Direction and length of the cast (anything beyond this length will not be reported as a hit)</div><div class="ttdef"><b>Definition</b> ShapeCast.h:64</div></div>
  799. <div class="ttc" id="astruct_shape_cast_t_html_ab07dbf4278d79895fb480781d24db2f3"><div class="ttname"><a href="struct_shape_cast_t.html#ab07dbf4278d79895fb480781d24db2f3">ShapeCastT::PostTransformed</a></div><div class="ttdeci">ShapeCastType PostTransformed(typename Mat::ArgType inTransform) const</div><div class="ttdoc">Transform this shape cast using inTransform. Multiply transform on the left left hand side.</div><div class="ttdef"><b>Definition</b> ShapeCast.h:42</div></div>
  800. </div><!-- fragment --></div><!-- contents -->
  801. </div><!-- doc-content -->
  802. <!-- start footer part -->
  803. <div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  804. <ul>
  805. <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_1a1d05ab9ff27ca8d1ed94cd62670cdf.html">Collision</a></li><li class="navelem"><a class="el" href="dir_4df7c3fdd39bf16e2d4956412667f123.html">Shape</a></li><li class="navelem"><a class="el" href="_compound_shape_visitors_8h.html">CompoundShapeVisitors.h</a></li>
  806. <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>
  807. </ul>
  808. </div>
  809. </body>
  810. </html>