Sophie

Sophie

distrib > Mandriva > 10.0-com > i586 > by-pkgid > 06719cf03808e17ae6f0852ca1052dc2 > files > 1448

libogre1-devel-0.13.0-1mdk.i586.rpm

<html>
<head>
<title>OgreRefApp::HingeJoint class Reference - OGRE Documentation</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> 
<link type="text/css" rel="stylesheet" href="style.css">
</head>

<body>
<!-- Generated by Doxygen 1.2.16 -->
<center>
<a class="qindex" href="index.html">Main Page</a> &nbsp; <a class="qindex" href="namespaces.html">Namespace List</a> &nbsp; <a class="qindex" href="hierarchy.html">Class Hierarchy</a> &nbsp; <a class="qindex" href="classes.html">Alphabetical List</a> &nbsp; <a class="qindex" href="annotated.html">Compound List</a> &nbsp; <a class="qindex" href="files.html">File List</a> &nbsp; <a class="qindex" href="namespacemembers.html">Namespace Members</a> &nbsp; <a class="qindex" href="functions.html">Compound Members</a> &nbsp; <a class="qindex" href="globals.html">File Members</a> &nbsp; <a class="qindex" href="pages.html">Related Pages</a> &nbsp; </center>
<hr><h1>OgreRefApp::HingeJoint  Class Reference</h1>Implementation of hinge joint. 
<a href="#_details">More...</a>
<p>
<code>#include &lt;<a class="el" href="OgreRefAppJointSubtypes_8h-source.html">OgreRefAppJointSubtypes.h</a>&gt;</code>
<p>
Inheritance diagram for OgreRefApp::HingeJoint:<p><center><img src="classOgreRefApp_1_1HingeJoint__inherit__graph.png" border="0" usemap="#OgreRefApp_1_1HingeJoint__inherit__map" alt="Inheritance graph"></center>
<map name="OgreRefApp_1_1HingeJoint__inherit__map">
<area href="classOgreRefApp_1_1Joint.html" shape="rect" coords="24,36,141,17" alt="">
</map>
<center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center>Collaboration diagram for OgreRefApp::HingeJoint:<p><center><img src="classOgreRefApp_1_1HingeJoint__coll__graph.png" border="0" usemap="#OgreRefApp_1_1HingeJoint__coll__map" alt="Collaboration graph"></center>
<map name="OgreRefApp_1_1HingeJoint__coll__map">
<area href="classOgreRefApp_1_1Joint.html" shape="rect" coords="24,36,141,17" alt="">
</map>
<center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center><a href="classOgreRefApp_1_1HingeJoint-members.html">List of all members.</a><table border=0 cellpadding=0 cellspacing=0>
<tr><td colspan=2><br><h2>Public Types</h2></td></tr>
<tr><td nowrap align=right valign=top>enum &nbsp;</td><td valign=bottom><a class="el" href="classOgreRefApp_1_1HingeJoint.html#OgreRefApp_1_1UniversalJoints5">JointType</a> { <br>
&nbsp;&nbsp;<a class="el" href="classOgreRefApp_1_1HingeJoint.html#OgreRefApp_1_1UniversalJoints5OgreRefApp_1_1UniversalJoints0">JT_BALL</a>, 
<a class="el" href="classOgreRefApp_1_1HingeJoint.html#OgreRefApp_1_1UniversalJoints5OgreRefApp_1_1UniversalJoints1">JT_SLIDER</a>, 
<a class="el" href="classOgreRefApp_1_1HingeJoint.html#OgreRefApp_1_1UniversalJoints5OgreRefApp_1_1UniversalJoints2">JT_HINGE</a>, 
<a class="el" href="classOgreRefApp_1_1HingeJoint.html#OgreRefApp_1_1UniversalJoints5OgreRefApp_1_1UniversalJoints3">JT_UNIVERSAL</a>, 
<br>
&nbsp;&nbsp;<a class="el" href="classOgreRefApp_1_1HingeJoint.html#OgreRefApp_1_1UniversalJoints5OgreRefApp_1_1UniversalJoints4">JT_HINGE2</a>
<br>
 }</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>The type of joint.</em> <a href="#OgreRefApp_1_1UniversalJoints5">More...</a><em></em></font><br><br></td></tr>
