Adjusted debug camera somewhat to get a closer view

of the kart.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10972 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
hikerstk 2012-03-15 05:56:23 +00:00
parent b9f6b6f0d5
commit 8108045c03

View File

@ -423,9 +423,11 @@ void Camera::update(float dt)
{
core::vector3df xyz = m_kart->getXYZ().toIrrVector();
m_camera->setTarget(xyz);
xyz.Y = xyz.Y+30;
xyz.Y = xyz.Y+15;
m_camera->setPosition(xyz);
m_camera->setNearValue(52.0); // To view inside tunnels (FIXME 52>30 why??? makes no sense)
// To view inside tunnels (FIXME 27>15 why??? makes no sense
// - the kart should not be visible, but it works)
m_camera->setNearValue(27.0);
return;
}