diff --git a/src/graphics/camera.cpp b/src/graphics/camera.cpp index 2d1331508..e0fa07fab 100644 --- a/src/graphics/camera.cpp +++ b/src/graphics/camera.cpp @@ -255,6 +255,7 @@ void Camera::computeNormalCameraPosition(Vec3 *wanted_position, wanted_position->setX(-sin(angle_around)); wanted_position->setY( sin(angle_up) ); wanted_position->setZ(-cos(angle_around)); + *wanted_position *= m_distance; *wanted_position += *wanted_target; } // computeNormalCameraPosition diff --git a/src/karts/moveable.cpp b/src/karts/moveable.cpp index 93d4e5340..3284efdd7 100644 --- a/src/karts/moveable.cpp +++ b/src/karts/moveable.cpp @@ -31,6 +31,7 @@ Moveable::Moveable() m_motion_state = 0; m_mesh = NULL; m_node = NULL; + m_heading = 0; } // Moveable //-----------------------------------------------------------------------------