struct_shape_cast_t.html 28 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494
  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: ShapeCastT&lt; Vec, Mat, ShapeCastType &gt; Struct Template Reference</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('struct_shape_cast_t.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="summary">
  107. <a href="#pub-methods">Public Member Functions</a> &#124;
  108. <a href="#pub-static-methods">Static Public Member Functions</a> &#124;
  109. <a href="#pub-attribs">Public Attributes</a> &#124;
  110. <a href="struct_shape_cast_t-members.html">List of all members</a> </div>
  111. <div class="headertitle"><div class="title">ShapeCastT&lt; Vec, Mat, ShapeCastType &gt; Struct Template Reference</div></div>
  112. </div><!--header-->
  113. <div class="contents">
  114. <p>Structure that holds a single shape cast (a shape moving along a linear path in 3d space with no rotation)
  115. <a href="#details">More...</a></p>
  116. <p><code>#include &lt;<a class="el" href="_shape_cast_8h_source.html">ShapeCast.h</a>&gt;</code></p>
  117. <table class="memberdecls">
  118. <tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-methods" name="pub-methods"></a>
  119. Public Member Functions</h2></td></tr>
  120. <tr class="memitem:a2b2b79fda0cdbef648d9ee22d348334f" id="r_a2b2b79fda0cdbef648d9ee22d348334f"><td class="memItemLeft" align="right" valign="top"><a class="el" href="_memory_8h.html#a91074fb218fe28954a0938c099ddd9e0">JPH_OVERRIDE_NEW_DELETE</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a2b2b79fda0cdbef648d9ee22d348334f">ShapeCastT</a> (const <a class="el" href="class_shape.html">Shape</a> *inShape, <a class="el" href="_math_types_8h.html#a6bc57c31f15cea47640b580d03737c68">Vec3Arg</a> inScale, typename Mat::ArgType inCenterOfMassStart, <a class="el" href="_math_types_8h.html#a6bc57c31f15cea47640b580d03737c68">Vec3Arg</a> inDirection, const <a class="el" href="class_a_a_box.html">AABox</a> &amp;inWorldSpaceBounds)</td></tr>
  121. <tr class="memdesc:a2b2b79fda0cdbef648d9ee22d348334f"><td class="mdescLeft">&#160;</td><td class="mdescRight">Constructor. <br /></td></tr>
  122. <tr class="separator:a2b2b79fda0cdbef648d9ee22d348334f"><td class="memSeparator" colspan="2">&#160;</td></tr>
  123. <tr class="memitem:a72512e9621d9b3ecf84e215bef9ee535" id="r_a72512e9621d9b3ecf84e215bef9ee535"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a72512e9621d9b3ecf84e215bef9ee535">ShapeCastT</a> (const <a class="el" href="class_shape.html">Shape</a> *inShape, <a class="el" href="_math_types_8h.html#a6bc57c31f15cea47640b580d03737c68">Vec3Arg</a> inScale, typename Mat::ArgType inCenterOfMassStart, <a class="el" href="_math_types_8h.html#a6bc57c31f15cea47640b580d03737c68">Vec3Arg</a> inDirection)</td></tr>
  124. <tr class="memdesc:a72512e9621d9b3ecf84e215bef9ee535"><td class="mdescLeft">&#160;</td><td class="mdescRight">Constructor. <br /></td></tr>
  125. <tr class="separator:a72512e9621d9b3ecf84e215bef9ee535"><td class="memSeparator" colspan="2">&#160;</td></tr>
  126. <tr class="memitem:ab07dbf4278d79895fb480781d24db2f3" id="r_ab07dbf4278d79895fb480781d24db2f3"><td class="memItemLeft" align="right" valign="top">ShapeCastType&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#ab07dbf4278d79895fb480781d24db2f3">PostTransformed</a> (typename Mat::ArgType inTransform) const</td></tr>
  127. <tr class="memdesc:ab07dbf4278d79895fb480781d24db2f3"><td class="mdescLeft">&#160;</td><td class="mdescRight">Transform this shape cast using inTransform. Multiply transform on the left left hand side. <br /></td></tr>
  128. <tr class="separator:ab07dbf4278d79895fb480781d24db2f3"><td class="memSeparator" colspan="2">&#160;</td></tr>
  129. <tr class="memitem:a053b353deba2ee41bf6c42d3be33f18e" id="r_a053b353deba2ee41bf6c42d3be33f18e"><td class="memItemLeft" align="right" valign="top">ShapeCastType&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a053b353deba2ee41bf6c42d3be33f18e">PostTranslated</a> (typename Vec::ArgType inTranslation) const</td></tr>
  130. <tr class="memdesc:a053b353deba2ee41bf6c42d3be33f18e"><td class="mdescLeft">&#160;</td><td class="mdescRight">Translate this shape cast by inTranslation. <br /></td></tr>
  131. <tr class="separator:a053b353deba2ee41bf6c42d3be33f18e"><td class="memSeparator" colspan="2">&#160;</td></tr>
  132. <tr class="memitem:a90dcaf5d1e22122cf08862b9da811c96" id="r_a90dcaf5d1e22122cf08862b9da811c96"><td class="memItemLeft" align="right" valign="top">Vec&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a90dcaf5d1e22122cf08862b9da811c96">GetPointOnRay</a> (float inFraction) const</td></tr>
  133. <tr class="memdesc:a90dcaf5d1e22122cf08862b9da811c96"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get point with fraction inFraction on ray from mCenterOfMassStart to mCenterOfMassStart + mDirection (0 = start of ray, 1 = end of ray) <br /></td></tr>
  134. <tr class="separator:a90dcaf5d1e22122cf08862b9da811c96"><td class="memSeparator" colspan="2">&#160;</td></tr>
  135. </table><table class="memberdecls">
  136. <tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-static-methods" name="pub-static-methods"></a>
  137. Static Public Member Functions</h2></td></tr>
  138. <tr class="memitem:a0195f56ecbe283d8e393f1564d864823" id="r_a0195f56ecbe283d8e393f1564d864823"><td class="memItemLeft" align="right" valign="top">static ShapeCastType&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a0195f56ecbe283d8e393f1564d864823">sFromWorldTransform</a> (const <a class="el" href="class_shape.html">Shape</a> *inShape, <a class="el" href="_math_types_8h.html#a6bc57c31f15cea47640b580d03737c68">Vec3Arg</a> inScale, typename Mat::ArgType inWorldTransform, <a class="el" href="_math_types_8h.html#a6bc57c31f15cea47640b580d03737c68">Vec3Arg</a> inDirection)</td></tr>
  139. <tr class="memdesc:a0195f56ecbe283d8e393f1564d864823"><td class="mdescLeft">&#160;</td><td class="mdescRight">Construct a shape cast using a world transform for a shape instead of a center of mass transform. <br /></td></tr>
  140. <tr class="separator:a0195f56ecbe283d8e393f1564d864823"><td class="memSeparator" colspan="2">&#160;</td></tr>
  141. </table><table class="memberdecls">
  142. <tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-attribs" name="pub-attribs"></a>
  143. Public Attributes</h2></td></tr>
  144. <tr class="memitem:a68df269e004434dd4c2dec18e29b1f8d" id="r_a68df269e004434dd4c2dec18e29b1f8d"><td class="memItemLeft" align="right" valign="top">const <a class="el" href="class_shape.html">Shape</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a68df269e004434dd4c2dec18e29b1f8d">mShape</a></td></tr>
  145. <tr class="memdesc:a68df269e004434dd4c2dec18e29b1f8d"><td class="mdescLeft">&#160;</td><td class="mdescRight"><a class="el" href="class_shape.html" title="Base class for all shapes (collision volume of a body). Defines a virtual interface for collision det...">Shape</a> that's being cast (cannot be mesh shape). Note that this structure does not assume ownership over the shape for performance reasons. <br /></td></tr>
  146. <tr class="separator:a68df269e004434dd4c2dec18e29b1f8d"><td class="memSeparator" colspan="2">&#160;</td></tr>
  147. <tr class="memitem:aed62d5fadde28ac5dea4f8a44d3dddf2" id="r_aed62d5fadde28ac5dea4f8a44d3dddf2"><td class="memItemLeft" align="right" valign="top">const <a class="el" href="class_vec3.html">Vec3</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#aed62d5fadde28ac5dea4f8a44d3dddf2">mScale</a></td></tr>
  148. <tr class="memdesc:aed62d5fadde28ac5dea4f8a44d3dddf2"><td class="mdescLeft">&#160;</td><td class="mdescRight">Scale in local space of the shape being cast (scales relative to its center of mass) <br /></td></tr>
  149. <tr class="separator:aed62d5fadde28ac5dea4f8a44d3dddf2"><td class="memSeparator" colspan="2">&#160;</td></tr>
  150. <tr class="memitem:accfdbb9a3a66304f8cec4c918f83ce87" id="r_accfdbb9a3a66304f8cec4c918f83ce87"><td class="memItemLeft" align="right" valign="top">const Mat&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#accfdbb9a3a66304f8cec4c918f83ce87">mCenterOfMassStart</a></td></tr>
  151. <tr class="memdesc:accfdbb9a3a66304f8cec4c918f83ce87"><td class="mdescLeft">&#160;</td><td class="mdescRight">Start position and orientation of the center of mass of the shape (construct using sFromWorldTransform if you have a world transform for your shape) <br /></td></tr>
  152. <tr class="separator:accfdbb9a3a66304f8cec4c918f83ce87"><td class="memSeparator" colspan="2">&#160;</td></tr>
  153. <tr class="memitem:a4b45c3421b2f87e1553bb3325ca64752" id="r_a4b45c3421b2f87e1553bb3325ca64752"><td class="memItemLeft" align="right" valign="top">const <a class="el" href="class_vec3.html">Vec3</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a4b45c3421b2f87e1553bb3325ca64752">mDirection</a></td></tr>
  154. <tr class="memdesc:a4b45c3421b2f87e1553bb3325ca64752"><td class="mdescLeft">&#160;</td><td class="mdescRight">Direction and length of the cast (anything beyond this length will not be reported as a hit) <br /></td></tr>
  155. <tr class="separator:a4b45c3421b2f87e1553bb3325ca64752"><td class="memSeparator" colspan="2">&#160;</td></tr>
  156. <tr class="memitem:aef82ae03a83e2026e3af3d2f18d9710c" id="r_aef82ae03a83e2026e3af3d2f18d9710c"><td class="memItemLeft" align="right" valign="top">const <a class="el" href="class_a_a_box.html">AABox</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#aef82ae03a83e2026e3af3d2f18d9710c">mShapeWorldBounds</a></td></tr>
  157. <tr class="memdesc:aef82ae03a83e2026e3af3d2f18d9710c"><td class="mdescLeft">&#160;</td><td class="mdescRight">Cached shape's world bounds, calculated in constructor. <br /></td></tr>
  158. <tr class="separator:aef82ae03a83e2026e3af3d2f18d9710c"><td class="memSeparator" colspan="2">&#160;</td></tr>
  159. </table>
  160. <a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
  161. <div class="textblock"><div class="compoundTemplParams">template&lt;class Vec, class Mat, class ShapeCastType&gt;<br />
  162. struct ShapeCastT&lt; Vec, Mat, ShapeCastType &gt;</div><p>Structure that holds a single shape cast (a shape moving along a linear path in 3d space with no rotation) </p>
  163. </div><h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
  164. <a id="a2b2b79fda0cdbef648d9ee22d348334f" name="a2b2b79fda0cdbef648d9ee22d348334f"></a>
  165. <h2 class="memtitle"><span class="permalink"><a href="#a2b2b79fda0cdbef648d9ee22d348334f">&#9670;&#160;</a></span>ShapeCastT() <span class="overload">[1/2]</span></h2>
  166. <div class="memitem">
  167. <div class="memproto">
  168. <div class="memtemplate">
  169. template&lt;class Vec , class Mat , class ShapeCastType &gt; </div>
  170. <table class="mlabels">
  171. <tr>
  172. <td class="mlabels-left">
  173. <table class="memname">
  174. <tr>
  175. <td class="memname"><a class="el" href="_memory_8h.html#a91074fb218fe28954a0938c099ddd9e0">JPH_OVERRIDE_NEW_DELETE</a> <a class="el" href="struct_shape_cast_t.html">ShapeCastT</a>&lt; Vec, Mat, ShapeCastType &gt;<a class="el" href="struct_shape_cast_t.html">::ShapeCastT</a> </td>
  176. <td>(</td>
  177. <td class="paramtype">const <a class="el" href="class_shape.html">Shape</a> *</td> <td class="paramname"><span class="paramname"><em>inShape</em></span>, </td>
  178. </tr>
  179. <tr>
  180. <td class="paramkey"></td>
  181. <td></td>
  182. <td class="paramtype"><a class="el" href="_math_types_8h.html#a6bc57c31f15cea47640b580d03737c68">Vec3Arg</a></td> <td class="paramname"><span class="paramname"><em>inScale</em></span>, </td>
  183. </tr>
  184. <tr>
  185. <td class="paramkey"></td>
  186. <td></td>
  187. <td class="paramtype">typename Mat::ArgType</td> <td class="paramname"><span class="paramname"><em>inCenterOfMassStart</em></span>, </td>
  188. </tr>
  189. <tr>
  190. <td class="paramkey"></td>
  191. <td></td>
  192. <td class="paramtype"><a class="el" href="_math_types_8h.html#a6bc57c31f15cea47640b580d03737c68">Vec3Arg</a></td> <td class="paramname"><span class="paramname"><em>inDirection</em></span>, </td>
  193. </tr>
  194. <tr>
  195. <td class="paramkey"></td>
  196. <td></td>
  197. <td class="paramtype">const <a class="el" href="class_a_a_box.html">AABox</a> &amp;</td> <td class="paramname"><span class="paramname"><em>inWorldSpaceBounds</em></span>&#160;)</td>
  198. </tr>
  199. </table>
  200. </td>
  201. <td class="mlabels-right">
  202. <span class="mlabels"><span class="mlabel">inline</span></span> </td>
  203. </tr>
  204. </table>
  205. </div><div class="memdoc">
  206. <p>Constructor. </p>
  207. </div>
  208. </div>
  209. <a id="a72512e9621d9b3ecf84e215bef9ee535" name="a72512e9621d9b3ecf84e215bef9ee535"></a>
  210. <h2 class="memtitle"><span class="permalink"><a href="#a72512e9621d9b3ecf84e215bef9ee535">&#9670;&#160;</a></span>ShapeCastT() <span class="overload">[2/2]</span></h2>
  211. <div class="memitem">
  212. <div class="memproto">
  213. <div class="memtemplate">
  214. template&lt;class Vec , class Mat , class ShapeCastType &gt; </div>
  215. <table class="mlabels">
  216. <tr>
  217. <td class="mlabels-left">
  218. <table class="memname">
  219. <tr>
  220. <td class="memname"><a class="el" href="struct_shape_cast_t.html">ShapeCastT</a>&lt; Vec, Mat, ShapeCastType &gt;<a class="el" href="struct_shape_cast_t.html">::ShapeCastT</a> </td>
  221. <td>(</td>
  222. <td class="paramtype">const <a class="el" href="class_shape.html">Shape</a> *</td> <td class="paramname"><span class="paramname"><em>inShape</em></span>, </td>
  223. </tr>
  224. <tr>
  225. <td class="paramkey"></td>
  226. <td></td>
  227. <td class="paramtype"><a class="el" href="_math_types_8h.html#a6bc57c31f15cea47640b580d03737c68">Vec3Arg</a></td> <td class="paramname"><span class="paramname"><em>inScale</em></span>, </td>
  228. </tr>
  229. <tr>
  230. <td class="paramkey"></td>
  231. <td></td>
  232. <td class="paramtype">typename Mat::ArgType</td> <td class="paramname"><span class="paramname"><em>inCenterOfMassStart</em></span>, </td>
  233. </tr>
  234. <tr>
  235. <td class="paramkey"></td>
  236. <td></td>
  237. <td class="paramtype"><a class="el" href="_math_types_8h.html#a6bc57c31f15cea47640b580d03737c68">Vec3Arg</a></td> <td class="paramname"><span class="paramname"><em>inDirection</em></span>&#160;)</td>
  238. </tr>
  239. </table>
  240. </td>
  241. <td class="mlabels-right">
  242. <span class="mlabels"><span class="mlabel">inline</span></span> </td>
  243. </tr>
  244. </table>
  245. </div><div class="memdoc">
  246. <p>Constructor. </p>
  247. </div>
  248. </div>
  249. <h2 class="groupheader">Member Function Documentation</h2>
  250. <a id="a90dcaf5d1e22122cf08862b9da811c96" name="a90dcaf5d1e22122cf08862b9da811c96"></a>
  251. <h2 class="memtitle"><span class="permalink"><a href="#a90dcaf5d1e22122cf08862b9da811c96">&#9670;&#160;</a></span>GetPointOnRay()</h2>
  252. <div class="memitem">
  253. <div class="memproto">
  254. <div class="memtemplate">
  255. template&lt;class Vec , class Mat , class ShapeCastType &gt; </div>
  256. <table class="mlabels">
  257. <tr>
  258. <td class="mlabels-left">
  259. <table class="memname">
  260. <tr>
  261. <td class="memname">Vec <a class="el" href="struct_shape_cast_t.html">ShapeCastT</a>&lt; Vec, Mat, ShapeCastType &gt;::GetPointOnRay </td>
  262. <td>(</td>
  263. <td class="paramtype">float</td> <td class="paramname"><span class="paramname"><em>inFraction</em></span></td><td>)</td>
  264. <td> const</td>
  265. </tr>
  266. </table>
  267. </td>
  268. <td class="mlabels-right">
  269. <span class="mlabels"><span class="mlabel">inline</span></span> </td>
  270. </tr>
  271. </table>
  272. </div><div class="memdoc">
  273. <p>Get point with fraction inFraction on ray from mCenterOfMassStart to mCenterOfMassStart + mDirection (0 = start of ray, 1 = end of ray) </p>
  274. </div>
  275. </div>
  276. <a id="ab07dbf4278d79895fb480781d24db2f3" name="ab07dbf4278d79895fb480781d24db2f3"></a>
  277. <h2 class="memtitle"><span class="permalink"><a href="#ab07dbf4278d79895fb480781d24db2f3">&#9670;&#160;</a></span>PostTransformed()</h2>
  278. <div class="memitem">
  279. <div class="memproto">
  280. <div class="memtemplate">
  281. template&lt;class Vec , class Mat , class ShapeCastType &gt; </div>
  282. <table class="mlabels">
  283. <tr>
  284. <td class="mlabels-left">
  285. <table class="memname">
  286. <tr>
  287. <td class="memname">ShapeCastType <a class="el" href="struct_shape_cast_t.html">ShapeCastT</a>&lt; Vec, Mat, ShapeCastType &gt;::PostTransformed </td>
  288. <td>(</td>
  289. <td class="paramtype">typename Mat::ArgType</td> <td class="paramname"><span class="paramname"><em>inTransform</em></span></td><td>)</td>
  290. <td> const</td>
  291. </tr>
  292. </table>
  293. </td>
  294. <td class="mlabels-right">
  295. <span class="mlabels"><span class="mlabel">inline</span></span> </td>
  296. </tr>
  297. </table>
  298. </div><div class="memdoc">
  299. <p>Transform this shape cast using inTransform. Multiply transform on the left left hand side. </p>
  300. </div>
  301. </div>
  302. <a id="a053b353deba2ee41bf6c42d3be33f18e" name="a053b353deba2ee41bf6c42d3be33f18e"></a>
  303. <h2 class="memtitle"><span class="permalink"><a href="#a053b353deba2ee41bf6c42d3be33f18e">&#9670;&#160;</a></span>PostTranslated()</h2>
  304. <div class="memitem">
  305. <div class="memproto">
  306. <div class="memtemplate">
  307. template&lt;class Vec , class Mat , class ShapeCastType &gt; </div>
  308. <table class="mlabels">
  309. <tr>
  310. <td class="mlabels-left">
  311. <table class="memname">
  312. <tr>
  313. <td class="memname">ShapeCastType <a class="el" href="struct_shape_cast_t.html">ShapeCastT</a>&lt; Vec, Mat, ShapeCastType &gt;::PostTranslated </td>
  314. <td>(</td>
  315. <td class="paramtype">typename Vec::ArgType</td> <td class="paramname"><span class="paramname"><em>inTranslation</em></span></td><td>)</td>
  316. <td> const</td>
  317. </tr>
  318. </table>
  319. </td>
  320. <td class="mlabels-right">
  321. <span class="mlabels"><span class="mlabel">inline</span></span> </td>
  322. </tr>
  323. </table>
  324. </div><div class="memdoc">
  325. <p>Translate this shape cast by inTranslation. </p>
  326. </div>
  327. </div>
  328. <a id="a0195f56ecbe283d8e393f1564d864823" name="a0195f56ecbe283d8e393f1564d864823"></a>
  329. <h2 class="memtitle"><span class="permalink"><a href="#a0195f56ecbe283d8e393f1564d864823">&#9670;&#160;</a></span>sFromWorldTransform()</h2>
  330. <div class="memitem">
  331. <div class="memproto">
  332. <div class="memtemplate">
  333. template&lt;class Vec , class Mat , class ShapeCastType &gt; </div>
  334. <table class="mlabels">
  335. <tr>
  336. <td class="mlabels-left">
  337. <table class="memname">
  338. <tr>
  339. <td class="memname">static ShapeCastType <a class="el" href="struct_shape_cast_t.html">ShapeCastT</a>&lt; Vec, Mat, ShapeCastType &gt;::sFromWorldTransform </td>
  340. <td>(</td>
  341. <td class="paramtype">const <a class="el" href="class_shape.html">Shape</a> *</td> <td class="paramname"><span class="paramname"><em>inShape</em></span>, </td>
  342. </tr>
  343. <tr>
  344. <td class="paramkey"></td>
  345. <td></td>
  346. <td class="paramtype"><a class="el" href="_math_types_8h.html#a6bc57c31f15cea47640b580d03737c68">Vec3Arg</a></td> <td class="paramname"><span class="paramname"><em>inScale</em></span>, </td>
  347. </tr>
  348. <tr>
  349. <td class="paramkey"></td>
  350. <td></td>
  351. <td class="paramtype">typename Mat::ArgType</td> <td class="paramname"><span class="paramname"><em>inWorldTransform</em></span>, </td>
  352. </tr>
  353. <tr>
  354. <td class="paramkey"></td>
  355. <td></td>
  356. <td class="paramtype"><a class="el" href="_math_types_8h.html#a6bc57c31f15cea47640b580d03737c68">Vec3Arg</a></td> <td class="paramname"><span class="paramname"><em>inDirection</em></span>&#160;)</td>
  357. </tr>
  358. </table>
  359. </td>
  360. <td class="mlabels-right">
  361. <span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span> </td>
  362. </tr>
  363. </table>
  364. </div><div class="memdoc">
  365. <p>Construct a shape cast using a world transform for a shape instead of a center of mass transform. </p>
  366. </div>
  367. </div>
  368. <h2 class="groupheader">Member Data Documentation</h2>
  369. <a id="accfdbb9a3a66304f8cec4c918f83ce87" name="accfdbb9a3a66304f8cec4c918f83ce87"></a>
  370. <h2 class="memtitle"><span class="permalink"><a href="#accfdbb9a3a66304f8cec4c918f83ce87">&#9670;&#160;</a></span>mCenterOfMassStart</h2>
  371. <div class="memitem">
  372. <div class="memproto">
  373. <div class="memtemplate">
  374. template&lt;class Vec , class Mat , class ShapeCastType &gt; </div>
  375. <table class="memname">
  376. <tr>
  377. <td class="memname">const Mat <a class="el" href="struct_shape_cast_t.html">ShapeCastT</a>&lt; Vec, Mat, ShapeCastType &gt;::mCenterOfMassStart</td>
  378. </tr>
  379. </table>
  380. </div><div class="memdoc">
  381. <p>Start position and orientation of the center of mass of the shape (construct using sFromWorldTransform if you have a world transform for your shape) </p>
  382. </div>
  383. </div>
  384. <a id="a4b45c3421b2f87e1553bb3325ca64752" name="a4b45c3421b2f87e1553bb3325ca64752"></a>
  385. <h2 class="memtitle"><span class="permalink"><a href="#a4b45c3421b2f87e1553bb3325ca64752">&#9670;&#160;</a></span>mDirection</h2>
  386. <div class="memitem">
  387. <div class="memproto">
  388. <div class="memtemplate">
  389. template&lt;class Vec , class Mat , class ShapeCastType &gt; </div>
  390. <table class="memname">
  391. <tr>
  392. <td class="memname">const <a class="el" href="class_vec3.html">Vec3</a> <a class="el" href="struct_shape_cast_t.html">ShapeCastT</a>&lt; Vec, Mat, ShapeCastType &gt;::mDirection</td>
  393. </tr>
  394. </table>
  395. </div><div class="memdoc">
  396. <p>Direction and length of the cast (anything beyond this length will not be reported as a hit) </p>
  397. </div>
  398. </div>
  399. <a id="aed62d5fadde28ac5dea4f8a44d3dddf2" name="aed62d5fadde28ac5dea4f8a44d3dddf2"></a>
  400. <h2 class="memtitle"><span class="permalink"><a href="#aed62d5fadde28ac5dea4f8a44d3dddf2">&#9670;&#160;</a></span>mScale</h2>
  401. <div class="memitem">
  402. <div class="memproto">
  403. <div class="memtemplate">
  404. template&lt;class Vec , class Mat , class ShapeCastType &gt; </div>
  405. <table class="memname">
  406. <tr>
  407. <td class="memname">const <a class="el" href="class_vec3.html">Vec3</a> <a class="el" href="struct_shape_cast_t.html">ShapeCastT</a>&lt; Vec, Mat, ShapeCastType &gt;::mScale</td>
  408. </tr>
  409. </table>
  410. </div><div class="memdoc">
  411. <p>Scale in local space of the shape being cast (scales relative to its center of mass) </p>
  412. </div>
  413. </div>
  414. <a id="a68df269e004434dd4c2dec18e29b1f8d" name="a68df269e004434dd4c2dec18e29b1f8d"></a>
  415. <h2 class="memtitle"><span class="permalink"><a href="#a68df269e004434dd4c2dec18e29b1f8d">&#9670;&#160;</a></span>mShape</h2>
  416. <div class="memitem">
  417. <div class="memproto">
  418. <div class="memtemplate">
  419. template&lt;class Vec , class Mat , class ShapeCastType &gt; </div>
  420. <table class="memname">
  421. <tr>
  422. <td class="memname">const <a class="el" href="class_shape.html">Shape</a>* <a class="el" href="struct_shape_cast_t.html">ShapeCastT</a>&lt; Vec, Mat, ShapeCastType &gt;::mShape</td>
  423. </tr>
  424. </table>
  425. </div><div class="memdoc">
  426. <p><a class="el" href="class_shape.html" title="Base class for all shapes (collision volume of a body). Defines a virtual interface for collision det...">Shape</a> that's being cast (cannot be mesh shape). Note that this structure does not assume ownership over the shape for performance reasons. </p>
  427. </div>
  428. </div>
  429. <a id="aef82ae03a83e2026e3af3d2f18d9710c" name="aef82ae03a83e2026e3af3d2f18d9710c"></a>
  430. <h2 class="memtitle"><span class="permalink"><a href="#aef82ae03a83e2026e3af3d2f18d9710c">&#9670;&#160;</a></span>mShapeWorldBounds</h2>
  431. <div class="memitem">
  432. <div class="memproto">
  433. <div class="memtemplate">
  434. template&lt;class Vec , class Mat , class ShapeCastType &gt; </div>
  435. <table class="memname">
  436. <tr>
  437. <td class="memname">const <a class="el" href="class_a_a_box.html">AABox</a> <a class="el" href="struct_shape_cast_t.html">ShapeCastT</a>&lt; Vec, Mat, ShapeCastType &gt;::mShapeWorldBounds</td>
  438. </tr>
  439. </table>
  440. </div><div class="memdoc">
  441. <p>Cached shape's world bounds, calculated in constructor. </p>
  442. </div>
  443. </div>
  444. <hr/>The documentation for this struct was generated from the following file:<ul>
  445. <li>Jolt/Physics/Collision/<a class="el" href="_shape_cast_8h_source.html">ShapeCast.h</a></li>
  446. </ul>
  447. </div><!-- contents -->
  448. </div><!-- doc-content -->
  449. <!-- start footer part -->
  450. <div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  451. <ul>
  452. <li class="navelem"><a class="el" href="struct_shape_cast_t.html">ShapeCastT</a></li>
  453. <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>
  454. </ul>
  455. </div>
  456. </body>
  457. </html>