[closed] vehicle roll influence after fix (r2252)

mi076
Posts: 144
Joined: Fri Aug 01, 2008 6:36 am
Location: Bonn, Germany

[closed] vehicle roll influence after fix (r2252)

Post by mi076 »

roll influence doesn't work for me after this fix
http://code.google.com/p/bullet/issues/detail?id=468

reproduced in official vehicle demo... only set center of mass in compound without shift and doubled the power (otherwise it doesn't rolls at all at normal speed, in demo the center of mass is very low) ... i don't see any influence of "roll influence" parameter, vehicle rolls over immediately with rolling influnce 0.1, with old code it doesn't....

math after fix: no effect if wheelInfo.m_rollInfluence is 0,
math before fix: no effect if wheelInfo.m_rollInfluence is 1, isn't it?

Code: Select all

#if defined ROLLING_INFLUENCE_FIX // fix. It only worked if car's up was along Y - VT.
					btVector3 vChassisWorldUp = getRigidBody()->getCenterOfMassTransform().getBasis().getColumn(1);
					rel_pos -= vChassisWorldUp * (vChassisWorldUp.dot(rel_pos) * wheelInfo.m_rollInfluence);
#else
					rel_pos[m_indexUpAxis] *= wheelInfo.m_rollInfluence;
#endif
thank you...
mi076
Posts: 144
Joined: Fri Aug 01, 2008 6:36 am
Location: Bonn, Germany

Re: [closed] vehicle roll influence after fix (r2252)

Post by mi076 »

fixed, thank you
http://code.google.com/p/bullet/source/detail?r=2322
discussed with issue 468 (s. link in 1st post)