Topic was automatically imported from the old Question2Answer platform.
Asked By
TherdDev
I want to make a 3D RTS game similar to the Command & Conquer series, but I have no prior game development knowledge and experience.
Right now I’m trying to make the camera move only in the XZ plane when the mouse cursor goes near the edges of the game screen like how panning works in RTS games. I also want to know how to make a game cursor which is only contained within the window of the game such that it collides with the window’s edges.
I wrote a RTS camera tutorial that you can use. It implements a 3D camera looking down in top-down perspective. It allows panning, moving, rotating, etc.