How to add wheel friction? my car can not stop

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.

kidcdf

06-02-2008 03:24:00

hey guys,how to set friction of wheel??
do you use setMaterial(..)??

syedhs

06-02-2008 08:30:41

If all the surfaces travelled by the car has the same friction, then the most straightforward is to apply brake which depends on the speed & gear.

The material works best if you want to simulate driving on road tarmac, grass, soils etc which all of them have different friction properties.

kidcdf

06-02-2008 12:52:53

If all the surfaces travelled by the car has the same friction, then the most straightforward is to apply brake which depends on the speed & gear.

The material works best if you want to simulate driving on road tarmac, grass, soils etc which all of them have different friction properties.

the question is the material doesn't work,even if I set friction to 1000 and Friction Mode is average

betajaen

06-02-2008 13:04:00

Normal materials don't work on wheels. Read the SDK documentation it's all there.