10 // A landing hook has the following parameters:
12 // position: a point in the aircraft's local coordinate system where the
13 // fully-extended wheel will be found.
19 // Externally set values
20 void setPosition(float* position);
21 void setLength(float length);
22 void setDownAngle(float ang);
23 void setUpAngle(float ang);
24 void setExtension(float extension);
25 void setGlobalGround(double *global_ground);
27 void getPosition(float* out);
28 float getLength(void);
29 float getDownAngle(void);
30 float getUpAngle(void);
31 float getExtension(void);
33 void getTipPosition(float* out);
34 void getTipGlobalPosition(State* s, double* out);
36 // Takes a velocity of the aircraft relative to ground, a rotation
37 // vector, and a ground plane (all specified in local coordinates)
38 // and make a force and point of application (i.e. ground contact)
39 // available via getForce().
40 void calcForce(Ground *g_cb, RigidBody* body, State* s, float* lv, float* lrot);
42 // Computed values: total force, weight-on-wheels (force normal to
43 // ground) and compression fraction.
44 void getForce(float* force, float* off);
45 float getCompressFraction(void);
60 double _global_ground[4];