-
Notifications
You must be signed in to change notification settings - Fork 1
Vehicle Physics!
This is an attempt to explain different functionalities of the VP in very few lines. It's just a normal Vehicle Physics 😁
Click on it to watch
If you have seen the video, you might have noticed that there is no actual difference between this thing and any other thing in the market. It's obvious because Vehicles can't behave differently. 🧐
As always, making engine using code just refers to calculate the torque output and RPM based on gear ratio. The torque output is used to provide torque to the wheels so that they can actually take car forward.
This graph perfectly shows how a gear works. You know in real world it's just kick the clutch and it restricts the torque flow from engine shaft to drive shaft. But while putting it to code it makes us think a bit harder. No worries the graph will speak more than what I can say
By seeing that graph you may have noticed that as engine RPM increases, torque delivered decreases. And it becomes almost 0 when you press clutch. But in my case I made torque go from 1 -> 0 when clutch is pressed and in reverse when it is released. (Who will notice inaccuracies 😂)
Just reverse the direction of torque!
As engine RPM increases the volume(amplitude) and pitch(frequency will increase, in my case it's linear increment. It may happen in any fashion because we care about results not physics. If physics was the factor it would depend on the way engine is designed.
Whoever reading this thing will have at least basic knowledge of what a car is. It's obvious that you will be knowing about different driving assistances and their use. Let's assume you don't know, then just go and research! 🤪 That's basics for a car enthusiasts.
Nothing serious here, they work based on on and off principle. For headlights to look a bit more realistic, I adjust it's intensity based on engine RPM. And yes in my case physics is not at a thing to consider. So intensity is linearly dependent on RPM. 😝
Destruction system is not just deformation here. It includes falling parts, wheels and e things that look realistic. I am happy with that. To make the deformed mesh look more organic what else other than a Perlin Noise be used.... 😒
- There is nothing more serious in this Vehicle Physics.
- It was developed by a noob. (This implies I copied code from multiple forums and assets)
- Unlike other assets this thing has basic implementation of things in a fashion to make it look and feel good.
Thanks for reading,
M V Nihal Narayan Rao,
Nilla Studios.