<tr><td colspan=2><br><h2>Public Methods</h2></td></tr>
<tr><td nowrap align=right valign=top>&nbsp;</td><td valign=bottom><a class="el" href="classOgreRefApp_1_1HingeJoint.html#OgreRefApp_1_1HingeJointa0">HingeJoint</a> (<a class="el" href="classOgreRefApp_1_1Joint.html#OgreRefApp_1_1UniversalJoints5">Joint::JointType</a> jtype, <a class="el" href="classOgreRefApp_1_1ApplicationObject.html">ApplicationObject</a> *obj1, <a class="el" href="classOgreRefApp_1_1ApplicationObject.html">ApplicationObject</a> *obj2)</td></tr>
<tr><td nowrap align=right valign=top>&nbsp;</td><td valign=bottom><a class="el" href="classOgreRefApp_1_1HingeJoint.html#OgreRefApp_1_1HingeJointa1">~HingeJoint</a> ()</td></tr>
<tr><td nowrap align=right valign=top>void&nbsp;</td><td valign=bottom><a class="el" href="classOgreRefApp_1_1HingeJoint.html#OgreRefApp_1_1HingeJointa2">setAnchorPosition</a> (const Vector3 &amp;point)</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Set the anchor point of this joint.</em> <a href="#OgreRefApp_1_1HingeJointa2"></a><em></em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top>void&nbsp;</td><td valign=bottom><a class="el" href="classOgreRefApp_1_1HingeJoint.html#OgreRefApp_1_1HingeJointa3">setAxes</a> (const Vector3 &amp;primaryAxis, const Vector3 &amp;secondaryAxis=Vector3::ZERO)</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Sets the axes for this joint.</em> <a href="#OgreRefApp_1_1HingeJointa3"></a><em></em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top><a class="el" href="classOgreRefApp_1_1Joint.html#OgreRefApp_1_1UniversalJoints5">JointType</a>&nbsp;</td><td valign=bottom><a class="el" href="classOgreRefApp_1_1HingeJoint.html#OgreRefApp_1_1UniversalJointa4">getType</a> (void)</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Returns the type of this joint.</em> <a href="#OgreRefApp_1_1UniversalJointa4"></a><em></em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top>virtual const Vector3 &amp;&nbsp;</td><td valign=bottom><a class="el" href="classOgreRefApp_1_1HingeJoint.html#OgreRefApp_1_1UniversalJointa5">getAnchorPosition</a> (void)</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Gets the anchor position of this joint.</em> <a href="#OgreRefApp_1_1UniversalJointa5"></a><em></em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top>virtual const std::pair&lt; <a class="el" href="classOgreRefApp_1_1ApplicationObject.html">ApplicationObject</a> *,<br>
 <a class="el" href="classOgreRefApp_1_1ApplicationObject.html">ApplicationObject</a> * &gt; &amp;&nbsp;</td><td valign=bottom><a class="el" href="classOgreRefApp_1_1HingeJoint.html#OgreRefApp_1_1UniversalJointa6">getAttachments</a> (void)</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Gets the attached objects, a NULL means no object ie a static attachment.</em> <a href="#OgreRefApp_1_1UniversalJointa6"></a><em></em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top>virtual const std::pair&lt; Vector3,<br>
 Vector3 &gt; &amp;&nbsp;</td><td valign=bottom><a class="el" href="classOgreRefApp_1_1HingeJoint.html#OgreRefApp_1_1UniversalJointa7">getAxes</a> (void)</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Gets the axes of this joint.</em> <a href="#OgreRefApp_1_1UniversalJointa7"></a><em></em></font><br><br></td></tr>
