3 #include <simgear/scene/material/mat.hxx>
15 void Ground::getGroundPlane(const double pos[3],
16 double plane[4], float vel[3])
18 // ground. Calculate a cartesian coordinate for the ground under
19 // us, find the (geodetic) up vector normal to the ground, then
20 // use that to find the final (radius) term of the plane equation.
22 Glue::geodUp((double*)pos, up);
24 for(i=0; i<3; i++) plane[i] = up[i];
25 plane[3] = plane[0]*pos[0] + plane[1]*pos[1] + plane[2]*pos[2];
32 void Ground::getGroundPlane(const double pos[3],
33 double plane[4], float vel[3],
34 const SGMaterial **material)
36 getGroundPlane(pos,plane,vel);
39 bool Ground::caughtWire(const double pos[4][3])
44 bool Ground::getWire(double end[2][3], float vel[2][3])
49 void Ground::releaseWire(void)
53 float Ground::getCatapult(const double pos[3], double end[2][3],