1#ifndef NANOMMO_CLIENT_CAMERA_H_
2#define NANOMMO_CLIENT_CAMERA_H_
21 void Update(Vector3 player,
float turn,
float tilt,
float zoom,
26 Vector3
Relative(Vector3 direction)
const;
28 const Camera3D&
camera()
const {
return camera_; }
33 float pitch_ = 30.0f * DEG2RAD;
34 float distance_ = 15.0f;
Follows your player around, from behind and above.
const Camera3D & camera() const
void Update(Vector3 player, float turn, float tilt, float zoom, const Terrain &terrain)
static constexpr float kNearest
Vector3 Relative(Vector3 direction) const
static constexpr float kFarthest
Camera3D GameCamera()
Looking down at the middle of the board, from above and behind.