Early vehicle physics test

Published December 09, 2009
Advertisement
First test of vehicle physics in the engine. Camera isn't yet attached to the vehicle so I had to chase it, without much success I admit [smile]
Also it's really easy to lose sight of the truck in the big world.

Click on the image below to see the video of Gaz-66 truck skidding down the bumpy slopes.

">
0 likes 6 comments

Comments

Moe
That looks pretty sweet!

Is it possible to roll the vehicle?
December 10, 2009 10:34 AM
cameni
Quote:Original post by MoeIs it possible to roll the vehicle?
Yes the truck rolls over at the end because of a sudden turn - I could not control both the camera and the vehicle so I only dabbed the car controls here and there.
But the chassis does not collide properly with the terrain yet, just the wheels at the moment.
December 10, 2009 12:26 PM
Ravuya
It always floors me when I look at your stuff. I love how the truck seems to accurately simulate solid axles. Does it do the differential(s) as well?
December 12, 2009 03:37 AM
cameni
Quote:Original post by Ravuya
It always floors me when I look at your stuff. I love how the truck seems to accurately simulate solid axles. Does it do the differential(s) as well?
No, actually it's treated as independent suspension. I may be simulating a solid axle sometime, although I'm no expert on how it would/should behave then [embarrass]

But I'll be doing soon Tatra T813 truck with its independent swing half axles, its suspension behavior is quite characteristic.



December 12, 2009 04:44 AM
Grecco
Very nice movie, it actually makes the terrain "more real" to see something interacting with it.

I was wondering, as the truck gets further away from the camera, does the terrain mesh it collides with get coarser, or do you procedurally generate high-detail terrain beneath it on the fly?
December 14, 2009 02:56 AM
cameni
Quote:Original post by El GrecoI was wondering, as the truck gets further away from the camera, does the terrain mesh it collides with get coarser, or do you procedurally generate high-detail terrain beneath it on the fly?
The terrain mesh used for physics can be generated on the fly, although currently the meshes are taken from particular level of the quad-tree created for the viewer. That means if the vehicle gets too far (>2km?) to the region using a coarser detail, it will sink to the ground.
Of course, it would be no problem to generate the mesh on demand for all vehicles, but at that distance they are becoming hardly visible anyway.

December 14, 2009 07:30 AM
You must log in to join the conversation.
Don't have a GameDev.net account? Sign up!
Profile
Author
Advertisement
Advertisement