<tr><td colspan=2><br><h2>Protected Methods</h2></td></tr>
<tr><td nowrap align=right valign=top>void&nbsp;</td><td valign=bottom><a class="el" href="classOgreRefApp_1_1HingeJoint.html#OgreRefApp_1_1UniversalJointb0">setAttachments</a> (<a class="el" href="classOgreRefApp_1_1ApplicationObject.html">ApplicationObject</a> *obj1, <a class="el" href="classOgreRefApp_1_1ApplicationObject.html">ApplicationObject</a> *obj2)</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Sets the objects attached to this joint.</em> <a href="#OgreRefApp_1_1UniversalJointb0"></a><em></em></font><br><br></td></tr>
<tr><td colspan=2><br><h2>Protected Attributes</h2></td></tr>
<tr><td nowrap align=right valign=top><a class="el" href="classOgreRefApp_1_1Joint.html#OgreRefApp_1_1UniversalJoints5">JointType</a>&nbsp;</td><td valign=bottom><a class="el" href="classOgreRefApp_1_1HingeJoint.html#OgreRefApp_1_1UniversalJointn0">mType</a></td></tr>
<tr><td nowrap align=right valign=top>Vector3&nbsp;</td><td valign=bottom><a class="el" href="classOgreRefApp_1_1HingeJoint.html#OgreRefApp_1_1UniversalJointn1">mAnchor</a></td></tr>
<tr><td nowrap align=right valign=top>std::pair&lt; <a class="el" href="classOgreRefApp_1_1ApplicationObject.html">ApplicationObject</a> *,<br>
 <a class="el" href="classOgreRefApp_1_1ApplicationObject.html">ApplicationObject</a> * &gt;&nbsp;</td><td valign=bottom><a class="el" href="classOgreRefApp_1_1HingeJoint.html#OgreRefApp_1_1UniversalJointn2">mAttachedObjects</a></td></tr>
<tr><td nowrap align=right valign=top>std::pair&lt; Vector3, Vector3 &gt;&nbsp;</td><td valign=bottom><a class="el" href="classOgreRefApp_1_1HingeJoint.html#OgreRefApp_1_1UniversalJointn3">mAxes</a></td></tr>
<tr><td nowrap align=right valign=top>dJoint *&nbsp;</td><td valign=bottom><a class="el" href="classOgreRefApp_1_1HingeJoint.html#OgreRefApp_1_1UniversalJointn4">mOdeJoint</a></td></tr>
</table>
<hr><a name="_details"></a><h2>Detailed Description</h2>
Implementation of hinge joint.
<p>

<p>
Definition at line <a class="el" href="OgreRefAppJointSubtypes_8h-source.html#l00081">81</a> of file <a class="el" href="OgreRefAppJointSubtypes_8h-source.html">OgreRefAppJointSubtypes.h</a>.<hr><h2>Member Enumeration Documentation</h2>
<a name="OgreRefApp_1_1UniversalJoints5" doxytag="OgreRefApp::HingeJoint::JointType"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> enum OgreRefApp::Joint::JointType<code> [inherited]</code>
      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
