control the character with the mouse

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:

Math question. finding distance to the edge of a plane in direction from center. - #16 by Roy_Wierer.Seda145

1 Like