News for hackers. Stuff that matters.
Re:Collision Detection (2015) by nickpow43 on Sunday January 21, 2024 @11:56AM (#39080174)
Very cool, If it isn't mentioned elsewhere I'd add a note that often times you can avoid the expensive sqrt calculation. For example the last if statement in https://www.jeffreythompson.org/collision-detection/circle-r...

could be optimized by instead just checking if distanceSqr < (radius * radius)

There are no comments on this comment yet.