This project is a simple web-based demo that visualizes second-order dynamics using JavaScript and HTML. A follower smoothly tracks a target point using a physics-based motion model.
- Smooth motion following using second-order dynamics.
- Adjustable parameters for frequency (f), damping (z), and response (r).
- Real-time updates using sliders and input fields.
- Minimalistic UI with interactive controls.
- Refactor to allow easy use with different frameworks with a simple API.
- Optimize performance & animations in case of framedrops.
- HTML5
- CSS3
- JavaScript (ES6+)
- The target follows the mouse position.
- The follower moves towards the target using a second-order dynamic system.
- Users can adjust:
- Frequency (f): Controls how fast the follower responds.
- Damping (z): Controls overshoot and oscillations.
- Response (r): Controls acceleration response.
- Open
index.html
in a browser. - Move the mouse to see the circle move.
- Adjust the control sliders to see the effect on motion.
This project is open-source and available for use under the MIT License.