00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
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