3dstreet icon indicating copy to clipboard operation
3dstreet copied to clipboard

physics based vehicle movement

Open kfarr opened this issue 2 years ago β€’ 1 comments

Example task: have 1 dynamic body rectangular box for the vehicle and convert throttle component to use physics to generate force on the body instead of manual velocity calculation.

From ashxn on webxr discord:

I essentially just spent a month buying vehicle assets in Unity and then reading and watching videos on how all of this stuff works. The vehicle controller is mostly all of this knowledge combined.

I think the biggest "aha!" moment was when I watched this video: https://www.youtube.com/watch?v=CdPYlj5uZeI&t=708s

Following along with that formed most of my knowledge and allowed me to customise the hell out of it to get more of a GTA 5 style vehicle and add a bunch of other missing pieces.

I'm convinced you could do this kind of vehicle with any physics engine, not just PhysX, since its literally just a rigidbody, 4 raycast wheels and applied forces.

kfarr avatar Oct 05 '23 19:10 kfarr

https://discord.com/channels/758943204715659264/759166287901098024/1169324295906930831

https://glitch.com/edit/#!/aframe-racing-game

https://aframe-racing-game.glitch.me/

kfarr avatar Nov 03 '23 07:11 kfarr