btRaycastVehicle dirft issues
-
- Posts: 16
- Joined: Tue Jul 08, 2008 7:28 am
btRaycastVehicle dirft issues
when the car run at a high speed,(eg.150kmh),then make a sharp turn,the wheels begin to slide,then i find a strange behaviour, the car is FWD drive, when the steer reach the maxium steer angle, the m_skidInfo is nearly 0.03,this make the m_forwardImpulse very small,the car nearly lost it engine power.then make a track like the RED line,not the expect GREEN line,is this right logic? and anybody has solution to solve this?
You do not have the required permissions to view the files attached to this post.
-
- Posts: 28
- Joined: Tue Jan 05, 2010 12:41 pm
Re: btRaycastVehicle dirft issues
Hi,
what kind of vehicle simulation do you use?
I hope that for btRaycastVehicle playing with this parameters is going to help you.
what kind of vehicle simulation do you use?
I hope that for btRaycastVehicle playing with this parameters is going to help you.
Code: Select all
btVehicleTuning()
:m_suspensionStiffness(btScalar(5.88)),
m_suspensionCompression(btScalar(0.83)),
m_suspensionDamping(btScalar(0.88)),
m_maxSuspensionTravelCm(btScalar(500.)),
m_frictionSlip(btScalar(10.5))
{
}
btScalar m_suspensionStiffness;
btScalar m_suspensionCompression;
btScalar m_suspensionDamping;
btScalar m_maxSuspensionTravelCm;
btScalar m_frictionSlip;
};
-
- Posts: 16
- Joined: Tue Jul 08, 2008 7:28 am
Re: btRaycastVehicle dirft issues
thanks, but my btRaycastVehicle has been modied too much,simply modify the parameters isn't usefull for me, my question is,when the car begin to slide,the sideImpulse is very bigger than the forwardImpulse,that cause the car lost it power, it is difficult to make car drift a track like a cyclograph.mako90 wrote:Hi,
what kind of vehicle simulation do you use?
I hope that for btRaycastVehicle playing with this parameters is going to help you.
Code: Select all
btVehicleTuning() :m_suspensionStiffness(btScalar(5.88)), m_suspensionCompression(btScalar(0.83)), m_suspensionDamping(btScalar(0.88)), m_maxSuspensionTravelCm(btScalar(500.)), m_frictionSlip(btScalar(10.5)) { } btScalar m_suspensionStiffness; btScalar m_suspensionCompression; btScalar m_suspensionDamping; btScalar m_maxSuspensionTravelCm; btScalar m_frictionSlip; };
is there anyone has idea to improve the forwardImpulse,but not hurt the other logic.