Added 'behind kart' camera which helps debugging graphical
vs physical chassis position issues.
This commit is contained in:
@@ -513,7 +513,8 @@ namespace UserConfigParams
|
||||
PARAM_PREFIX bool m_check_debug PARAM_DEFAULT( false );
|
||||
|
||||
/** Special debug camera: 0: normal camera; 1: being high over the kart;
|
||||
2: on ground level; 3: free first person camera; */
|
||||
2: on ground level; 3: free first person camera;
|
||||
4: straight behind kart */
|
||||
PARAM_PREFIX int m_camera_debug PARAM_DEFAULT( false );
|
||||
|
||||
/** True if physics debugging should be enabled. */
|
||||
|
||||
@@ -766,6 +766,8 @@ int handleCmdLine()
|
||||
UserConfigParams::m_camera_debug=2;
|
||||
if(CommandLine::has("--camera-debug"))
|
||||
UserConfigParams::m_camera_debug=1;
|
||||
if(CommandLine::has("--camera-kart-debug"))
|
||||
UserConfigParams::m_camera_debug=4;
|
||||
if(CommandLine::has("--physics-debug"))
|
||||
UserConfigParams::m_physics_debug=1;
|
||||
if(CommandLine::has("--check-debug"))
|
||||
|
||||
@@ -97,6 +97,7 @@ enum DebugMenuCommand
|
||||
DEBUG_GUI_CAM_FREE,
|
||||
DEBUG_GUI_CAM_TOP,
|
||||
DEBUG_GUI_CAM_WHEEL,
|
||||
DEBUG_GUI_CAM_BEHIND_KART,
|
||||
DEBUG_GUI_CAM_NORMAL,
|
||||
DEBUG_GUI_CAM_SMOOTH,
|
||||
DEBUG_GUI_CAM_ATTACH,
|
||||
@@ -251,6 +252,7 @@ bool onEvent(const SEvent &event)
|
||||
sub->addItem(L"Hide karts", DEBUG_GUI_HIDE_KARTS);
|
||||
sub->addItem(L"Top view", DEBUG_GUI_CAM_TOP);
|
||||
sub->addItem(L"Wheel view", DEBUG_GUI_CAM_WHEEL);
|
||||
sub->addItem(L"Behind kart view", DEBUG_GUI_CAM_BEHIND_KART);
|
||||
sub->addItem(L"First person view", DEBUG_GUI_CAM_FREE);
|
||||
sub->addItem(L"Normal view", DEBUG_GUI_CAM_NORMAL);
|
||||
sub->addItem(L"Toggle smooth camera", DEBUG_GUI_CAM_SMOOTH);
|
||||
@@ -520,6 +522,11 @@ bool onEvent(const SEvent &event)
|
||||
UserConfigParams::m_camera_debug = 2;
|
||||
irr_driver->getDevice()->getCursorControl()->setVisible(true);
|
||||
}
|
||||
else if (cmdID == DEBUG_GUI_CAM_BEHIND_KART)
|
||||
{
|
||||
UserConfigParams::m_camera_debug = 4;
|
||||
irr_driver->getDevice()->getCursorControl()->setVisible(true);
|
||||
}
|
||||
else if (cmdID == DEBUG_GUI_CAM_FREE)
|
||||
{
|
||||
UserConfigParams::m_camera_debug = 3;
|
||||
|
||||
Reference in New Issue
Block a user