Re:Build a simple 2D physics engine for JavaScript games (2012)
by naillo on Wednesday August 24, 2022 @08:47AM
(#32578705)
Good survey on many other extensions too: http://mmacklin.com/2017-EG-CourseNotes.pdf
Re:Build a simple 2D physics engine for JavaScript games (2012)
by zokier on Wednesday August 24, 2022 @03:06PM
(#32584234)
How does PBD compare to IPC[1] derived methods, like affine body dynamics[2] that I happened to notice in the latest siggraph papers?
[1] https://ipc-sim.github.io/ (see related projects section at bottom)
For a more lay explanation you solve constraints directly by moving elements around and using the difference between their current position and previous position as their velocity. If you've some experience of numerical integration it's quite similar to verlet integration. This approach is good because it lets you have constraints with infinite stiffness without the simulation exploding.
The original papers consider points (like a mass-spring system) but it's also been extended to rigidbodies.