Stride Forums Archive

Physics for use on vehicle's

6 posts, 3756 views, 2019-03-06 to 2019-03-13

battlegear2099 2019-03-06 #1

Question: Can we now use physics to move a 3D vehicle? so it can simulate complex force and motion. With steering say with hinges or joints, shocks and multiple axles with spinning wheels like driving a tank on uneven terrain say like what is in CryEngine or Unreal or even Godot etc. A simple yes or no is fine, I am looking into Xenko to see if It has been done successfully now with Bullet. As I read there were issues in 2017 trying it from scratch and nothing built in like a vehicle controller api.

profan (Robin Hübner) 2019-03-06 #2

Yes, it is possible.

It will need some wrangling to understand how to work with bullet’s constraints but I put this thing together rolling on 4 cylinders after reading your post:

There’s no quick and easy way, but if you can figure out the constraints, you can absolutely do it :slight_smile:

battlegear2099 2019-03-06 #3 in reply to #2

ok great thanks that is good to know

battlegear2099 2019-03-12 #4 in reply to #2

Hi would you mine if I could get a copy of your basic simple vehicle physics project? That would help me out allot to see how it works in Xenko

profan (Robin Hübner) 2019-03-12 #5 in reply to #4

It’s in here (VehicleScene):

You’ll still have to dig a bit though to see how it all sticks together as it’s quite sparsely commented, but still!

battlegear2099 2019-03-13 #6 in reply to #5

Great! not sure how I missed that on here, thank you for your assistance.