kidcdf

05-02-2008 05:17:18

`NxOgre::WheelParams wp;`

wp.setToNormal();

wp.suspension_damper = 1.0f;

wp.suspension_spring = 25000.0f;

wp.suspension_target = 0.0f;

wp.suspension_travel = 0.1f;

wp.clamped_friction = false;

wp.emulate_legacy_wheel = false;

wp.unscaled_spring_behavior = false;

wp.axle_speed_override = false;

wp.input_lat_slipvelocity = true;

wp.input_long_slipvelocity = true;

wp.lateral_tire_asymptoteSlip = 2.0f;

wp.lateral_tire_asymptoteValue = 0.7f;

wp.lateral_tire_extremumSlip = 0.15f;

wp.lateral_tire_extremumValue = 0.6f;

wp.lateral_tire_stiffnessFactor = 300.0f;

wp.longitudal_tire_asymptoteSlip = 2.0f;

wp.longitudal_tire_asymptoteValue = 0.7f;

wp.longitudal_tire_extremumSlip = 0.15f;

wp.longitudal_tire_extremumValue = 1.0f;

wp.longitudal_tire_stiffnessFactor = 2500.0f;

wp.inverseWheelMass = 0.2f;

//...

wheel->getNxWheelShape()->setMaterial(m_nxscene->getMaterialIndex("BumperCarTire")); // dynamic:1000 static:1000 all don't work

once the car launch,it never stop except I setBrakeMotor,how to add friction to it?

the Lesson 701 use NxWheelDesc,but it becomes "NxWheelShapeDesc" and it has friction opition no longer now.