1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110
|
<!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"/>
<title>Objective Chipmunk: ChipmunkSimpleMotor Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javaScript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body onload='searchBox.OnSelectItem(0);'>
<!-- Generated by Doxygen 1.7.1 -->
<script type="text/javascript"><!--
var searchBox = new SearchBox("searchBox", "search",false,'Search');
--></script>
<div class="navigation" id="top">
<div class="tabs">
<ul class="tablist">
<li><a href="index.html"><span>Main Page</span></a></li>
<li><a href="pages.html"><span>Related Pages</span></a></li>
<li class="current"><a href="annotated.html"><span>Classes</span></a></li>
<li><a href="files.html"><span>Files</span></a></li>
<li id="searchli">
<div id="MSearchBox" class="MSearchBoxInactive">
<span class="left">
<img id="MSearchSelect" src="search/mag_sel.png"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
alt=""/>
<input type="text" id="MSearchField" value="Search" accesskey="S"
onfocus="searchBox.OnSearchFieldFocus(true)"
onblur="searchBox.OnSearchFieldFocus(false)"
onkeyup="searchBox.OnSearchFieldChange(event)"/>
</span><span class="right">
<a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
</span>
</div>
</li>
</ul>
</div>
<div class="tabs2">
<ul class="tablist">
<li><a href="annotated.html"><span>Class List</span></a></li>
<li><a href="classes.html"><span>Class Index</span></a></li>
<li><a href="hierarchy.html"><span>Class Hierarchy</span></a></li>
<li><a href="functions.html"><span>Class Members</span></a></li>
</ul>
</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="#properties">Properties</a> </div>
<div class="headertitle">
<h1>ChipmunkSimpleMotor Class Reference</h1> </div>
</div>
<div class="contents">
<!-- doxytag: class="ChipmunkSimpleMotor" --><!-- doxytag: inherits="ChipmunkConstraint" -->
<p>Simple motors make two objects spin relative to each other.
<a href="#_details">More...</a></p>
<p><code>#import <<a class="el" href="_chipmunk_constraint_8h_source.html">ChipmunkConstraint.h</a>></code></p>
<p>Inherits <a class="el" href="interface_chipmunk_constraint.html">ChipmunkConstraint</a>.</p>
<p><a href="class_chipmunk_simple_motor-members.html">List of all members.</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a3ff57bda146262b20a47973e973273b5"></a><!-- doxytag: member="ChipmunkSimpleMotor::initWithBodyA:bodyB:rate:" ref="a3ff57bda146262b20a47973e973273b5" args="(ChipmunkBody *a,[bodyB] ChipmunkBody *b,[rate] cpFloat rate)" -->
(id) </td><td class="memItemRight" valign="bottom">- <a class="el" href="interface_chipmunk_simple_motor.html#a3ff57bda146262b20a47973e973273b5">initWithBodyA:bodyB:rate:</a></td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Initialize a simple motor between the given bodies and relative rotation rate in radians per second. <br/></td></tr>
<tr><td colspan="2"><h2><a name="pub-static-methods"></a>
Static Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a5aaeedc5ca7aa587c00bb63b92974b57"></a><!-- doxytag: member="ChipmunkSimpleMotor::simpleMotorWithBodyA:bodyB:rate:" ref="a5aaeedc5ca7aa587c00bb63b92974b57" args="(ChipmunkBody *a,[bodyB] ChipmunkBody *b,[rate] cpFloat rate)" -->
(<a class="el" href="interface_chipmunk_simple_motor.html">ChipmunkSimpleMotor</a> *) </td><td class="memItemRight" valign="bottom">+ <a class="el" href="interface_chipmunk_simple_motor.html#a5aaeedc5ca7aa587c00bb63b92974b57">simpleMotorWithBodyA:bodyB:rate:</a></td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Create an autoreleased simple motor between the given bodies and relative rotation rate in radians per second. <br/></td></tr>
<tr><td colspan="2"><h2><a name="properties"></a>
Properties</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="abb870615c47a214f4f49e6d34254df28"></a><!-- doxytag: member="ChipmunkSimpleMotor::rate" ref="abb870615c47a214f4f49e6d34254df28" args="" -->
cpFloat </td><td class="memItemRight" valign="bottom"><a class="el" href="interface_chipmunk_simple_motor.html#abb870615c47a214f4f49e6d34254df28">rate</a></td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">The relative rotation speed of the two bodies in radians per second. <br/></td></tr>
</table>
<hr/><a name="_details"></a><h2>Detailed Description</h2>
<p>Simple motors make two objects spin relative to each other. </p>
<p>They are most often used with the <a class="el" href="interface_chipmunk_constraint.html#ad6294d2fd2c320f9a1912c48464860f0" title="Maximum force this constraint is allowed to use (defalts to infinity).">ChipmunkConstraint.maxForce</a> property set to a finite value. </p>
<hr/>The documentation for this class was generated from the following file:<ul>
<li><a class="el" href="_chipmunk_constraint_8h_source.html">ChipmunkConstraint.h</a></li>
</ul>
</div>
<!--- window showing the filter options -->
<div id="MSearchSelectWindow"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark"> </span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark"> </span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark"> </span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark"> </span>Properties</a></div>
<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="" frameborder="0"
name="MSearchResults" id="MSearchResults">
</iframe>
</div>
<hr class="footer"/><address class="footer"><small>Generated on Mon Dec 13 2010 18:43:39 for Objective Chipmunk by
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.1 </small></address>
</body>
</html>
|