What is Nostr?
Steven Dollins /
npub18n0…ayf3
2023-08-26 21:27:19
in reply to nevent1q…6jeq

Steven Dollins on Nostr: Particle tunneling My cheap collision detection finds the nearest point on the ...

Particle tunneling

My cheap collision detection finds the nearest point on the ellipse to the ball center and if that point is inside the ball, it bounces. Fast balls can go from one side on one frame to the other on the next without touching the edge, tunneling through.

The hacky fix adds more physics updates. The "right" fix intersects their motion line with the edge, but that requires messier, slower math.

#generative #GenerativeArt #CreativeCoding #Processing #physics #simulation

Author Public Key
npub18n0pxmj07t8lemem8plgzd2jhuumkzxanus7vrnkex9mm6yvysvswgayf3