~robot3d-team/robot3d/trunk

« back to all changes in this revision

Viewing changes to inc/srActuator/HingeUniKarl.h

  • Committer: Anne van Rossum
  • Date: 2010-08-10 15:58:55 UTC
  • Revision ID: anne@gamix-20100810155855-kve7x2vwouagdij9
Initial import

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
//! Specialized hinge class.
 
2
 
 
3
/*!
 
4
 * Predefined hinge class. Ready to use in a RobotActor.
 
5
 *
 
6
 * @author Lutz Winkler
 
7
 *
 
8
 */
 
9
 
 
10
 
 
11
 
 
12
#ifndef MYHINGE_H_
 
13
#define MYHINGE_H_
 
14
 
 
15
#include <srCore/actuator/hingeActuator.h>
 
16
 
 
17
namespace srCore {
 
18
 
 
19
class HingeUniKarl : public HingeActuator
 
20
{
 
21
public:
 
22
 
 
23
        //! Constructor
 
24
        /*! @param body1, body2                                         the bodies the hinge is attached to.
 
25
         *      @param anchorX, anchorY, anchorZ                the position of the hinge in the world coordinate system.
 
26
         *  @param axisX, axisY, axisZ                          the orientation of the axis of the hinge in the world coordinate system.
 
27
         *
 
28
         */
 
29
        HingeUniKarl(dtCore::RefPtr<BodyBase> myBody1, dtCore::RefPtr<BodyBase> myBody2,
 
30
                        float anchorX, float anchorY, float anchorZ,
 
31
                        float axisX, float axisY, float axisZ,
 
32
                        const std::string &hingeName = "ukaHinge");
 
33
 
 
34
        virtual ~HingeUniKarl();
 
35
 
 
36
 
 
37
 
 
38
};
 
39
}
 
40
#endif /*MYHINGE_H_*/