| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251 |
- <!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: ConvexShape::Support Class 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('class_convex_shape_1_1_support.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="class_convex_shape_1_1_support-members.html">List of all members</a> </div>
- <div class="headertitle"><div class="title">ConvexShape::Support Class Reference<span class="mlabels"><span class="mlabel">abstract</span></span></div></div>
- </div><!--header-->
- <div class="contents">
- <p>Function that provides an interface for GJK.
- <a href="#details">More...</a></p>
- <p><code>#include <<a class="el" href="_convex_shape_8h_source.html">ConvexShape.h</a>></code></p>
- <div class="dynheader">
- Inheritance diagram for ConvexShape::Support:</div>
- <div class="dyncontent">
- <div class="center">
- <img src="class_convex_shape_1_1_support.png" usemap="#ConvexShape::Support_map" alt=""/>
- <map id="ConvexShape::Support_map" name="ConvexShape::Support_map">
- <area href="class_box_shape_1_1_box.html" alt="BoxShape::Box" shape="rect" coords="257,56,504,80"/>
- <area href="class_capsule_shape_1_1_capsule_no_convex.html" alt="CapsuleShape::CapsuleNoConvex" shape="rect" coords="257,112,504,136"/>
- <area href="class_capsule_shape_1_1_capsule_with_convex.html" alt="CapsuleShape::CapsuleWithConvex" shape="rect" coords="257,168,504,192"/>
- <area href="class_convex_hull_shape_1_1_hull_no_convex.html" alt="ConvexHullShape::HullNoConvex" shape="rect" coords="257,224,504,248"/>
- <area href="class_convex_hull_shape_1_1_hull_with_convex.html" alt="ConvexHullShape::HullWithConvex" shape="rect" coords="257,280,504,304"/>
- <area href="class_convex_hull_shape_1_1_hull_with_convex_scaled.html" alt="ConvexHullShape::HullWithConvexScaled" shape="rect" coords="257,336,504,360"/>
- <area href="class_cylinder_shape_1_1_cylinder.html" alt="CylinderShape::Cylinder" shape="rect" coords="257,392,504,416"/>
- <area href="class_sphere_shape_1_1_sphere_no_convex.html" alt="SphereShape::SphereNoConvex" shape="rect" coords="257,448,504,472"/>
- <area href="class_sphere_shape_1_1_sphere_with_convex.html" alt="SphereShape::SphereWithConvex" shape="rect" coords="257,504,504,528"/>
- <area href="class_tapered_capsule_shape_1_1_tapered_capsule.html" alt="TaperedCapsuleShape::TaperedCapsule" shape="rect" coords="257,560,504,584"/>
- <area href="class_tapered_cylinder_shape_1_1_tapered_cylinder.html" alt="TaperedCylinderShape::TaperedCylinder" shape="rect" coords="257,616,504,640"/>
- <area href="class_triangle_shape_1_1_triangle_no_convex.html" alt="TriangleShape::TriangleNoConvex" shape="rect" coords="257,672,504,696"/>
- <area href="class_triangle_shape_1_1_triangle_with_convex.html" alt="TriangleShape::TriangleWithConvex" shape="rect" coords="257,728,504,752"/>
- </map>
- </div></div>
- <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:a24c8452338cbc755fb69f04aca229a4c" id="r_a24c8452338cbc755fb69f04aca229a4c"><td class="memItemLeft" align="right" valign="top">virtual </td><td class="memItemRight" valign="bottom"><a class="el" href="#a24c8452338cbc755fb69f04aca229a4c">~Support</a> ()=default</td></tr>
- <tr class="memdesc:a24c8452338cbc755fb69f04aca229a4c"><td class="mdescLeft"> </td><td class="mdescRight">Warning: Virtual destructor will not be called on this object! <br /></td></tr>
- <tr class="separator:a24c8452338cbc755fb69f04aca229a4c"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:ab2a715898d419c03321366a009539ae0" id="r_ab2a715898d419c03321366a009539ae0"><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="class_vec3.html">Vec3</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="#ab2a715898d419c03321366a009539ae0">GetSupport</a> (<a class="el" href="_math_types_8h.html#a6bc57c31f15cea47640b580d03737c68">Vec3Arg</a> inDirection) const =0</td></tr>
- <tr class="separator:ab2a715898d419c03321366a009539ae0"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:ab6255a297bd904ef2c09a9cce6c3c05b" id="r_ab6255a297bd904ef2c09a9cce6c3c05b"><td class="memItemLeft" align="right" valign="top">virtual float </td><td class="memItemRight" valign="bottom"><a class="el" href="#ab6255a297bd904ef2c09a9cce6c3c05b">GetConvexRadius</a> () const =0</td></tr>
- <tr class="separator:ab6255a297bd904ef2c09a9cce6c3c05b"><td class="memSeparator" colspan="2"> </td></tr>
- </table>
- <a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
- <div class="textblock"><p>Function that provides an interface for GJK. </p>
- </div><h2 class="groupheader">Constructor & Destructor Documentation</h2>
- <a id="a24c8452338cbc755fb69f04aca229a4c" name="a24c8452338cbc755fb69f04aca229a4c"></a>
- <h2 class="memtitle"><span class="permalink"><a href="#a24c8452338cbc755fb69f04aca229a4c">◆ </a></span>~Support()</h2>
- <div class="memitem">
- <div class="memproto">
- <table class="mlabels">
- <tr>
- <td class="mlabels-left">
- <table class="memname">
- <tr>
- <td class="memname">virtual ConvexShape::Support::~Support </td>
- <td>(</td>
- <td class="paramname"><span class="paramname"><em></em></span></td><td>)</td>
- <td></td>
- </tr>
- </table>
- </td>
- <td class="mlabels-right">
- <span class="mlabels"><span class="mlabel">virtual</span><span class="mlabel">default</span></span> </td>
- </tr>
- </table>
- </div><div class="memdoc">
- <p>Warning: Virtual destructor will not be called on this object! </p>
- </div>
- </div>
- <h2 class="groupheader">Member Function Documentation</h2>
- <a id="ab6255a297bd904ef2c09a9cce6c3c05b" name="ab6255a297bd904ef2c09a9cce6c3c05b"></a>
- <h2 class="memtitle"><span class="permalink"><a href="#ab6255a297bd904ef2c09a9cce6c3c05b">◆ </a></span>GetConvexRadius()</h2>
- <div class="memitem">
- <div class="memproto">
- <table class="mlabels">
- <tr>
- <td class="mlabels-left">
- <table class="memname">
- <tr>
- <td class="memname">virtual float ConvexShape::Support::GetConvexRadius </td>
- <td>(</td>
- <td class="paramname"><span class="paramname"><em></em></span></td><td>)</td>
- <td> const</td>
- </tr>
- </table>
- </td>
- <td class="mlabels-right">
- <span class="mlabels"><span class="mlabel">pure virtual</span></span> </td>
- </tr>
- </table>
- </div><div class="memdoc">
- <p>Convex radius of shape. Collision detection on penetrating shapes is much more expensive, so you can add a radius around objects to increase the shape. This makes it far less likely that they will actually penetrate. </p>
- <p>Implemented in <a class="el" href="class_box_shape_1_1_box.html#aae4ca0e522c6bf8bfd05b2ac5a8f3657">BoxShape::Box</a>, <a class="el" href="class_capsule_shape_1_1_capsule_no_convex.html#ac5c3f5013f55a44ca8a27f4f26bcdd7e">CapsuleShape::CapsuleNoConvex</a>, <a class="el" href="class_capsule_shape_1_1_capsule_with_convex.html#a8848a4436820ea01656a3dc6f0700c12">CapsuleShape::CapsuleWithConvex</a>, <a class="el" href="class_convex_hull_shape_1_1_hull_no_convex.html#a9eb3d10a97e5ff7728db7f2ab218eff5">ConvexHullShape::HullNoConvex</a>, <a class="el" href="class_convex_hull_shape_1_1_hull_with_convex.html#a069ec0a55025c42b3496246b949cd596">ConvexHullShape::HullWithConvex</a>, <a class="el" href="class_convex_hull_shape_1_1_hull_with_convex_scaled.html#a35a3f457cbdae6352227be61c356bba1">ConvexHullShape::HullWithConvexScaled</a>, <a class="el" href="class_cylinder_shape_1_1_cylinder.html#a0427aea83069b39420bcc5d84e02e11a">CylinderShape::Cylinder</a>, <a class="el" href="class_sphere_shape_1_1_sphere_no_convex.html#afd8c26363093475f569d9b01710e66d9">SphereShape::SphereNoConvex</a>, <a class="el" href="class_sphere_shape_1_1_sphere_with_convex.html#a63950fdd2ab3281634f5521a08fb6793">SphereShape::SphereWithConvex</a>, <a class="el" href="class_tapered_capsule_shape_1_1_tapered_capsule.html#a44fd5dde5c0b781753c7d58005272a5b">TaperedCapsuleShape::TaperedCapsule</a>, <a class="el" href="class_tapered_cylinder_shape_1_1_tapered_cylinder.html#a1a34aff6da2ce5e2a274d484a8460cb4">TaperedCylinderShape::TaperedCylinder</a>, <a class="el" href="class_triangle_shape_1_1_triangle_no_convex.html#a9a3136e6697ef368555225a6e12f0149">TriangleShape::TriangleNoConvex</a>, and <a class="el" href="class_triangle_shape_1_1_triangle_with_convex.html#ac62eb3e67195f25c99f68e752afb7082">TriangleShape::TriangleWithConvex</a>.</p>
- </div>
- </div>
- <a id="ab2a715898d419c03321366a009539ae0" name="ab2a715898d419c03321366a009539ae0"></a>
- <h2 class="memtitle"><span class="permalink"><a href="#ab2a715898d419c03321366a009539ae0">◆ </a></span>GetSupport()</h2>
- <div class="memitem">
- <div class="memproto">
- <table class="mlabels">
- <tr>
- <td class="mlabels-left">
- <table class="memname">
- <tr>
- <td class="memname">virtual <a class="el" href="class_vec3.html">Vec3</a> ConvexShape::Support::GetSupport </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><td>)</td>
- <td> const</td>
- </tr>
- </table>
- </td>
- <td class="mlabels-right">
- <span class="mlabels"><span class="mlabel">pure virtual</span></span> </td>
- </tr>
- </table>
- </div><div class="memdoc">
- <p>Calculate the support vector for this convex shape (includes / excludes the convex radius depending on how this was obtained). <a class="el" href="class_convex_shape_1_1_support.html" title="Function that provides an interface for GJK.">Support</a> vector is relative to the center of mass of the shape. </p>
- <p>Implemented in <a class="el" href="class_box_shape_1_1_box.html#addae08ce81d2c3eaca0acd914c2fe662">BoxShape::Box</a>, <a class="el" href="class_capsule_shape_1_1_capsule_no_convex.html#a0be6a5849883349f4d1e7bfa2107b4c6">CapsuleShape::CapsuleNoConvex</a>, <a class="el" href="class_capsule_shape_1_1_capsule_with_convex.html#a15a15b4961f231684a30f4fbcdbee693">CapsuleShape::CapsuleWithConvex</a>, <a class="el" href="class_convex_hull_shape_1_1_hull_no_convex.html#ac12140f541d4dcf2b1c6a58108c0b026">ConvexHullShape::HullNoConvex</a>, <a class="el" href="class_convex_hull_shape_1_1_hull_with_convex.html#a0abf6518afb0203d73ed2308d3bb83b1">ConvexHullShape::HullWithConvex</a>, <a class="el" href="class_convex_hull_shape_1_1_hull_with_convex_scaled.html#aad0e71dae0215de9d65abee32e3d5bb7">ConvexHullShape::HullWithConvexScaled</a>, <a class="el" href="class_cylinder_shape_1_1_cylinder.html#ac2fbf97f298eabff324fe1200d1e6974">CylinderShape::Cylinder</a>, <a class="el" href="class_sphere_shape_1_1_sphere_no_convex.html#a38a13c00c2b11db056767b4f67241845">SphereShape::SphereNoConvex</a>, <a class="el" href="class_sphere_shape_1_1_sphere_with_convex.html#a503b8f57aa6e001cda690534f3c723a1">SphereShape::SphereWithConvex</a>, <a class="el" href="class_tapered_capsule_shape_1_1_tapered_capsule.html#a91c8bdbd45deec0013bf3f383adcb149">TaperedCapsuleShape::TaperedCapsule</a>, <a class="el" href="class_tapered_cylinder_shape_1_1_tapered_cylinder.html#a450d358fbfb9f7313c000bfad68142b5">TaperedCylinderShape::TaperedCylinder</a>, <a class="el" href="class_triangle_shape_1_1_triangle_no_convex.html#a03cf50acfaaafb83ae5f2c1efc445c7c">TriangleShape::TriangleNoConvex</a>, and <a class="el" href="class_triangle_shape_1_1_triangle_with_convex.html#addb17c65c6b1c99b7a4b2862ac796446">TriangleShape::TriangleWithConvex</a>.</p>
- </div>
- </div>
- <hr/>The documentation for this class was generated from the following file:<ul>
- <li>Jolt/Physics/Collision/Shape/<a class="el" href="_convex_shape_8h_source.html">ConvexShape.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="class_convex_shape.html">ConvexShape</a></li><li class="navelem"><a class="el" href="class_convex_shape_1_1_support.html">Support</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>
|