14 INLINE LVecBase3f OdeContactGeom::
16 return LVecBase3f(_contact_geom.pos[0],
18 _contact_geom.pos[2]);
21 INLINE LVecBase3f OdeContactGeom::
23 return LVecBase3f(_contact_geom.normal[0],
24 _contact_geom.normal[1],
25 _contact_geom.normal[2]);
28 INLINE dReal OdeContactGeom::
30 return _contact_geom.depth;
35 return OdeGeom(_contact_geom.g1);
40 return OdeGeom(_contact_geom.g2);
43 INLINE
int OdeContactGeom::
45 return _contact_geom.side1;
48 INLINE
int OdeContactGeom::
50 return _contact_geom.side2;
53 INLINE
void OdeContactGeom::
54 set_pos(
const LVecBase3f &pos){
55 _contact_geom.pos[0] = pos[0];
56 _contact_geom.pos[1] = pos[1];
57 _contact_geom.pos[2] = pos[2];
60 INLINE
void OdeContactGeom::
61 set_normal(
const LVecBase3f &normal){
62 _contact_geom.normal[0] = normal[0];
63 _contact_geom.normal[1] = normal[1];
64 _contact_geom.normal[2] = normal[2];
67 INLINE
void OdeContactGeom::
68 set_depth(
const dReal depth){
69 _contact_geom.depth = depth;
72 INLINE
void OdeContactGeom::
74 _contact_geom.g1 = geom._id;
77 INLINE
void OdeContactGeom::
79 _contact_geom.g2 = geom._id;