Oh btw! Totally offtopic but for this type of game I got something cool. I used these calculations in a SHMUP game to control how I keep objects within screen area without the need for blocking collisions. It feels really smooth. I felt the need for this because I didn’t want to “box in” the entire level design, I could just let objects fly in and tell them to stay in the camera area bouncing or gliding at the edges. Anyway, more people can enjoy it:
1 Like