7 #include <simgear/scene/material/mat.hxx>
19 void Ground::getGroundPlane(const double pos[3],
20 double plane[4], float vel[3])
22 // ground. Calculate a cartesian coordinate for the ground under
23 // us, find the (geodetic) up vector normal to the ground, then
24 // use that to find the final (radius) term of the plane equation.
26 Glue::geodUp((double*)pos, up);
28 for(i=0; i<3; i++) plane[i] = up[i];
29 plane[3] = plane[0]*pos[0] + plane[1]*pos[1] + plane[2]*pos[2];
36 void Ground::getGroundPlane(const double pos[3],
37 double plane[4], float vel[3],
38 const SGMaterial **material)
40 getGroundPlane(pos,plane,vel);
43 bool Ground::caughtWire(const double pos[4][3])
48 bool Ground::getWire(double end[2][3], float vel[2][3])
53 void Ground::releaseWire(void)
57 float Ground::getCatapult(const double pos[3], double end[2][3],