21#ifndef HEADER_CAMERA_DEBUG_HPP
22#define HEADER_CAMERA_DEBUG_HPP
24#include "graphics/camera_normal.hpp"
50 float *side_way,
float *distance );
52 float side_way,
float distance);
64 m_default_debug_Type = type;
An abstract interface for the actual karts.
Definition: abstract_kart.hpp:62
Handles the debug camera.
Definition: camera_debug.hpp:34
virtual ~CameraDebug()
Removes the camera scene node from the scene.
Definition: camera_debug.cpp:44
void update(float dt)
Called once per time frame to move the camera to the right position.
Definition: camera_debug.cpp:92
void getCameraSettings(float *above_kart, float *cam_angle, float *side_way, float *distance)
Determine the camera settings for the current frame.
Definition: camera_debug.cpp:55
CameraDebugType
Definition: camera_debug.hpp:36
@ CM_DEBUG_SIDE_OF_KART
Camera to the right of the kart.
Definition: camera_debug.hpp:40
@ CM_DEBUG_FRONT_OF_KART
Camera to the front of the kart.
Definition: camera_debug.hpp:42
@ CM_DEBUG_BEHIND_KART
Camera straight behind kart.
Definition: camera_debug.hpp:39
@ CM_DEBUG_GROUND
Camera at ground level, wheel debugging.
Definition: camera_debug.hpp:38
@ CM_DEBUG_INV_SIDE_OF_KART
Camera to the left of the kart.
Definition: camera_debug.hpp:41
@ CM_DEBUG_TOP_OF_KART
Camera hovering over kart.
Definition: camera_debug.hpp:37
static void setDebugType(CameraDebugType type)
Sets the debug type for all cameras.
Definition: camera_debug.hpp:62
void positionCamera(float dt, float above_kart, float cam_angle, float side_way, float distance)
Actually sets the camera based on the given parameter.
Definition: camera_debug.cpp:173
Handles the normal racing camera.
Definition: camera_normal.hpp:33
This is the base class for all cameras.
Definition: camera.hpp:49