<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> <meta http-equiv="X-UA-Compatible" content="IE=9"/> <meta name="generator" content="Doxygen 1.8.14"/> <meta name="viewport" content="width=device-width, initial-scale=1"/> <title>Box2D: b2MassData Struct 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> <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> <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 style="height: 56px;"> <td id="projectlogo"><img alt="Logo" src="icon.gif"/></td> <td id="projectalign" style="padding-left: 0.5em;"> <div id="projectname">Box2D  <span id="projectnumber">2.3.0</span> </div> <div id="projectbrief">A 2D Physics Engine for Games</div> </td> </tr> </tbody> </table> </div> <!-- end header part --> <!-- Generated by Doxygen 1.8.14 --> <script type="text/javascript"> /* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */ var searchBox = new SearchBox("searchBox", "search",false,'Search'); /* @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:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */ $(function() { initMenu('',true,false,'search.php','Search'); $(document).ready(function() { init_search(); }); }); /* @license-end */</script> <div id="main-nav"></div> <!-- 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"> <iframe src="javascript:void(0)" frameborder="0" name="MSearchResults" id="MSearchResults"> </iframe> </div> </div><!-- top --> <div class="header"> <div class="summary"> <a href="#pub-attribs">Public Attributes</a> | <a href="structb2_mass_data-members.html">List of all members</a> </div> <div class="headertitle"> <div class="title">b2MassData Struct Reference</div> </div> </div><!--header--> <div class="contents"> <p>This holds the mass data computed for a shape. <a href="structb2_mass_data.html#details">More...</a></p> <p><code>#include <<a class="el" href="b2_shape_8h_source.html">b2Shape.h</a>></code></p> <table class="memberdecls"> <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-attribs"></a> Public Attributes</h2></td></tr> <tr class="memitem:aea85d9595a38d2eed05b8d2ea80d97b1"><td class="memItemLeft" align="right" valign="top"><a id="aea85d9595a38d2eed05b8d2ea80d97b1"></a> float32 </td><td class="memItemRight" valign="bottom"><a class="el" href="structb2_mass_data.html#aea85d9595a38d2eed05b8d2ea80d97b1">mass</a></td></tr> <tr class="memdesc:aea85d9595a38d2eed05b8d2ea80d97b1"><td class="mdescLeft"> </td><td class="mdescRight">The mass of the shape, usually in kilograms. <br /></td></tr> <tr class="separator:aea85d9595a38d2eed05b8d2ea80d97b1"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a1d59bebc7030c4dded0c2febc57ebdd7"><td class="memItemLeft" align="right" valign="top"><a id="a1d59bebc7030c4dded0c2febc57ebdd7"></a> <a class="el" href="structb2_vec2.html">b2Vec2</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="structb2_mass_data.html#a1d59bebc7030c4dded0c2febc57ebdd7">center</a></td></tr> <tr class="memdesc:a1d59bebc7030c4dded0c2febc57ebdd7"><td class="mdescLeft"> </td><td class="mdescRight">The position of the shape's centroid relative to the shape's origin. <br /></td></tr> <tr class="separator:a1d59bebc7030c4dded0c2febc57ebdd7"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:ad2d06e96e2d79d895df16ae0e5fe0376"><td class="memItemLeft" align="right" valign="top"><a id="ad2d06e96e2d79d895df16ae0e5fe0376"></a> float32 </td><td class="memItemRight" valign="bottom"><a class="el" href="structb2_mass_data.html#ad2d06e96e2d79d895df16ae0e5fe0376">I</a></td></tr> <tr class="memdesc:ad2d06e96e2d79d895df16ae0e5fe0376"><td class="mdescLeft"> </td><td class="mdescRight">The rotational inertia of the shape about the local origin. <br /></td></tr> <tr class="separator:ad2d06e96e2d79d895df16ae0e5fe0376"><td class="memSeparator" colspan="2"> </td></tr> </table> <a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2> <div class="textblock"><p>This holds the mass data computed for a shape. </p> </div><hr/>The documentation for this struct was generated from the following file:<ul> <li><a class="el" href="b2_shape_8h_source.html">b2Shape.h</a></li> </ul> </div><!-- contents --> <!-- start footer part --> <hr class="footer"/><address class="footer"><small> Generated on Fri Sep 21 2018 22:35:08 for Box2D by  <a href="http://www.doxygen.org/index.html"> <img class="footer" src="doxygen.png" alt="doxygen"/> </a> 1.8.14 </small></address> </body> </html>