[SOLVED] Vehicle suspension vector gets inverted sometimes

Post Reply
jauthu
Posts: 12
Joined: Tue Feb 28, 2012 7:34 pm

[SOLVED] Vehicle suspension vector gets inverted sometimes

Post by jauthu »

On the picture blue arrows represent actual m_sideImpulse(almost zero here for both rear wheels) and m_frontImpulse, green is suspension force and red is m_skidInfo.

As you can see on picture attached, after raycast somehow I get the whole right rear wheel(closest on the picture) inverted both on Y and X axis, ending up in really crazy behaviour. It might happen even if I have fairly smooth surfaces with some height transitions.

Has anyone encountered this? Any ideas on how to fix this?

My bullet version is 2.82.
Attachments
2015-03-18-083424_1280x1024_scrot.jpg
2015-03-18-083424_1280x1024_scrot.jpg (119.18 KiB) Viewed 2866 times
Last edited by jauthu on Wed Mar 18, 2015 9:00 am, edited 1 time in total.
jauthu
Posts: 12
Joined: Tue Feb 28, 2012 7:34 pm

Re: Vehicle suspension vector gets inverted driving over cre

Post by jauthu »

The fix was as easy as clamping suspensionForce to 0 if it gets negative...

I am so sorry to bother you with this...
Post Reply