The type of joint.
<p>
<dl compact><dt><b>
Enumeration values:</b><dd>
<table border=0 cellspacing=2 cellpadding=0>
<tr><td valign=top><em><a name="OgreRefApp_1_1UniversalJoints5OgreRefApp_1_1UniversalJoints0" doxytag="JT_BALL"></a><em>JT_BALL</em></em>&nbsp;</td><td>
<a class="el" href="classOgreRefApp_1_1Ball.html">Ball</a> &amp; socket joint, has 3 degrees of freedom.</td></tr>
<tr><td valign=top><em><a name="OgreRefApp_1_1UniversalJoints5OgreRefApp_1_1UniversalJoints1" doxytag="JT_SLIDER"></a><em>JT_SLIDER</em></em>&nbsp;</td><td>
Sliding joint, 1 degree of freedom (in-out).</td></tr>
<tr><td valign=top><em><a name="OgreRefApp_1_1UniversalJoints5OgreRefApp_1_1UniversalJoints2" doxytag="JT_HINGE"></a><em>JT_HINGE</em></em>&nbsp;</td><td>
Hinge joint, 1 degree of freedom.</td></tr>
<tr><td valign=top><em><a name="OgreRefApp_1_1UniversalJoints5OgreRefApp_1_1UniversalJoints3" doxytag="JT_UNIVERSAL"></a><em>JT_UNIVERSAL</em></em>&nbsp;</td><td>
Universal joint, like a double-hinge, 2 degrees of freedom.</td></tr>
<tr><td valign=top><em><a name="OgreRefApp_1_1UniversalJoints5OgreRefApp_1_1UniversalJoints4" doxytag="JT_HINGE2"></a><em>JT_HINGE2</em></em>&nbsp;</td><td>
2 hinges in series, like the axel of a car</td></tr>
</table>
</dl>

<p>
Definition at line <a class="el" href="OgreRefAppJoint_8h-source.html#l00046">46</a> of file <a class="el" href="OgreRefAppJoint_8h-source.html">OgreRefAppJoint.h</a>.    </td>
  </tr>
</table>
<hr><h2>Constructor &amp; Destructor Documentation</h2>
<a name="OgreRefApp_1_1HingeJointa0" doxytag="OgreRefApp::HingeJoint::HingeJoint"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> OgreRefApp::HingeJoint::HingeJoint </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top"><a class="el" href="classOgreRefApp_1_1Joint.html#OgreRefApp_1_1UniversalJoints5">Joint::JointType</a>&nbsp;</td>
          <td class="mdname" nowrap>&nbsp; <em>jtype</em>, </td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td class="md" nowrap><a class="el" href="classOgreRefApp_1_1ApplicationObject.html">ApplicationObject</a> *&nbsp;</td>
          <td class="mdname" nowrap>&nbsp; <em>obj1</em>, </td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td class="md" nowrap><a class="el" href="classOgreRefApp_1_1ApplicationObject.html">ApplicationObject</a> *&nbsp;</td>
          <td class="mdname" nowrap>&nbsp; <em>obj2</em></td>
        </tr>
        <tr>
          <td></td>
          <td class="md">)&nbsp;</td>
          <td class="md" colspan="2"></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>

<p>
Definition at line <a class="el" href="OgreRefAppJointSubtypes_8cpp-source.html#l00064">64</a> of file <a class="el" href="OgreRefAppJointSubtypes_8cpp-source.html">OgreRefAppJointSubtypes.cpp</a>.
<p>
References <a class="el" href="OgreRefAppJoint_8h-source.html#l00111">OgreRefApp::Joint::mOdeJoint</a>, and <a class="el" href="OgreRefAppJoint_8cpp-source.html#l00051">OgreRefApp::Joint::setAttachments</a>().    </td>
  </tr>
</table>
<a name="OgreRefApp_1_1HingeJointa1" doxytag="OgreRefApp::HingeJoint::~HingeJoint"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> OgreRefApp::HingeJoint::~HingeJoint </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="mdname1" valign="top" nowrap>&nbsp;          </td>
          <td class="md" valign="top">)&nbsp;</td>
          <td class="md" nowrap></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>

<p>
Definition at line <a class="el" href="OgreRefAppJointSubtypes_8h-source.html#l00085">85</a> of file <a class="el" href="OgreRefAppJointSubtypes_8h-source.html">OgreRefAppJointSubtypes.h</a>.    </td>
  </tr>
