00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015 INLINE LVecBase3f OdeContactGeom::
00016 get_pos() const {
00017 return LVecBase3f(_contact_geom.pos[0],
00018 _contact_geom.pos[1],
00019 _contact_geom.pos[2]);
00020 }
00021
00022 INLINE LVecBase3f OdeContactGeom::
00023 get_normal() const {
00024 return LVecBase3f(_contact_geom.normal[0],
00025 _contact_geom.normal[1],
00026 _contact_geom.normal[2]);
00027 }
00028
00029 INLINE dReal OdeContactGeom::
00030 get_depth() const {
00031 return _contact_geom.depth;
00032 }
00033
00034 INLINE OdeGeom OdeContactGeom::
00035 get_g1() const {
00036 return OdeGeom(_contact_geom.g1);
00037 }
00038
00039 INLINE OdeGeom OdeContactGeom::
00040 get_g2() const {
00041 return OdeGeom(_contact_geom.g2);
00042 }
00043
00044 INLINE int OdeContactGeom::
00045 get_side1() const {
00046 return _contact_geom.side1;
00047 }
00048
00049 INLINE int OdeContactGeom::
00050 get_side2() const {
00051 return _contact_geom.side2;
00052 }
00053
00054 INLINE void OdeContactGeom::
00055 set_pos(const LVecBase3f &pos){
00056 _contact_geom.pos[0] = pos[0];
00057 _contact_geom.pos[1] = pos[1];
00058 _contact_geom.pos[2] = pos[2];
00059 }
00060
00061 INLINE void OdeContactGeom::
00062 set_normal(const LVecBase3f &normal){
00063 _contact_geom.normal[0] = normal[0];
00064 _contact_geom.normal[1] = normal[1];
00065 _contact_geom.normal[2] = normal[2];
00066 }
00067
00068 INLINE void OdeContactGeom::
00069 set_depth(const dReal depth){
00070 _contact_geom.depth = depth;
00071 }
00072
00073 INLINE void OdeContactGeom::
00074 set_g1(const OdeGeom &geom){
00075 _contact_geom.g1 = geom._id;
00076 }
00077
00078 INLINE void OdeContactGeom::
00079 set_g2(const OdeGeom &geom){
00080 _contact_geom.g2 = geom._id;
00081 }