Physics Tracking Demo
A demo created to show the difference between different methods of matching the position of physics objects using forces.
I have found good results keeping damping at around 0.2*stiffness. Feel free to experiment but know that as this is an unrestricted physics simulation, extreme values could be problematic (try to avoid extremely high forces and low mass).
Mass is the mass of the circles. Stiffness is the strength of the spring, a higher stiffness means a stronger spring. Damping is the coefficient used when subtracting some of each circle's velocities each step. Damping does not affect the regular spring but will reduce overshooting and sensitivity in the damped spring. Higher damping (derivative gain) on the proportional derivative controller will reduce overshooting but retains most of the sensitivity. The stiffness and damping values are also used for the P and D of the proportional derivative controller respectively.
Status | Prototype |
Category | Other |
Platforms | HTML5 |
Author | LochieWestfall |
Made with | Unity |
Leave a comment
Log in with itch.io to leave a comment.