</table>
<hr><h2>Member Function Documentation</h2>
<a name="OgreRefApp_1_1UniversalJointa5" doxytag="OgreRefApp::HingeJoint::getAnchorPosition"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> const Vector3 &amp; OgreRefApp::Joint::getAnchorPosition </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">void&nbsp;</td>
          <td class="mdname1" valign="top" nowrap>&nbsp;          </td>
          <td class="md" valign="top">)&nbsp;</td>
          <td class="md" nowrap><code> [virtual, inherited]</code></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Gets the anchor position of this joint.
<p>

<p>
Definition at line <a class="el" href="OgreRefAppJoint_8cpp-source.html#l00046">46</a> of file <a class="el" href="OgreRefAppJoint_8cpp-source.html">OgreRefAppJoint.cpp</a>.
<p>
References <a class="el" href="OgreRefAppJoint_8h-source.html#l00106">OgreRefApp::Joint::mAnchor</a>.    </td>
  </tr>
</table>
<a name="OgreRefApp_1_1UniversalJointa6" doxytag="OgreRefApp::HingeJoint::getAttachments"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> const std::pair&lt; <a class="el" href="classOgreRefApp_1_1ApplicationObject.html">ApplicationObject</a> *, <a class="el" href="classOgreRefApp_1_1ApplicationObject.html">ApplicationObject</a> * &gt; &amp; OgreRefApp::Joint::getAttachments </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">void&nbsp;</td>
          <td class="mdname1" valign="top" nowrap>&nbsp;          </td>
          <td class="md" valign="top">)&nbsp;</td>
          <td class="md" nowrap><code> [virtual, inherited]</code></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Gets the attached objects, a NULL means no object ie a static attachment.
<p>

<p>
Definition at line <a class="el" href="OgreRefAppJoint_8cpp-source.html#l00073">73</a> of file <a class="el" href="OgreRefAppJoint_8cpp-source.html">OgreRefAppJoint.cpp</a>.
<p>
References <a class="el" href="OgreRefAppJoint_8h-source.html#l00107">OgreRefApp::Joint::mAttachedObjects</a>.    </td>
  </tr>
</table>
<a name="OgreRefApp_1_1UniversalJointa7" doxytag="OgreRefApp::HingeJoint::getAxes"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> const std::pair&lt; Vector3, Vector3 &gt; &amp; OgreRefApp::Joint::getAxes </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">void&nbsp;</td>
          <td class="mdname1" valign="top" nowrap>&nbsp;          </td>
          <td class="md" valign="top">)&nbsp;</td>
          <td class="md" nowrap><code> [virtual, inherited]</code></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Gets the axes of this joint.
<p>

<p>
Definition at line <a class="el" href="OgreRefAppJoint_8cpp-source.html#l00079">79</a> of file <a class="el" href="OgreRefAppJoint_8cpp-source.html">OgreRefAppJoint.cpp</a>.
<p>
References <a class="el" href="OgreRefAppJoint_8h-source.html#l00108">OgreRefApp::Joint::mAxes</a>.    </td>
  </tr>
</table>
<a name="OgreRefApp_1_1UniversalJointa4" doxytag="OgreRefApp::HingeJoint::getType"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> <a class="el" href="classOgreRefApp_1_1Joint.html#OgreRefApp_1_1UniversalJoints5">Joint::JointType</a> OgreRefApp::Joint::getType </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">void&nbsp;</td>
          <td class="mdname1" valign="top" nowrap>&nbsp;          </td>
          <td class="md" valign="top">)&nbsp;</td>
          <td class="md" nowrap><code> [inherited]</code></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Returns the type of this joint.
<p>

<p>
Definition at line <a class="el" href="OgreRefAppJoint_8cpp-source.html#l00041">41</a> of file <a class="el" href="OgreRefAppJoint_8cpp-source.html">OgreRefAppJoint.cpp</a>.
<p>
References <a class="el" href="OgreRefAppJoint_8h-source.html#l00105">OgreRefApp::Joint::mType</a>.    </td>
  </tr>
