14 INLINE
void OdeRayGeom::
15 set_length(dReal length) {
16 dGeomRaySetLength(_id, length);
19 INLINE dReal OdeRayGeom::
21 return dGeomRayGetLength(_id);
24 INLINE
void OdeRayGeom::
25 set(dReal px, dReal py, dReal pz, dReal dx, dReal dy, dReal dz) {
26 dGeomRaySet(_id, px, py, pz, dx, dy, dz);
29 INLINE
void OdeRayGeom::
30 set(
const LVecBase3f &start,
const LVecBase3f &dir) {
31 set(start[0], start[1], start[2], dir[0], dir[1], dir[2]);
34 INLINE
void OdeRayGeom::
35 get(LVecBase3f &start, LVecBase3f &dir)
const {
37 dGeomRayGet(_id, s, d);
38 start.set(s[0], s[1], s[2]);
39 dir.set(d[0], d[1], d[2]);
42 INLINE LVecBase3f OdeRayGeom::
45 dGeomRayGet(_id, start, dir);
46 return LVecBase3f(start[0], start[1], start[2]);
49 INLINE LVecBase3f OdeRayGeom::
50 get_direction()
const {
52 dGeomRayGet(_id, start, dir);
53 return LVecBase3f(dir[0], dir[1], dir[2]);
56 INLINE
void OdeRayGeom::
57 set_params(
int first_contact,
int backface_cull) {
58 dGeomRaySetParams(_id, first_contact, backface_cull);
61 INLINE
void OdeRayGeom::
62 get_params(
int &first_contact,
int &backface_cull)
const {
63 dGeomRayGetParams(_id, &first_contact, &backface_cull);
66 INLINE
int OdeRayGeom::
67 get_first_contact()
const {
69 dGeomRayGetParams(_id, &fc, &bc);
73 INLINE
int OdeRayGeom::
74 get_backface_cull()
const {
76 dGeomRayGetParams(_id, &fc, &bc);
80 INLINE
void OdeRayGeom::
81 set_closest_hit(
int closest_hit) {
82 dGeomRaySetClosestHit(_id, closest_hit);
85 INLINE
int OdeRayGeom::
87 return dGeomRayGetClosestHit(_id);