Sophie

Sophie

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

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

<html>
<head>
<title>OgreRefApp::Joint 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::Joint  Class Reference</h1>Represents a linkage between application objects or between them and the world, enforcing certain constraints. 
<a href="#_details">More...</a>
<p>
<code>#include &lt;<a class="el" href="OgreRefAppJoint_8h-source.html">OgreRefAppJoint.h</a>&gt;</code>
<p>
Inheritance diagram for OgreRefApp::Joint:<p><center><img src="classOgreRefApp_1_1Joint__inherit__graph.png" border="0" usemap="#OgreRefApp_1_1Joint__inherit__map" alt="Inheritance graph"></center>
<map name="OgreRefApp_1_1Joint__inherit__map">
<area href="classOgreRefApp_1_1BallJoint.html" shape="rect" coords="201,24,343,5" alt="">
<area href="classOgreRefApp_1_1Hinge2Joint.html" shape="rect" coords="193,66,351,48" alt="">
<area href="classOgreRefApp_1_1HingeJoint.html" shape="rect" coords="196,109,348,90" alt="">
<area href="classOgreRefApp_1_1SliderJoint.html" shape="rect" coords="196,152,348,133" alt="">
<area href="classOgreRefApp_1_1UniversalJoint.html" shape="rect" coords="185,194,359,176" alt="">
</map>
<center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center><a href="classOgreRefApp_1_1Joint-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_1Joint.html#OgreRefApp_1_1UniversalJoints5">JointType</a> { <br>
&nbsp;&nbsp;<a class="el" href="classOgreRefApp_1_1Joint.html#OgreRefApp_1_1UniversalJoints5OgreRefApp_1_1UniversalJoints0">JT_BALL</a>, 
<a class="el" href="classOgreRefApp_1_1Joint.html#OgreRefApp_1_1UniversalJoints5OgreRefApp_1_1UniversalJoints1">JT_SLIDER</a>, 
<a class="el" href="classOgreRefApp_1_1Joint.html#OgreRefApp_1_1UniversalJoints5OgreRefApp_1_1UniversalJoints2">JT_HINGE</a>, 
<a class="el" href="classOgreRefApp_1_1Joint.html#OgreRefApp_1_1UniversalJoints5OgreRefApp_1_1UniversalJoints3">JT_UNIVERSAL</a>, 
<br>
&nbsp;&nbsp;<a class="el" href="classOgreRefApp_1_1Joint.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_1Joint.html#OgreRefApp_1_1Jointa0">Joint</a> (<a class="el" href="classOgreRefApp_1_1Joint.html#OgreRefApp_1_1UniversalJoints5">JointType</a> jtype)</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Constructor, however you should use World::createJoint(type, obj1, obj2).</em> <a href="#OgreRefApp_1_1Jointa0"></a><em></em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top>virtual&nbsp;</td><td valign=bottom><a class="el" href="classOgreRefApp_1_1Joint.html#OgreRefApp_1_1Jointa1">~Joint</a> ()</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_1Joint.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 void&nbsp;</td><td valign=bottom><a class="el" href="classOgreRefApp_1_1Joint.html#OgreRefApp_1_1Jointa3">setAnchorPosition</a> (const Vector3 &amp;point)=0</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Set the anchor point of this joint.</em> <a href="#OgreRefApp_1_1Jointa3"></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_1Joint.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_1Joint.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 void&nbsp;</td><td valign=bottom><a class="el" href="classOgreRefApp_1_1Joint.html#OgreRefApp_1_1Jointa6">setAxes</a> (const Vector3 &amp;primaryAxis, const Vector3 &amp;secondaryAxis=Vector3::ZERO)=0</td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Sets the axes for this joint.</em> <a href="#OgreRefApp_1_1Jointa6"></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_1Joint.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_1Joint.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_1Joint.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_1Joint.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_1Joint.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_1Joint.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_1Joint.html#OgreRefApp_1_1UniversalJointn4">mOdeJoint</a></td></tr>
</table>
<hr><a name="_details"></a><h2>Detailed Description</h2>
Represents a linkage between application objects or between them and the world, enforcing certain constraints.
<p>
<dl compact><dt><b>
Remarks: </b><dd>
 Joints can be used to link application objects together, or to link them to a static point in the world according to certain constraints. You should create joints using  <a class="el" href="classOgreRefApp_1_1World.html#OgreRefApp_1_1Worlda16">World::createJoint</a>. You should then set certain global options, like it's world anchor position, before attaching it to application objects. You application objects should already be positioned how you would like relative to the joint anchor, since once they are attached, they will be constrained by it. </dl>
<p>

<p>
Definition at line <a class="el" href="OgreRefAppJoint_8h-source.html#l00042">42</a> of file <a class="el" href="OgreRefAppJoint_8h-source.html">OgreRefAppJoint.h</a>.<hr><h2>Member Enumeration Documentation</h2>
<a name="OgreRefApp_1_1UniversalJoints5" doxytag="OgreRefApp::Joint::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
      </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_1Jointa0" doxytag="OgreRefApp::Joint::Joint"></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::Joint::Joint </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">JointType</a>&nbsp;</td>
          <td class="mdname1" valign="top" nowrap>&nbsp; <em>jtype</em>          </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>
Constructor, however you should use World::createJoint(type, obj1, obj2).
<p>

<p>
Definition at line <a class="el" href="OgreRefAppJoint_8cpp-source.html#l00031">31</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">mAxes</a>.    </td>
  </tr>
</table>
<a name="OgreRefApp_1_1Jointa1" doxytag="OgreRefApp::Joint::~Joint"></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"> virtual OgreRefApp::Joint::~Joint </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><code> [virtual]</code></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="OgreRefAppJoint_8h-source.html#l00060">60</a> of file <a class="el" href="OgreRefAppJoint_8h-source.html">OgreRefAppJoint.h</a>.    </td>
  </tr>
</table>
<hr><h2>Member Function Documentation</h2>
<a name="OgreRefApp_1_1UniversalJointa5" doxytag="OgreRefApp::Joint::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]</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">mAnchor</a>.    </td>
  </tr>
</table>
<a name="OgreRefApp_1_1UniversalJointa6" doxytag="OgreRefApp::Joint::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]</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">mAttachedObjects</a>.    </td>
  </tr>
</table>
<a name="OgreRefApp_1_1UniversalJointa7" doxytag="OgreRefApp::Joint::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]</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">mAxes</a>.    </td>
  </tr>
</table>
<a name="OgreRefApp_1_1UniversalJointa4" doxytag="OgreRefApp::Joint::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></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">mType</a>.    </td>
  </tr>
</table>
<a name="OgreRefApp_1_1Jointa3" doxytag="OgreRefApp::Joint::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"> virtual void OgreRefApp::Joint::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> [pure 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>
<dl compact><dt><b>
Remarks: </b><dd>
 Sets the location, in world space, of the anchor point of this joint, which is usually  the hinge point or just the origin of joint. It has no meaning for JT_SLIDER and thus you don't need to call it for that. </dl>
<p>
Implemented in <a class="el" href="classOgreRefApp_1_1BallJoint.html#OgreRefApp_1_1BallJointa2">OgreRefApp::BallJoint</a>, <a class="el" href="classOgreRefApp_1_1SliderJoint.html#OgreRefApp_1_1SliderJointa2">OgreRefApp::SliderJoint</a>, <a class="el" href="classOgreRefApp_1_1HingeJoint.html#OgreRefApp_1_1HingeJointa2">OgreRefApp::HingeJoint</a>, <a class="el" href="classOgreRefApp_1_1UniversalJoint.html#OgreRefApp_1_1UniversalJointa2">OgreRefApp::UniversalJoint</a>, and <a class="el" href="classOgreRefApp_1_1Hinge2Joint.html#OgreRefApp_1_1Hinge2Jointa2">OgreRefApp::Hinge2Joint</a>.    </td>
  </tr>
</table>
<a name="OgreRefApp_1_1UniversalJointb0" doxytag="OgreRefApp::Joint::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]</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">mAttachedObjects</a>, and <a class="el" href="OgreRefAppJoint_8h-source.html#l00111">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">OgreRefApp::HingeJoint::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_1Jointa6" doxytag="OgreRefApp::Joint::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"> virtual void OgreRefApp::Joint::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> [pure 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>
Implemented in <a class="el" href="classOgreRefApp_1_1BallJoint.html#OgreRefApp_1_1BallJointa3">OgreRefApp::BallJoint</a>, <a class="el" href="classOgreRefApp_1_1SliderJoint.html#OgreRefApp_1_1SliderJointa3">OgreRefApp::SliderJoint</a>, <a class="el" href="classOgreRefApp_1_1HingeJoint.html#OgreRefApp_1_1HingeJointa3">OgreRefApp::HingeJoint</a>, <a class="el" href="classOgreRefApp_1_1UniversalJoint.html#OgreRefApp_1_1UniversalJointa3">OgreRefApp::UniversalJoint</a>, and <a class="el" href="classOgreRefApp_1_1Hinge2Joint.html#OgreRefApp_1_1Hinge2Jointa3">OgreRefApp::Hinge2Joint</a>.    </td>
  </tr>
</table>
<hr><h2>Member Data Documentation</h2>
<a name="OgreRefApp_1_1UniversalJointn1" doxytag="OgreRefApp::Joint::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]</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">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">OgreRefApp::HingeJoint::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::Joint::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]</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">getAttachments</a>(), and <a class="el" href="OgreRefAppJoint_8cpp-source.html#l00051">setAttachments</a>().    </td>
  </tr>
</table>
<a name="OgreRefApp_1_1UniversalJointn3" doxytag="OgreRefApp::Joint::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]</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">getAxes</a>(), <a class="el" href="OgreRefAppJoint_8cpp-source.html#l00031">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">OgreRefApp::HingeJoint::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::Joint::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]</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">OgreRefApp::HingeJoint::HingeJoint</a>(), <a class="el" href="OgreRefAppJoint_8cpp-source.html#l00051">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::Joint::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]</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">getType</a>().    </td>
  </tr>
</table>
<hr>The documentation for this class was generated from the following files:<ul>
<li><a class="el" href="OgreRefAppJoint_8h-source.html">OgreRefAppJoint.h</a><li><a class="el" href="OgreRefAppJoint_8cpp-source.html">OgreRefAppJoint.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>