</table>
<a name="OgreRefApp_1_1HingeJointa2" doxytag="OgreRefApp::HingeJoint::setAnchorPosition"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> void OgreRefApp::HingeJoint::setAnchorPosition </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">const Vector3 &amp;&nbsp;</td>
          <td class="mdname1" valign="top" nowrap>&nbsp; <em>point</em>          </td>
          <td class="md" valign="top">)&nbsp;</td>
          <td class="md" nowrap><code> [virtual]</code></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Set the anchor point of this joint.
<p>

<p>
Implements <a class="el" href="classOgreRefApp_1_1Joint.html#OgreRefApp_1_1Jointa3">OgreRefApp::Joint</a>.
<p>
Definition at line <a class="el" href="OgreRefAppJointSubtypes_8cpp-source.html#l00071">71</a> of file <a class="el" href="OgreRefAppJointSubtypes_8cpp-source.html">OgreRefAppJointSubtypes.cpp</a>.
<p>
References <a class="el" href="OgreRefAppJoint_8h-source.html#l00106">OgreRefApp::Joint::mAnchor</a>.    </td>
  </tr>
</table>
<a name="OgreRefApp_1_1UniversalJointb0" doxytag="OgreRefApp::HingeJoint::setAttachments"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> void OgreRefApp::Joint::setAttachments </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top"><a class="el" href="classOgreRefApp_1_1ApplicationObject.html">ApplicationObject</a> *&nbsp;</td>
          <td class="mdname" nowrap>&nbsp; <em>obj1</em>, </td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td class="md" nowrap><a class="el" href="classOgreRefApp_1_1ApplicationObject.html">ApplicationObject</a> *&nbsp;</td>
          <td class="mdname" nowrap>&nbsp; <em>obj2</em></td>
        </tr>
        <tr>
          <td></td>
          <td class="md">)&nbsp;</td>
          <td class="md" colspan="2"><code> [protected, inherited]</code></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Sets the objects attached to this joint.
<p>
<dl compact><dt><b>
Remarks: </b><dd>
 It appears that this has to be set before other joint params like anchor etc, otherwise the joint does not behave. Therefore it is internal and is called during construction. </dl>
<p>
Definition at line <a class="el" href="OgreRefAppJoint_8cpp-source.html#l00051">51</a> of file <a class="el" href="OgreRefAppJoint_8cpp-source.html">OgreRefAppJoint.cpp</a>.
<p>
References <a class="el" href="OgreRefAppApplicationObject_8cpp-source.html#l00300">OgreRefApp::ApplicationObject::getOdeBody</a>(), <a class="el" href="OgreRefAppJoint_8h-source.html#l00107">OgreRefApp::Joint::mAttachedObjects</a>, and <a class="el" href="OgreRefAppJoint_8h-source.html#l00111">OgreRefApp::Joint::mOdeJoint</a>.
<p>
Referenced by <a class="el" href="OgreRefAppJointSubtypes_8cpp-source.html#l00031">OgreRefApp::BallJoint::BallJoint</a>(), <a class="el" href="OgreRefAppJointSubtypes_8cpp-source.html#l00110">OgreRefApp::Hinge2Joint::Hinge2Joint</a>(), <a class="el" href="OgreRefAppJointSubtypes_8cpp-source.html#l00064">HingeJoint</a>(), <a class="el" href="OgreRefAppJointSubtypes_8cpp-source.html#l00047">OgreRefApp::SliderJoint::SliderJoint</a>(), and <a class="el" href="OgreRefAppJointSubtypes_8cpp-source.html#l00086">OgreRefApp::UniversalJoint::UniversalJoint</a>().    </td>
  </tr>
</table>
<a name="OgreRefApp_1_1HingeJointa3" doxytag="OgreRefApp::HingeJoint::setAxes"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> void OgreRefApp::HingeJoint::setAxes </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">const Vector3 &amp;&nbsp;</td>
          <td class="mdname" nowrap>&nbsp; <em>primaryAxis</em>, </td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td class="md" nowrap>const Vector3 &amp;&nbsp;</td>
          <td class="mdname" nowrap>&nbsp; <em>secondaryAxis</em> = Vector3::ZERO</td>
        </tr>
        <tr>
          <td></td>
          <td class="md">)&nbsp;</td>
          <td class="md" colspan="2"><code> [virtual]</code></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Sets the axes for this joint.
