blob: 63010c2aff3e999c214c201bf6c87008398450cf (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
#pragma once
#include <game/vehicles/vehicle.h>
#include <gfx/camera_controller.h>
class Camera;
class FollowCameraController : public CameraController {
public:
enum class Mode { Pan, Ride, ISO };
explicit FollowCameraController(VehicleWPtr, Mode = Mode::Pan);
void updateCamera(Camera * camera) const override;
private:
VehicleWPtr target;
Mode mode;
};
|