Get the latest tech news
Particle Based Physics Engine in Golang
A simple Physics engine in GoLang. Contribute to rudransh61/Physix-go development by creating an account on GitHub.
This will apply the forces based on Hooke's Law and damping to the connected rigid bodies. To update our entity, we have two functions: ApplyForce and ApplyForcePolygon, as the name suggests, one is for RigidBody and one for polygons. NOTE: Define dt(0.1 mostly) at the top globally for good code.
Or read this on Hacker News