Panda3D
|
00001 // Filename: odeContact.I 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 INLINE OdeSurfaceParameters OdeContact:: 00016 get_surface() const { 00017 return OdeSurfaceParameters(_contact.surface); 00018 } 00019 00020 INLINE OdeContactGeom OdeContact:: 00021 get_geom() { 00022 return OdeContactGeom(_contact.geom); 00023 } 00024 00025 INLINE LVecBase3f OdeContact:: 00026 get_fdir1() const { 00027 return LVecBase3f(_contact.fdir1[0], 00028 _contact.fdir1[1], 00029 _contact.fdir1[2]); 00030 } 00031 00032 00033 INLINE void OdeContact:: 00034 set_surface(const OdeSurfaceParameters &surface_parameters) { 00035 _contact.surface = *(surface_parameters.get_surface_parameters_ptr()); 00036 } 00037 00038 INLINE void OdeContact:: 00039 set_geom(const OdeContactGeom &contact_geom) { 00040 _contact.geom = *(contact_geom.get_contact_geom_ptr()); 00041 } 00042 00043 INLINE void OdeContact:: 00044 set_fdir1(const LVecBase3f &fdir1) { 00045 _contact.fdir1[0] = fdir1[0]; 00046 _contact.fdir1[1] = fdir1[1]; 00047 _contact.fdir1[2] = fdir1[2]; 00048 } 00049 00050