Panda3D
 All Classes Functions Variables Enumerations
odeContactJoint.cxx
1 // Filename: odeContactJoint.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 "odeContactJoint.h"
17 
18 TypeHandle OdeContactJoint::_type_handle;
19 
20 OdeContactJoint::
21 OdeContactJoint(dJointID id) :
22  OdeJoint(id) {
23 }
24 
25 OdeContactJoint::
26 OdeContactJoint(OdeWorld &world, const OdeContact &contact) :
27  OdeJoint(dJointCreateContact(world.get_id(), 0, contact.get_contact_ptr())) {
28 }
29 
30 OdeContactJoint::
31 OdeContactJoint(OdeWorld &world, OdeJointGroup &joint_group, const OdeContact &contact) :
32  OdeJoint(dJointCreateContact(world.get_id(), joint_group.get_id(), contact.get_contact_ptr())) {
33 }
34 
35 OdeContactJoint::
36 ~OdeContactJoint() {
37 }
TypeHandle is the identifier used to differentiate C++ class types.
Definition: typeHandle.h:85