Page 1 of 2

Realistic Vehicle Physics - Made with Unity

Posted: 06 Jan 2015, 10:32
by AndersOrum
Hello folks

I'm a new member here on the forum, and i just wanted to share a little from my project, i've been working on the project for about 3 month now with my partner "Arraial". Im doing all the programming and the setup within Unity, while Arraial does all the 3d modeling and texture work.

So far my focus has been around the physics, i'm not using any parts of Unity's built in Vehicle SDK/WheelCollider, it felt way too "arcadish" for what i had planned, instead i started marking my own system for everything motor, suspension, wheels collision, wheels friction etc etc. In the videos you can see my progress so far, we can make very realistic simulations of all types of vehicles, cranes, machines and much more.

Keep in mind this is a work in progress it does not represent the final result, many things will be changed/improved and added, the graphic effects and environment is pretty much untouched yet.

- Anders Ørum











Re: Realistic Vehicle Physics - Made with Unity

Posted: 06 Jan 2015, 12:38
by jonaz.dk
wow! impressive setup.

Is the wires in the crane also entirely simulated? I could image it would be a headache to do wires properly.

Regardless excellent work!

Are you planning on taking on Cape with their Dig It! simulator? ;)
http://cape.net/games/dig-it/

Re: Realistic Vehicle Physics - Made with Unity

Posted: 06 Jan 2015, 23:44
by Code
wow nice job, this look really good!

Re: Realistic Vehicle Physics - Made with Unity

Posted: 07 Jan 2015, 01:32
by Pegepinden
Looks really awesome!

Re: Realistic Vehicle Physics - Made with Unity

Posted: 07 Jan 2015, 08:42
by Jesper Kondrup
Impressive work :like:

Re: Realistic Vehicle Physics - Made with Unity

Posted: 08 Jan 2015, 00:09
by AndersOrum
Thank you guys, i'm glad you like it;)

jonaz.dk wrote:
Is the wires in the crane also entirely simulated? I could image it would be a headache to do wires properly.

Are you planning on taking on Cape with their Dig It! simulator? ;)
http://cape.net/games/dig-it/
Currently the wires aren't simulated properly, we do however have plans to make that aswell or atleast to make some test with it, in the end it depends on how much performance it will require to simulate, because the trucks/cranes will already take a big bite of your CPU.

Hehe yes it's no secret that we get a little inspiration from Cape's Dig It! However our plans with this project is more some kind of combination between "Eurotruck Simulator" and "Spintires". Both me and my partner are former modders of "Spintires" this game is really what inspired me to get started on my own, and i believe my vehicle physics system is getting very close to what you see in "Spintires".

Re: Realistic Vehicle Physics - Made with Unity

Posted: 30 Jan 2015, 15:28
by vonknut
how is the performance?
-can it run on mobile?

And do you plan to put it on asset store?
-if you do, we want to pre-order :)

Re: Realistic Vehicle Physics - Made with Unity

Posted: 22 Mar 2015, 20:03
by AndersOrum
Hello again

So i'm back again working hard on my project after a little break.

I want to show you guys a little update on the project, hope you enjoy.

-Anders Ørum




Re: Realistic Vehicle Physics - Made with Unity

Posted: 22 Mar 2015, 20:10
by AndersOrum
vonknut wrote:how is the performance?
-can it run on mobile?

And do you plan to put it on asset store?
-if you do, we want to pre-order :)

Hi Vonknut

Sorry i haven't replied to your question before now.

-Performance? Well compared to the other Vehicle Physics solution out there( like Edy's, UnityCar Pro) etc. then it's pretty heavy i'm pretty sure this wont work on mobile, although i haven't tried my self. But i'm still working on optimizing everything i can.

-I still haven't decided if i'm going to sell it or not.

Re: Realistic Vehicle Physics - Made with Unity

Posted: 23 Mar 2015, 12:55
by vonknut
Thanks for the reply.

Re: Realistic Vehicle Physics - Made with Unity

Posted: 06 Oct 2015, 18:16
by AndersOrum
Hi guys,

So it's been a long time since i last posted any updates, but that does NOT mean development have stopped meanwhile, so here is a few of my lastest videos of my progress with the project.

I have 2 new main features i've been working on the last couple of months.

1: Physics Based Tire Deformation, i've completely redesigned my old WheelCollider and come up with a much better system that allows for simulation of tire pressure, deformation and much more this is not just a visual effect the wheelcollider is deforming aswell, it's still in early stage with room for much improvement especially the visual deformation needs some smoothing as you can see in the video below.

2: Physics Based Terrain Deformation, I've worked a little on a terrain deformation system, i want to be able to simulate different types of surfaces & soils, currently it's only in prototyping phase there is a ton of things a need to figure out before this will make it to the game, but i'm optimistic about it.




Best regards
-Anders Ørum

Re: Realistic Vehicle Physics - Made with Unity

Posted: 09 Oct 2015, 11:22
by vonknut
Please put on asset store - asap, so I can throw money after it :)

Re: Realistic Vehicle Physics - Made with Unity

Posted: 11 Oct 2015, 19:25
by AndersOrum
vonknut wrote:Please put on asset store - asap, so I can throw money after it :)
Sorry it wont be on the Asset store anytime soon, after i've finished my game i will consider whether or not i will put it up for sale ;)

