| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494 |
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
- <html xmlns="http://www.w3.org/1999/xhtml" lang="en-US">
- <head>
- <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
- <meta http-equiv="X-UA-Compatible" content="IE=11"/>
- <meta name="generator" content="Doxygen 1.12.0"/>
- <meta name="viewport" content="width=device-width, initial-scale=1"/>
- <title>Jolt Physics: ShapeCastT< Vec, Mat, ShapeCastType > Struct Template Reference</title>
- <link href="tabs.css" rel="stylesheet" type="text/css"/>
- <script type="text/javascript" src="jquery.js"></script>
- <script type="text/javascript" src="dynsections.js"></script>
- <script type="text/javascript" src="clipboard.js"></script>
- <link href="navtree.css" rel="stylesheet" type="text/css"/>
- <script type="text/javascript" src="navtreedata.js"></script>
- <script type="text/javascript" src="navtree.js"></script>
- <script type="text/javascript" src="resize.js"></script>
- <script type="text/javascript" src="cookie.js"></script>
- <link href="search/search.css" rel="stylesheet" type="text/css"/>
- <script type="text/javascript" src="search/searchdata.js"></script>
- <script type="text/javascript" src="search/search.js"></script>
- <script type="text/x-mathjax-config">
- MathJax.Hub.Config({
- extensions: ["tex2jax.js"],
- jax: ["input/TeX","output/HTML-CSS"],
- });
- </script>
- <script type="text/javascript" async="async" src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/MathJax.js"></script>
- <link href="doxygen.css" rel="stylesheet" type="text/css" />
- </head>
- <body>
- <div id="top"><!-- do not remove this div, it is closed by doxygen! -->
- <div id="titlearea">
- <table cellspacing="0" cellpadding="0">
- <tbody>
- <tr id="projectrow">
- <td id="projectlogo"><img alt="Logo" src="LogoSmall.png"/></td>
- <td id="projectalign">
- <div id="projectname">Jolt Physics
- </div>
- <div id="projectbrief">A multi core friendly Game Physics Engine</div>
- </td>
- </tr>
- </tbody>
- </table>
- </div>
- <!-- end header part -->
- <!-- Generated by Doxygen 1.12.0 -->
- <script type="text/javascript">
- /* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
- var searchBox = new SearchBox("searchBox", "search/",'.html');
- /* @license-end */
- </script>
- <script type="text/javascript">
- /* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
- $(function() { codefold.init(0); });
- /* @license-end */
- </script>
- <script type="text/javascript" src="menudata.js"></script>
- <script type="text/javascript" src="menu.js"></script>
- <script type="text/javascript">
- /* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
- $(function() {
- initMenu('',true,false,'search.php','Search',true);
- $(function() { init_search(); });
- });
- /* @license-end */
- </script>
- <div id="main-nav"></div>
- </div><!-- top -->
- <div id="side-nav" class="ui-resizable side-nav-resizable">
- <div id="nav-tree">
- <div id="nav-tree-contents">
- <div id="nav-sync" class="sync"></div>
- </div>
- </div>
- <div id="splitbar" style="-moz-user-select:none;"
- class="ui-resizable-handle">
- </div>
- </div>
- <script type="text/javascript">
- /* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
- $(function(){initNavTree('struct_shape_cast_t.html',''); initResizable(true); });
- /* @license-end */
- </script>
- <div id="doc-content">
- <!-- window showing the filter options -->
- <div id="MSearchSelectWindow"
- onmouseover="return searchBox.OnSearchSelectShow()"
- onmouseout="return searchBox.OnSearchSelectHide()"
- onkeydown="return searchBox.OnSearchSelectKey(event)">
- </div>
- <!-- iframe showing the search results (closed by default) -->
- <div id="MSearchResultsWindow">
- <div id="MSearchResults">
- <div class="SRPage">
- <div id="SRIndex">
- <div id="SRResults"></div>
- <div class="SRStatus" id="Loading">Loading...</div>
- <div class="SRStatus" id="Searching">Searching...</div>
- <div class="SRStatus" id="NoMatches">No Matches</div>
- </div>
- </div>
- </div>
- </div>
- <div class="header">
- <div class="summary">
- <a href="#pub-methods">Public Member Functions</a> |
- <a href="#pub-static-methods">Static Public Member Functions</a> |
- <a href="#pub-attribs">Public Attributes</a> |
- <a href="struct_shape_cast_t-members.html">List of all members</a> </div>
- <div class="headertitle"><div class="title">ShapeCastT< Vec, Mat, ShapeCastType > Struct Template Reference</div></div>
- </div><!--header-->
- <div class="contents">
- <p>Structure that holds a single shape cast (a shape moving along a linear path in 3d space with no rotation)
- <a href="#details">More...</a></p>
- <p><code>#include <<a class="el" href="_shape_cast_8h_source.html">ShapeCast.h</a>></code></p>
- <table class="memberdecls">
- <tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-methods" name="pub-methods"></a>
- Public Member Functions</h2></td></tr>
- <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> </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> &inWorldSpaceBounds)</td></tr>
- <tr class="memdesc:a2b2b79fda0cdbef648d9ee22d348334f"><td class="mdescLeft"> </td><td class="mdescRight">Constructor. <br /></td></tr>
- <tr class="separator:a2b2b79fda0cdbef648d9ee22d348334f"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:a72512e9621d9b3ecf84e215bef9ee535" id="r_a72512e9621d9b3ecf84e215bef9ee535"><td class="memItemLeft" align="right" valign="top"> </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>
- <tr class="memdesc:a72512e9621d9b3ecf84e215bef9ee535"><td class="mdescLeft"> </td><td class="mdescRight">Constructor. <br /></td></tr>
- <tr class="separator:a72512e9621d9b3ecf84e215bef9ee535"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:ab07dbf4278d79895fb480781d24db2f3" id="r_ab07dbf4278d79895fb480781d24db2f3"><td class="memItemLeft" align="right" valign="top">ShapeCastType </td><td class="memItemRight" valign="bottom"><a class="el" href="#ab07dbf4278d79895fb480781d24db2f3">PostTransformed</a> (typename Mat::ArgType inTransform) const</td></tr>
- <tr class="memdesc:ab07dbf4278d79895fb480781d24db2f3"><td class="mdescLeft"> </td><td class="mdescRight">Transform this shape cast using inTransform. Multiply transform on the left left hand side. <br /></td></tr>
- <tr class="separator:ab07dbf4278d79895fb480781d24db2f3"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:a053b353deba2ee41bf6c42d3be33f18e" id="r_a053b353deba2ee41bf6c42d3be33f18e"><td class="memItemLeft" align="right" valign="top">ShapeCastType </td><td class="memItemRight" valign="bottom"><a class="el" href="#a053b353deba2ee41bf6c42d3be33f18e">PostTranslated</a> (typename Vec::ArgType inTranslation) const</td></tr>
- <tr class="memdesc:a053b353deba2ee41bf6c42d3be33f18e"><td class="mdescLeft"> </td><td class="mdescRight">Translate this shape cast by inTranslation. <br /></td></tr>
- <tr class="separator:a053b353deba2ee41bf6c42d3be33f18e"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:a90dcaf5d1e22122cf08862b9da811c96" id="r_a90dcaf5d1e22122cf08862b9da811c96"><td class="memItemLeft" align="right" valign="top">Vec </td><td class="memItemRight" valign="bottom"><a class="el" href="#a90dcaf5d1e22122cf08862b9da811c96">GetPointOnRay</a> (float inFraction) const</td></tr>
- <tr class="memdesc:a90dcaf5d1e22122cf08862b9da811c96"><td class="mdescLeft"> </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>
- <tr class="separator:a90dcaf5d1e22122cf08862b9da811c96"><td class="memSeparator" colspan="2"> </td></tr>
- </table><table class="memberdecls">
- <tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-static-methods" name="pub-static-methods"></a>
- Static Public Member Functions</h2></td></tr>
- <tr class="memitem:a0195f56ecbe283d8e393f1564d864823" id="r_a0195f56ecbe283d8e393f1564d864823"><td class="memItemLeft" align="right" valign="top">static ShapeCastType </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>
- <tr class="memdesc:a0195f56ecbe283d8e393f1564d864823"><td class="mdescLeft"> </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>
- <tr class="separator:a0195f56ecbe283d8e393f1564d864823"><td class="memSeparator" colspan="2"> </td></tr>
- </table><table class="memberdecls">
- <tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-attribs" name="pub-attribs"></a>
- Public Attributes</h2></td></tr>
- <tr class="memitem:a68df269e004434dd4c2dec18e29b1f8d" id="r_a68df269e004434dd4c2dec18e29b1f8d"><td class="memItemLeft" align="right" valign="top">const <a class="el" href="class_shape.html">Shape</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="#a68df269e004434dd4c2dec18e29b1f8d">mShape</a></td></tr>
- <tr class="memdesc:a68df269e004434dd4c2dec18e29b1f8d"><td class="mdescLeft"> </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>
- <tr class="separator:a68df269e004434dd4c2dec18e29b1f8d"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:aed62d5fadde28ac5dea4f8a44d3dddf2" id="r_aed62d5fadde28ac5dea4f8a44d3dddf2"><td class="memItemLeft" align="right" valign="top">const <a class="el" href="class_vec3.html">Vec3</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="#aed62d5fadde28ac5dea4f8a44d3dddf2">mScale</a></td></tr>
- <tr class="memdesc:aed62d5fadde28ac5dea4f8a44d3dddf2"><td class="mdescLeft"> </td><td class="mdescRight">Scale in local space of the shape being cast (scales relative to its center of mass) <br /></td></tr>
- <tr class="separator:aed62d5fadde28ac5dea4f8a44d3dddf2"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:accfdbb9a3a66304f8cec4c918f83ce87" id="r_accfdbb9a3a66304f8cec4c918f83ce87"><td class="memItemLeft" align="right" valign="top">const Mat </td><td class="memItemRight" valign="bottom"><a class="el" href="#accfdbb9a3a66304f8cec4c918f83ce87">mCenterOfMassStart</a></td></tr>
- <tr class="memdesc:accfdbb9a3a66304f8cec4c918f83ce87"><td class="mdescLeft"> </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>
- <tr class="separator:accfdbb9a3a66304f8cec4c918f83ce87"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:a4b45c3421b2f87e1553bb3325ca64752" id="r_a4b45c3421b2f87e1553bb3325ca64752"><td class="memItemLeft" align="right" valign="top">const <a class="el" href="class_vec3.html">Vec3</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="#a4b45c3421b2f87e1553bb3325ca64752">mDirection</a></td></tr>
- <tr class="memdesc:a4b45c3421b2f87e1553bb3325ca64752"><td class="mdescLeft"> </td><td class="mdescRight">Direction and length of the cast (anything beyond this length will not be reported as a hit) <br /></td></tr>
- <tr class="separator:a4b45c3421b2f87e1553bb3325ca64752"><td class="memSeparator" colspan="2"> </td></tr>
- <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> </td><td class="memItemRight" valign="bottom"><a class="el" href="#aef82ae03a83e2026e3af3d2f18d9710c">mShapeWorldBounds</a></td></tr>
- <tr class="memdesc:aef82ae03a83e2026e3af3d2f18d9710c"><td class="mdescLeft"> </td><td class="mdescRight">Cached shape's world bounds, calculated in constructor. <br /></td></tr>
- <tr class="separator:aef82ae03a83e2026e3af3d2f18d9710c"><td class="memSeparator" colspan="2"> </td></tr>
- </table>
- <a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
- <div class="textblock"><div class="compoundTemplParams">template<class Vec, class Mat, class ShapeCastType><br />
- struct ShapeCastT< Vec, Mat, ShapeCastType ></div><p>Structure that holds a single shape cast (a shape moving along a linear path in 3d space with no rotation) </p>
- </div><h2 class="groupheader">Constructor & Destructor Documentation</h2>
- <a id="a2b2b79fda0cdbef648d9ee22d348334f" name="a2b2b79fda0cdbef648d9ee22d348334f"></a>
- <h2 class="memtitle"><span class="permalink"><a href="#a2b2b79fda0cdbef648d9ee22d348334f">◆ </a></span>ShapeCastT() <span class="overload">[1/2]</span></h2>
- <div class="memitem">
- <div class="memproto">
- <div class="memtemplate">
- template<class Vec , class Mat , class ShapeCastType > </div>
- <table class="mlabels">
- <tr>
- <td class="mlabels-left">
- <table class="memname">
- <tr>
- <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>< Vec, Mat, ShapeCastType ><a class="el" href="struct_shape_cast_t.html">::ShapeCastT</a> </td>
- <td>(</td>
- <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>
- </tr>
- <tr>
- <td class="paramkey"></td>
- <td></td>
- <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>
- </tr>
- <tr>
- <td class="paramkey"></td>
- <td></td>
- <td class="paramtype">typename Mat::ArgType</td> <td class="paramname"><span class="paramname"><em>inCenterOfMassStart</em></span>, </td>
- </tr>
- <tr>
- <td class="paramkey"></td>
- <td></td>
- <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>
- </tr>
- <tr>
- <td class="paramkey"></td>
- <td></td>
- <td class="paramtype">const <a class="el" href="class_a_a_box.html">AABox</a> &</td> <td class="paramname"><span class="paramname"><em>inWorldSpaceBounds</em></span> )</td>
- </tr>
- </table>
- </td>
- <td class="mlabels-right">
- <span class="mlabels"><span class="mlabel">inline</span></span> </td>
- </tr>
- </table>
- </div><div class="memdoc">
- <p>Constructor. </p>
- </div>
- </div>
- <a id="a72512e9621d9b3ecf84e215bef9ee535" name="a72512e9621d9b3ecf84e215bef9ee535"></a>
- <h2 class="memtitle"><span class="permalink"><a href="#a72512e9621d9b3ecf84e215bef9ee535">◆ </a></span>ShapeCastT() <span class="overload">[2/2]</span></h2>
- <div class="memitem">
- <div class="memproto">
- <div class="memtemplate">
- template<class Vec , class Mat , class ShapeCastType > </div>
- <table class="mlabels">
- <tr>
- <td class="mlabels-left">
- <table class="memname">
- <tr>
- <td class="memname"><a class="el" href="struct_shape_cast_t.html">ShapeCastT</a>< Vec, Mat, ShapeCastType ><a class="el" href="struct_shape_cast_t.html">::ShapeCastT</a> </td>
- <td>(</td>
- <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>
- </tr>
- <tr>
- <td class="paramkey"></td>
- <td></td>
- <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>
- </tr>
- <tr>
- <td class="paramkey"></td>
- <td></td>
- <td class="paramtype">typename Mat::ArgType</td> <td class="paramname"><span class="paramname"><em>inCenterOfMassStart</em></span>, </td>
- </tr>
- <tr>
- <td class="paramkey"></td>
- <td></td>
- <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>
- </tr>
- </table>
- </td>
- <td class="mlabels-right">
- <span class="mlabels"><span class="mlabel">inline</span></span> </td>
- </tr>
- </table>
- </div><div class="memdoc">
- <p>Constructor. </p>
- </div>
- </div>
- <h2 class="groupheader">Member Function Documentation</h2>
- <a id="a90dcaf5d1e22122cf08862b9da811c96" name="a90dcaf5d1e22122cf08862b9da811c96"></a>
- <h2 class="memtitle"><span class="permalink"><a href="#a90dcaf5d1e22122cf08862b9da811c96">◆ </a></span>GetPointOnRay()</h2>
- <div class="memitem">
- <div class="memproto">
- <div class="memtemplate">
- template<class Vec , class Mat , class ShapeCastType > </div>
- <table class="mlabels">
- <tr>
- <td class="mlabels-left">
- <table class="memname">
- <tr>
- <td class="memname">Vec <a class="el" href="struct_shape_cast_t.html">ShapeCastT</a>< Vec, Mat, ShapeCastType >::GetPointOnRay </td>
- <td>(</td>
- <td class="paramtype">float</td> <td class="paramname"><span class="paramname"><em>inFraction</em></span></td><td>)</td>
- <td> const</td>
- </tr>
- </table>
- </td>
- <td class="mlabels-right">
- <span class="mlabels"><span class="mlabel">inline</span></span> </td>
- </tr>
- </table>
- </div><div class="memdoc">
- <p>Get point with fraction inFraction on ray from mCenterOfMassStart to mCenterOfMassStart + mDirection (0 = start of ray, 1 = end of ray) </p>
- </div>
- </div>
- <a id="ab07dbf4278d79895fb480781d24db2f3" name="ab07dbf4278d79895fb480781d24db2f3"></a>
- <h2 class="memtitle"><span class="permalink"><a href="#ab07dbf4278d79895fb480781d24db2f3">◆ </a></span>PostTransformed()</h2>
- <div class="memitem">
- <div class="memproto">
- <div class="memtemplate">
- template<class Vec , class Mat , class ShapeCastType > </div>
- <table class="mlabels">
- <tr>
- <td class="mlabels-left">
- <table class="memname">
- <tr>
- <td class="memname">ShapeCastType <a class="el" href="struct_shape_cast_t.html">ShapeCastT</a>< Vec, Mat, ShapeCastType >::PostTransformed </td>
- <td>(</td>
- <td class="paramtype">typename Mat::ArgType</td> <td class="paramname"><span class="paramname"><em>inTransform</em></span></td><td>)</td>
- <td> const</td>
- </tr>
- </table>
- </td>
- <td class="mlabels-right">
- <span class="mlabels"><span class="mlabel">inline</span></span> </td>
- </tr>
- </table>
- </div><div class="memdoc">
- <p>Transform this shape cast using inTransform. Multiply transform on the left left hand side. </p>
- </div>
- </div>
- <a id="a053b353deba2ee41bf6c42d3be33f18e" name="a053b353deba2ee41bf6c42d3be33f18e"></a>
- <h2 class="memtitle"><span class="permalink"><a href="#a053b353deba2ee41bf6c42d3be33f18e">◆ </a></span>PostTranslated()</h2>
- <div class="memitem">
- <div class="memproto">
- <div class="memtemplate">
- template<class Vec , class Mat , class ShapeCastType > </div>
- <table class="mlabels">
- <tr>
- <td class="mlabels-left">
- <table class="memname">
- <tr>
- <td class="memname">ShapeCastType <a class="el" href="struct_shape_cast_t.html">ShapeCastT</a>< Vec, Mat, ShapeCastType >::PostTranslated </td>
- <td>(</td>
- <td class="paramtype">typename Vec::ArgType</td> <td class="paramname"><span class="paramname"><em>inTranslation</em></span></td><td>)</td>
- <td> const</td>
- </tr>
- </table>
- </td>
- <td class="mlabels-right">
- <span class="mlabels"><span class="mlabel">inline</span></span> </td>
- </tr>
- </table>
- </div><div class="memdoc">
- <p>Translate this shape cast by inTranslation. </p>
- </div>
- </div>
- <a id="a0195f56ecbe283d8e393f1564d864823" name="a0195f56ecbe283d8e393f1564d864823"></a>
- <h2 class="memtitle"><span class="permalink"><a href="#a0195f56ecbe283d8e393f1564d864823">◆ </a></span>sFromWorldTransform()</h2>
- <div class="memitem">
- <div class="memproto">
- <div class="memtemplate">
- template<class Vec , class Mat , class ShapeCastType > </div>
- <table class="mlabels">
- <tr>
- <td class="mlabels-left">
- <table class="memname">
- <tr>
- <td class="memname">static ShapeCastType <a class="el" href="struct_shape_cast_t.html">ShapeCastT</a>< Vec, Mat, ShapeCastType >::sFromWorldTransform </td>
- <td>(</td>
- <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>
- </tr>
- <tr>
- <td class="paramkey"></td>
- <td></td>
- <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>
- </tr>
- <tr>
- <td class="paramkey"></td>
- <td></td>
- <td class="paramtype">typename Mat::ArgType</td> <td class="paramname"><span class="paramname"><em>inWorldTransform</em></span>, </td>
- </tr>
- <tr>
- <td class="paramkey"></td>
- <td></td>
- <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>
- </tr>
- </table>
- </td>
- <td class="mlabels-right">
- <span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span> </td>
- </tr>
- </table>
- </div><div class="memdoc">
- <p>Construct a shape cast using a world transform for a shape instead of a center of mass transform. </p>
- </div>
- </div>
- <h2 class="groupheader">Member Data Documentation</h2>
- <a id="accfdbb9a3a66304f8cec4c918f83ce87" name="accfdbb9a3a66304f8cec4c918f83ce87"></a>
- <h2 class="memtitle"><span class="permalink"><a href="#accfdbb9a3a66304f8cec4c918f83ce87">◆ </a></span>mCenterOfMassStart</h2>
- <div class="memitem">
- <div class="memproto">
- <div class="memtemplate">
- template<class Vec , class Mat , class ShapeCastType > </div>
- <table class="memname">
- <tr>
- <td class="memname">const Mat <a class="el" href="struct_shape_cast_t.html">ShapeCastT</a>< Vec, Mat, ShapeCastType >::mCenterOfMassStart</td>
- </tr>
- </table>
- </div><div class="memdoc">
- <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>
- </div>
- </div>
- <a id="a4b45c3421b2f87e1553bb3325ca64752" name="a4b45c3421b2f87e1553bb3325ca64752"></a>
- <h2 class="memtitle"><span class="permalink"><a href="#a4b45c3421b2f87e1553bb3325ca64752">◆ </a></span>mDirection</h2>
- <div class="memitem">
- <div class="memproto">
- <div class="memtemplate">
- template<class Vec , class Mat , class ShapeCastType > </div>
- <table class="memname">
- <tr>
- <td class="memname">const <a class="el" href="class_vec3.html">Vec3</a> <a class="el" href="struct_shape_cast_t.html">ShapeCastT</a>< Vec, Mat, ShapeCastType >::mDirection</td>
- </tr>
- </table>
- </div><div class="memdoc">
- <p>Direction and length of the cast (anything beyond this length will not be reported as a hit) </p>
- </div>
- </div>
- <a id="aed62d5fadde28ac5dea4f8a44d3dddf2" name="aed62d5fadde28ac5dea4f8a44d3dddf2"></a>
- <h2 class="memtitle"><span class="permalink"><a href="#aed62d5fadde28ac5dea4f8a44d3dddf2">◆ </a></span>mScale</h2>
- <div class="memitem">
- <div class="memproto">
- <div class="memtemplate">
- template<class Vec , class Mat , class ShapeCastType > </div>
- <table class="memname">
- <tr>
- <td class="memname">const <a class="el" href="class_vec3.html">Vec3</a> <a class="el" href="struct_shape_cast_t.html">ShapeCastT</a>< Vec, Mat, ShapeCastType >::mScale</td>
- </tr>
- </table>
- </div><div class="memdoc">
- <p>Scale in local space of the shape being cast (scales relative to its center of mass) </p>
- </div>
- </div>
- <a id="a68df269e004434dd4c2dec18e29b1f8d" name="a68df269e004434dd4c2dec18e29b1f8d"></a>
- <h2 class="memtitle"><span class="permalink"><a href="#a68df269e004434dd4c2dec18e29b1f8d">◆ </a></span>mShape</h2>
- <div class="memitem">
- <div class="memproto">
- <div class="memtemplate">
- template<class Vec , class Mat , class ShapeCastType > </div>
- <table class="memname">
- <tr>
- <td class="memname">const <a class="el" href="class_shape.html">Shape</a>* <a class="el" href="struct_shape_cast_t.html">ShapeCastT</a>< Vec, Mat, ShapeCastType >::mShape</td>
- </tr>
- </table>
- </div><div class="memdoc">
- <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>
- </div>
- </div>
- <a id="aef82ae03a83e2026e3af3d2f18d9710c" name="aef82ae03a83e2026e3af3d2f18d9710c"></a>
- <h2 class="memtitle"><span class="permalink"><a href="#aef82ae03a83e2026e3af3d2f18d9710c">◆ </a></span>mShapeWorldBounds</h2>
- <div class="memitem">
- <div class="memproto">
- <div class="memtemplate">
- template<class Vec , class Mat , class ShapeCastType > </div>
- <table class="memname">
- <tr>
- <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>< Vec, Mat, ShapeCastType >::mShapeWorldBounds</td>
- </tr>
- </table>
- </div><div class="memdoc">
- <p>Cached shape's world bounds, calculated in constructor. </p>
- </div>
- </div>
- <hr/>The documentation for this struct was generated from the following file:<ul>
- <li>Jolt/Physics/Collision/<a class="el" href="_shape_cast_8h_source.html">ShapeCast.h</a></li>
- </ul>
- </div><!-- contents -->
- </div><!-- doc-content -->
- <!-- start footer part -->
- <div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
- <ul>
- <li class="navelem"><a class="el" href="struct_shape_cast_t.html">ShapeCastT</a></li>
- <li class="footer">Generated by <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.12.0 </li>
- </ul>
- </div>
- </body>
- </html>
|