<p>
<dl compact><dt><b>
Remarks: </b><dd>
 The meaning of axes for a joint depends on it's type: <ul>
<li>For JT_BALL, it has no meaning and you don't need to call it. <li>For JT_SLIDER, only one is applicable and it's the axis along which the slide occurs.  <li>For JT_HINGE, only one is applicable and it's the hinge axis.  <li>For JT_UNIVERSAL, and JT_HINGE2 it's the 2 hinge axes. </ul>
</dl>
<p>
Implements <a class="el" href="classOgreRefApp_1_1Joint.html#OgreRefApp_1_1Jointa6">OgreRefApp::Joint</a>.
<p>
Definition at line <a class="el" href="OgreRefAppJointSubtypes_8cpp-source.html#l00078">78</a> of file <a class="el" href="OgreRefAppJointSubtypes_8cpp-source.html">OgreRefAppJointSubtypes.cpp</a>.
<p>
References <a class="el" href="OgreRefAppJoint_8h-source.html#l00108">OgreRefApp::Joint::mAxes</a>.    </td>
  </tr>
</table>
<hr><h2>Member Data Documentation</h2>
<a name="OgreRefApp_1_1UniversalJointn1" doxytag="OgreRefApp::HingeJoint::mAnchor"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> Vector3 OgreRefApp::Joint::mAnchor<code> [protected, inherited]</code>
      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>

<p>
Definition at line <a class="el" href="OgreRefAppJoint_8h-source.html#l00106">106</a> of file <a class="el" href="OgreRefAppJoint_8h-source.html">OgreRefAppJoint.h</a>.
<p>
Referenced by <a class="el" href="OgreRefAppJoint_8cpp-source.html#l00046">OgreRefApp::Joint::getAnchorPosition</a>(), <a class="el" href="OgreRefAppJointSubtypes_8cpp-source.html#l00117">OgreRefApp::Hinge2Joint::setAnchorPosition</a>(), <a class="el" href="OgreRefAppJointSubtypes_8cpp-source.html#l00093">OgreRefApp::UniversalJoint::setAnchorPosition</a>(), <a class="el" href="OgreRefAppJointSubtypes_8cpp-source.html#l00071">setAnchorPosition</a>(), and <a class="el" href="OgreRefAppJointSubtypes_8cpp-source.html#l00038">OgreRefApp::BallJoint::setAnchorPosition</a>().    </td>
  </tr>
</table>
<a name="OgreRefApp_1_1UniversalJointn2" doxytag="OgreRefApp::HingeJoint::mAttachedObjects"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> std::pair&lt;<a class="el" href="classOgreRefApp_1_1ApplicationObject.html">ApplicationObject</a>*, <a class="el" href="classOgreRefApp_1_1ApplicationObject.html">ApplicationObject</a>*&gt; OgreRefApp::Joint::mAttachedObjects<code> [protected, inherited]</code>
      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>

<p>
Definition at line <a class="el" href="OgreRefAppJoint_8h-source.html#l00107">107</a> of file <a class="el" href="OgreRefAppJoint_8h-source.html">OgreRefAppJoint.h</a>.
<p>
Referenced by <a class="el" href="OgreRefAppJoint_8cpp-source.html#l00073">OgreRefApp::Joint::getAttachments</a>(), and <a class="el" href="OgreRefAppJoint_8cpp-source.html#l00051">OgreRefApp::Joint::setAttachments</a>().    </td>
  </tr>
</table>
<a name="OgreRefApp_1_1UniversalJointn3" doxytag="OgreRefApp::HingeJoint::mAxes"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> std::pair&lt;Vector3, Vector3&gt; OgreRefApp::Joint::mAxes<code> [protected, inherited]</code>
      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>

