Why raycast vehicle are vibrating?

Post Reply
irrmich
Posts: 6
Joined: Thu Sep 04, 2014 1:23 pm

Why raycast vehicle are vibrating?

Post by irrmich »

:D I run the vehicle demo application using CodeBlocks+Mingw, the trouble is the vehicle is vibrating. And the vibration is greater when my vehicle go faster.

8) Here is my source code (using freeglut/opengl as renderer). The source is a compressed version of the famous raycast vehicle demo (no more DemoApplication, GlutDemoApplication, DebugDraw, debugmode; VehicleDemo is no more a derived class of them, GlutStuff call VehicleDemo directly)

:?: Do you think the vibration of the vehicle/whells come from bad implementation of internal Raycasting or it is from suspension data??
Attachments
vehicleTest.rar
Raycast Vehicle Demo
(882.16 KiB) Downloaded 240 times
irrmich
Posts: 6
Joined: Thu Sep 04, 2014 1:23 pm

Re: Why raycast vehicle are vibrating?

Post by irrmich »

It's fily solved, i found a post in here suggesting to set maxSubSteps = 15, and using framerate dt = 1/120;
Really nice :D o more wheels vibration
Post Reply