+void Gear::setCastering(bool c)
+{
+ _castering = c;
+}
+
+void Gear::setContactPoint(bool c)
+{
+ _isContactPoint=c;
+}
+
+void Gear::setOnWater(bool c)
+{
+ _onWater = c;
+}
+
+void Gear::setOnSolid(bool c)
+{
+ _onSolid = c;
+}
+
+void Gear::setIgnoreWhileSolving(bool c)
+{
+ _ignoreWhileSolving = c;
+}
+
+void Gear::setSpringFactorNotPlaning(float f)
+{
+ _spring_factor_not_planing = f;
+}
+
+void Gear::setSpeedPlaning(float s)
+{
+ _speed_planing = s;
+}
+
+void Gear::setReduceFrictionByExtension(float s)
+{
+ _reduceFrictionByExtension = s;
+}
+
+void Gear::setInitialLoad(float l)
+{
+ _initialLoad = l;
+}
+
+void Gear::setGlobalGround(double *global_ground, float* global_vel,
+ double globalX, double globalY,
+ const SGMaterial *material)
+{
+ int i;
+ double frictionFactor,rollingFriction,loadCapacity,loadResistance,bumpiness;
+ bool isSolid;
+
+ for(i=0; i<4; i++) _global_ground[i] = global_ground[i];
+ for(i=0; i<3; i++) _global_vel[i] = global_vel[i];
+
+ if (material) {
+ loadCapacity = (*material).get_load_resistance();
+ frictionFactor =(*material).get_friction_factor();
+ rollingFriction = (*material).get_rolling_friction();
+ loadResistance = (*material).get_load_resistance();
+ bumpiness = (*material).get_bumpiness();
+ isSolid = (*material).get_solid();
+ } else {
+ // no material, assume solid
+ loadCapacity = DBL_MAX;
+ frictionFactor = 1.0;
+ rollingFriction = 0.02;
+ loadResistance = DBL_MAX;
+ bumpiness = 0.0;
+ isSolid = true;
+ }
+ _ground_frictionFactor = frictionFactor;
+ _ground_rollingFriction = rollingFriction;
+ _ground_loadCapacity = loadCapacity;
+ _ground_loadResistance = loadResistance;
+ _ground_bumpiness = bumpiness;
+ _ground_isSolid = isSolid;
+ _global_x = globalX;
+ _global_y = globalY;
+
+ }
+