<p>
Definition at line <a class="el" href="OgreRefAppJoint_8h-source.html#l00108">108</a> of file <a class="el" href="OgreRefAppJoint_8h-source.html">OgreRefAppJoint.h</a>.
<p>
Referenced by <a class="el" href="OgreRefAppJoint_8cpp-source.html#l00079">OgreRefApp::Joint::getAxes</a>(), <a class="el" href="OgreRefAppJoint_8cpp-source.html#l00031">OgreRefApp::Joint::Joint</a>(), <a class="el" href="OgreRefAppJointSubtypes_8cpp-source.html#l00124">OgreRefApp::Hinge2Joint::setAxes</a>(), <a class="el" href="OgreRefAppJointSubtypes_8cpp-source.html#l00100">OgreRefApp::UniversalJoint::setAxes</a>(), <a class="el" href="OgreRefAppJointSubtypes_8cpp-source.html#l00078">setAxes</a>(), and <a class="el" href="OgreRefAppJointSubtypes_8cpp-source.html#l00055">OgreRefApp::SliderJoint::setAxes</a>().    </td>
  </tr>
</table>
<a name="OgreRefApp_1_1UniversalJointn4" doxytag="OgreRefApp::HingeJoint::mOdeJoint"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> dJoint* OgreRefApp::Joint::mOdeJoint<code> [protected, inherited]</code>
      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>

<p>
Definition at line <a class="el" href="OgreRefAppJoint_8h-source.html#l00111">111</a> of file <a class="el" href="OgreRefAppJoint_8h-source.html">OgreRefAppJoint.h</a>.
<p>
Referenced by <a class="el" href="OgreRefAppJointSubtypes_8cpp-source.html#l00031">OgreRefApp::BallJoint::BallJoint</a>(), <a class="el" href="OgreRefAppJointSubtypes_8cpp-source.html#l00110">OgreRefApp::Hinge2Joint::Hinge2Joint</a>(), <a class="el" href="OgreRefAppJointSubtypes_8cpp-source.html#l00064">HingeJoint</a>(), <a class="el" href="OgreRefAppJoint_8cpp-source.html#l00051">OgreRefApp::Joint::setAttachments</a>(), <a class="el" href="OgreRefAppJointSubtypes_8cpp-source.html#l00047">OgreRefApp::SliderJoint::SliderJoint</a>(), and <a class="el" href="OgreRefAppJointSubtypes_8cpp-source.html#l00086">OgreRefApp::UniversalJoint::UniversalJoint</a>().    </td>
  </tr>
</table>
<a name="OgreRefApp_1_1UniversalJointn0" doxytag="OgreRefApp::HingeJoint::mType"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> <a class="el" href="classOgreRefApp_1_1Joint.html#OgreRefApp_1_1UniversalJoints5">JointType</a> OgreRefApp::Joint::mType<code> [protected, inherited]</code>
      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>

<p>
Definition at line <a class="el" href="OgreRefAppJoint_8h-source.html#l00105">105</a> of file <a class="el" href="OgreRefAppJoint_8h-source.html">OgreRefAppJoint.h</a>.
<p>
Referenced by <a class="el" href="OgreRefAppJoint_8cpp-source.html#l00041">OgreRefApp::Joint::getType</a>().    </td>
  </tr>
</table>
<hr>The documentation for this class was generated from the following files:<ul>
<li><a class="el" href="OgreRefAppJointSubtypes_8h-source.html">OgreRefAppJointSubtypes.h</a><li><a class="el" href="OgreRefAppJointSubtypes_8cpp-source.html">OgreRefAppJointSubtypes.cpp</a></ul>
<p>
Copyright &copy; 2002-2003 by The OGRE Team<br />
Last modified Wed Jan 21 00:21:44 2004
</p>
</body>
</html>