Testing Spring Forces in Unity3D

Опубликовано: 16 Октябрь 2024
на канале: Bit Galaxis
3,255
102

This video covers 6 different formulas I used to calculate forces for a raycast acting as a spring in Unity3D. It also covers how to stop objects from bouncing forever, whether using drag or dampening. It begins with a simple demonstration of how each function changes the behavior, and covers the formulas and charts testing if the forces match the expected output.

The methods included are Hooke's Law, Hooke's Law modified to be calculated as a ratio of compression, both of those versions with dampening added, and two functions that utilize the 2nd power.