Panda3D

odeContactGeom.cxx

00001 // Filename: odeContactGeom.cxx
00002 // Created by:  joswilso (27Dec06)
00003 //
00004 ////////////////////////////////////////////////////////////////////
00005 //
00006 // PANDA 3D SOFTWARE
00007 // Copyright (c) Carnegie Mellon University.  All rights reserved.
00008 //
00009 // All use of this software is subject to the terms of the revised BSD
00010 // license.  You should have received a copy of this license along
00011 // with this source code in a file named "LICENSE."
00012 //
00013 ////////////////////////////////////////////////////////////////////
00014 
00015 #include "config_ode.h"
00016 #include "odeContactGeom.h"
00017 
00018 TypeHandle OdeContactGeom::_type_handle;
00019 
00020 OdeContactGeom::
00021 OdeContactGeom() : 
00022   _contact_geom() {
00023 }
00024 
00025 OdeContactGeom::
00026 OdeContactGeom(const OdeContactGeom &copy) : 
00027   _contact_geom() {
00028   *this = copy._contact_geom;
00029 }
00030 
00031 OdeContactGeom::
00032 OdeContactGeom(const dContactGeom &copy) : 
00033   _contact_geom() {
00034   *this = copy;
00035 }
00036 
00037 OdeContactGeom::
00038 ~OdeContactGeom() {
00039 }
00040 
00041 const dContactGeom* OdeContactGeom::
00042 get_contact_geom_ptr() const {
00043   return &_contact_geom;
00044 }
00045 
00046 void OdeContactGeom::
00047 operator = (const OdeContactGeom &copy) {
00048   *this = copy._contact_geom;
00049 }
00050 
00051 void OdeContactGeom::
00052 operator = (const dContactGeom &contact_geom) {
00053   _contact_geom.pos[0] = contact_geom.pos[0];
00054   _contact_geom.pos[1] = contact_geom.pos[1];
00055   _contact_geom.pos[2] = contact_geom.pos[2];
00056   _contact_geom.normal[0] = contact_geom.normal[0];
00057   _contact_geom.normal[1] = contact_geom.normal[1];
00058   _contact_geom.normal[2] = contact_geom.normal[2];
00059   _contact_geom.depth = contact_geom.depth;
00060   _contact_geom.g1 = contact_geom.g1;
00061   _contact_geom.g2 = contact_geom.g2;
00062   _contact_geom.side1 = contact_geom.side1;
00063   _contact_geom.side2 = contact_geom.side2;
00064 }
00065 
 All Classes Functions Variables Enumerations