
S
Publisher
sehgel
RTS 3D Camera 3D
3D
Camera RTS Movement Input Mobile Configuration Zoom Rotation
These are a couple of scripts for controlling a configurable 3D Camera for RTS games.
This plugin has been mirrored from the Godot Asset Library.
The plugin author is in no way affiliated with Gadget.
If you are the author of this plugin and would like this mirror removed, please contact support@gadgetgodot.com.
Godot RTS 3D Camera
This is a couple of scripts for controlling a configurable 3D Camera for RTS games.

It includes:
- Size configurable edge pushing camera movement
- Smooth stopping
- Free look rotation
- Zooming
- Sensibility configuration
- Key configuration
- Mobile support with:
- Swipe to move
- Pinch to zoom
- Free look rotation
Installation
- Add CharacterCamera.gd and CameraInput.gd into your project.
- Connect all the signals in CameraInput.gd you need to the homologues functions in CameraController.gd:

- Add an action in Project->Project Settings->Input Map called "ToggleCameraAction" and bind any key you want.
Usage
In the included example project you can:
On desktop:
- Move the camera placing the cursor on the edge or near them depending on the current configured edge size.
- Hold mouse middle button and move the cursor around to rotate the camera view.
- Use the mouse wheel to zoom in and out.
On mobile:
- Swipe to move the camera.
- Press to the toggle button in the bottom left to toggle camera mode.
- While in rotation mode, slide your finger on the screen to rotate the camera view.
- Pinch to zoom.
Change action toggle key
You can change the action toggle hotkey in Project->Project Settings->Input Map
