Follow along as we understand all the physics behind how to make our very own raycast car vehicle in Godot.
Part 1 of probably 3 or 4.
This first part we'll create the raycast suspension's of the car and explain all sorts of problems and glitches you might find along the way.
As well as some helpful tips on how to calculate the damping ratio.
Wolfram alpha formula:
d=z(2Sqrt[k*m]), z=0.1, m=1, k=100
····················································································
Want to support me?
🌐 Patreon: https://www.patreon.com/Octodemy
Project source files: https://www.patreon.com/posts/raycast-car-1-127346765
····················································································
#godot4 #godot #godotengine
#godot4.4 #godot3d #raycast
CHAPTERS:
0:00 Intro
0:22 How springs works
1:41 Raycast car
3:33 Raycast spring script
8:01 Wheels
10:10 Calculating damping ratio
10:48 Dynamic raycast, custom pull force