A snake with 2D chain physics and collision!
This is my first time trying something like this!
The snake is animated by constraining the center of each segment to the radius of the previous segment, then constraining the angles between segments by a specific amount. This was really fun to make and ended up being way more satisfying than I thought it would be! Try it out! The mouse moves the collider, and scrolling the scroll-wheel adds segments.
I got most of the info, and a ton of inspiration from this video by argonaut:
[Please log in to post a comment]