Panda3D
 All Classes Functions Variables Enumerations
odeHingeJoint.cxx
1 // Filename: odeHingeJoint.cxx
2 // Created by: joswilso (27Dec06)
3 //
4 ////////////////////////////////////////////////////////////////////
5 //
6 // PANDA 3D SOFTWARE
7 // Copyright (c) Carnegie Mellon University. All rights reserved.
8 //
9 // All use of this software is subject to the terms of the revised BSD
10 // license. You should have received a copy of this license along
11 // with this source code in a file named "LICENSE."
12 //
13 ////////////////////////////////////////////////////////////////////
14 
15 #include "config_ode.h"
16 #include "odeHingeJoint.h"
17 
18 TypeHandle OdeHingeJoint::_type_handle;
19 
20 OdeHingeJoint::
21 OdeHingeJoint(dJointID id) :
22  OdeJoint(id) {
23 }
24 
25 OdeHingeJoint::
26 OdeHingeJoint(OdeWorld &world) :
27  OdeJoint(dJointCreateHinge(world.get_id(), 0)) {
28 }
29 
30 OdeHingeJoint::
31 OdeHingeJoint(OdeWorld &world, OdeJointGroup &joint_group) :
32  OdeJoint(dJointCreateHinge(world.get_id(), joint_group.get_id())) {
33 }
34 
35 OdeHingeJoint::
36 ~OdeHingeJoint() {
37 }
TypeHandle is the identifier used to differentiate C++ class types.
Definition: typeHandle.h:85
dJointID get_id() const
Returns the underlying dJointID.
Definition: odeJoint.I:34