Ball and String
Jun 16, 2021
tags: gadget, coding, threejs, simulation
![](/static/dividerdecorator-c9420a9fac07ae4a2a454236916e50cd.png)
This is my second attempt at rope physics. I think it turned out a lot better than the first (see Tetherball). While the tetherball simulation was built off of the idea that ropes are a series of connected springs, the rope in this simulation is modeled as a series of joints with fixed width. The specifics of the simulation are based off of this excellent blog post by OWLREE. The simulation uses Verlet integration to apply forces, and uses the "Jakobsen method" to enforce constraints on the rope (see Section 1.2.5 at OWLREE's post for details). P.S., you can push the ball if you click on it. Don't forget to play aound with the settings (including advanced settings)!
Click here to open the gadget.
![screenshot of gadget](/static/67dc93772719439714c62f4d1ea1a354/8c557/ballstring-screenshot.png)