Panda3D
 All Classes Functions Variables Enumerations
odeContactGeom.cxx
1 // Filename: odeContactGeom.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 "odeContactGeom.h"
17 
18 TypeHandle OdeContactGeom::_type_handle;
19 
20 OdeContactGeom::
21 OdeContactGeom() :
22  _contact_geom() {
23 }
24 
25 OdeContactGeom::
26 OdeContactGeom(const OdeContactGeom &copy) :
27  _contact_geom() {
28  *this = copy._contact_geom;
29 }
30 
31 OdeContactGeom::
32 OdeContactGeom(const dContactGeom &copy) :
33  _contact_geom() {
34  *this = copy;
35 }
36 
37 OdeContactGeom::
38 ~OdeContactGeom() {
39 }
40 
41 const dContactGeom* OdeContactGeom::
42 get_contact_geom_ptr() const {
43  return &_contact_geom;
44 }
45 
46 void OdeContactGeom::
47 operator = (const OdeContactGeom &copy) {
48  *this = copy._contact_geom;
49 }
50 
51 void OdeContactGeom::
52 operator = (const dContactGeom &contact_geom) {
53  _contact_geom.pos[0] = contact_geom.pos[0];
54  _contact_geom.pos[1] = contact_geom.pos[1];
55  _contact_geom.pos[2] = contact_geom.pos[2];
56  _contact_geom.normal[0] = contact_geom.normal[0];
57  _contact_geom.normal[1] = contact_geom.normal[1];
58  _contact_geom.normal[2] = contact_geom.normal[2];
59  _contact_geom.depth = contact_geom.depth;
60  _contact_geom.g1 = contact_geom.g1;
61  _contact_geom.g2 = contact_geom.g2;
62  _contact_geom.side1 = contact_geom.side1;
63  _contact_geom.side2 = contact_geom.side2;
64 }
65 
TypeHandle is the identifier used to differentiate C++ class types.
Definition: typeHandle.h:85