Where do I start with RTS camera?
This is my first post. I have looked everywhere on the web and through the examples; however, I can't seem to find specific information for getting started. I've been poking around for about a week with ue4. The camera and minimap code from the tower defense sample game are pretty much what I want. The problem is that I don't know which pieces I actually need
Thanks for the help!
asked Aug 03 '14 at 10:03 PM in C++ Programming
The strategy game example has three key classes when it comes to the camera.
First there's AStrategySpectatorPawn, which inherits from ASpectatorPawn. This is a Pawn type without a Mesh, it's more of a theoretical pawn in that sense.
Second there's UStrategyCameraComponent. The AStrategySpectatorPawn has one of these components and it's the camera you're looking through.
Third there's the AStrategyPlayerController. This is a type of PlayerController which will Possess an AStrategySpectatorPawn. From the pawn it gets the CameraComponent and moves it around.
Have a look at these three classes to start with. You can also look at these methods:
And of course the Pawn and PlayerController class to use is specified in the AStrategyGameMode class.
answered Aug 04 '14 at 10:11 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here