Tr909
1
Hi All,
I’ve created a car simulation example with Havok/PhysicsV2 that I think would be a great starting point for anyone interested! It implements:
- Motorised joints for powered wheels and steering
- Stiffness and damping (spring) 6DoF joints for suspension
- Effective use of mass and friction
This means it might also be helpful for anyone struggling with those aspects of PhysicsV2.
PhysicsV2 Car Simulation Example | Babylon.js Playground (babylonjs-playground.com)
Hope it helps!
TR
12 Likes
regna
2
Awesome, thank you for sharing
1 Like
qv1
3
This is absolutely amazing, thank you so much for sharing, I have been working on something like this for a while and couldn’t get it to work.
1 Like
Tr909
4
Thanks for the positive feedback! Here’s what it can look like with a nice car model dropped in and some dramatic lighting -
Driving Simulation with Babylon.js / Havok Physics (youtube.com)
6 Likes
I changed your code and now the carpet floor is generated procedurally indefinitely!
PhysicsV2 Car Simulation Example (Endless carpet)
You just need to copy it and put it in the place of your code - PhysicsV2 Car Simulation Example | Babylon.js Playground (babylonjs-playground.com).
There is also a second version with a broken floor
PhysicsV2 Car Simulation Example (The broken floor)
PhysicsV2 Car Simulation Example (Endless backrooms)
Maybe someone will continue my idea
3 Likes