Panda3D

odeContactGeom.cxx
Go to the documentation of this file.
1 /**
2 * PANDA 3D SOFTWARE
3 * Copyright (c) Carnegie Mellon University. All rights reserved.
4 *
5 * All use of this software is subject to the terms of the revised BSD
6 * license. You should have received a copy of this license along
7 * with this source code in a file named "LICENSE."
8 *
9 * @file odeContactGeom.cxx
10 * @author joswilso
11 * @date 2006-12-27
12 */
13
14 #include "config_ode.h"
15 #include "odeContactGeom.h"
16
17 TypeHandle OdeContactGeom::_type_handle;
18
19 OdeContactGeom::
20 OdeContactGeom() :
21 _contact_geom() {
22 }
23
24 OdeContactGeom::
25 OdeContactGeom(const OdeContactGeom &copy) :
26 _contact_geom() {
27 *this = copy._contact_geom;
28 }
29
30 OdeContactGeom::
31 OdeContactGeom(const dContactGeom &copy) :
32 _contact_geom() {
33 *this = copy;
34 }
35
36 OdeContactGeom::
37 ~OdeContactGeom() {
38 }
39
40 const dContactGeom* OdeContactGeom::
41 get_contact_geom_ptr() const {
42 return &_contact_geom;
43 }
44
45 void OdeContactGeom::
46 operator = (const OdeContactGeom &copy) {
47 *this = copy._contact_geom;
48 }
49
50 void OdeContactGeom::
51 operator = (const dContactGeom &contact_geom) {
52 _contact_geom.pos[0] = contact_geom.pos[0];
53 _contact_geom.pos[1] = contact_geom.pos[1];
54 _contact_geom.pos[2] = contact_geom.pos[2];
55 _contact_geom.normal[0] = contact_geom.normal[0];
56 _contact_geom.normal[1] = contact_geom.normal[1];
57 _contact_geom.normal[2] = contact_geom.normal[2];
58 _contact_geom.depth = contact_geom.depth;
59 _contact_geom.g1 = contact_geom.g1;
60 _contact_geom.g2 = contact_geom.g2;
61 _contact_geom.side1 = contact_geom.side1;
62 _contact_geom.side2 = contact_geom.side2;
63 }
OdeContactGeom
Definition: odeContactGeom.h:30
TypeHandle
TypeHandle is the identifier used to differentiate C++ class types.
Definition: typeHandle.h:81
config_ode.h
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
odeContactGeom.h
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.