Re: Realistic Vehicle Physics - Made with Unity

Posted: 12 Oct 2015, 07:35
by Jesper Kondrup
:like:

Re: Realistic Vehicle Physics - Made with Unity

Posted: 13 Oct 2015, 00:39
by AndersOrum
Hi, another update on the tire physics, i've improved handling and stability of the tire which gives vehicles much better handling at higher speeds, and also improved the visual deformation.


Re: Realistic Vehicle Physics - Made with Unity

Posted: 18 Dec 2015, 23:06
by AndersOrum
Hi again,

New update on tire physics again, and yet again i've started work on a new wheelcollider, that means scrapping the old model from the last 2 videos, bye bye 3 months of work :p Anyway i'm happy to scrap the old model for what i'm working on now, i'm currently working on implementing Truss Softbody Physics Engine(similar to RoR & BeamNG's physics engine) in my system so far i've only worked on the tires, but i will soon start working on softbody based suspension and chassis.

The change to softbody based tires has made major improvements to the vehicles handling specially at high speeds or when crawling on rocks and other stuff.

Toyota FJ40 & Mtvr MK25:


Re: Realistic Vehicle Physics - Made with Unity

Posted: 18 Apr 2016, 21:06
by AndersOrum
Hi finally time for an update again,

Lately i've been working on improving Powertrain/Drivetrain simulation, all Powertrain/Drivetrain (Engine, Gearbox, TransferCase, Differentials etc.) code is completely reworked since last videos and is now based on real ratios & values, but it's still work a in progress(at 2.05 & 5.00 differentials are locked which is the reason for the suddon power/traction).


Re: Realistic Vehicle Physics - Made with Unity

Posted: 20 Jul 2016, 02:38
by AndersOrum
Good news! I've finally started working on fully softbody based vehicles, similar to RoR/BeamNG, here's an early test of it.


Re: Realistic Vehicle Physics - Made with Unity

Posted: 26 Jul 2016, 12:53
by jonaz.dk
Nice! excellent work as usual!
Love the wobbliness of the wooden part of the lorry.

This might be out of scope. But will material fractures be part of the plan at any point in the foreseeable future?

Re: Realistic Vehicle Physics - Made with Unity

Posted: 28 Jul 2016, 18:50
by AndersOrum
jonaz.dk wrote:Nice! excellent work as usual!
Love the wobbliness of the wooden part of the lorry.

This might be out of scope. But will material fractures be part of the plan at any point in the foreseeable future?
Thank you ;)

Unfortunately no, fracturing is not supported and i don't think it will be anytime soon either. But i can make parts breakable, like cabin,hood,doors,fueltank etc under heavy forces they can be ripped of the chassis.

Here's a small update on some of the stuff i've been working on this week, i'm working on a debugger system for my softbody based vehicles, this system allows me to check chassis and parts for stress.

Visibility increases as stress raises
Red link = Compression
Blue link = Stretching
Dark Blue/Black = Deformed


Re: Realistic Vehicle Physics - Made with Unity

Posted: 29 Jul 2016, 09:42
by ZeroHero
Amazing!!!!
It looks just incredible!
Is there any way I can try it out for myself by any chance?
Well done to you.

Re: Realistic Vehicle Physics - Made with Unity

Posted: 11 Aug 2016, 17:43
by AndersOrum
ZeroHero wrote:Amazing!!!!
It looks just incredible!
Is there any way I can try it out for myself by any chance?
Well done to you.
Thank you :) and sorry for the late reply, unfortunately no i don't have a demo ready yet, i hope to have it ready within a month or so, but i'll post more info here as soon i got any ;)

Re: Realistic Vehicle Physics - Made with Unity

Posted: 11 Aug 2016, 17:55
by AndersOrum
After almost 2 years of lonely driving i finally made some buddies/enemies to play with, i've started working on some AI controllers for my vehicles, currently it features 4 different modes:

1. Chase: They will try their best to wreck you
2. Follow: Useful for convoy driving
3. Checkpoint: They will follow a predefined route(route can be changed during runtime)
4. Flee : They will try to get away from you(not shown in video)


Re: Realistic Vehicle Physics - Made with Unity

Posted: 15 Jan 2017, 05:05
by AndersOrum
Finally time for an update on my terrain physics system, this video is a early test of the new updated system, many improvements have been made since my last video on the terrain system:
- It now works with 2 physics engines PhysX and Truss, and can run both simultaneously or just engine alone.
- Added terrain mesh generation based on terrain heightmap.
- Added runtime terrain mesh deformation based on heightmap, this is used if the terrain only is deformed in Truss physics, in that case the Terrain Component isn't needed, and a mesh will be used render the terrain instead.(this currently used in the video)
- Added terrain tiling support.
- Massive performance upgrade.
- Because of tiling support and the performance upgrade, the detail of the terrains collision mesh is now 6-7 times higher, and could be increased even further without much effect on performance.
- Improved the terrain physics model(still based on a simple model, but will be improved a lot later).
- And many many other changes.


Re: Realistic Vehicle Physics - Made with Unity

Posted: 15 Jan 2017, 19:47
by vonknut
Sexy stuff!

Have you tested it on mobile at all?
-or do you know for a fact, that its a no-go.

And whats the eta on the assets store version?
-so people can throw money your way :)