/** Reset is called when a new race starts. Make sure that the camera is aligned neutral, and not like in the previous race */ void Camera::reset() { m_kart = m_original_kart; setMode(CM_NORMAL); if (m_kart != NULL) setInitialTransform(); } // reset
ThreeDAnimation::ThreeDAnimation(const Track &track, const XMLNode &node) : AnimationBase(node) { /** Save the initial position and rotation in the base animation object. */ setInitialTransform(m_animated_node->getPosition(), m_animated_node->getRotation()); m_body = NULL; m_motion_state = NULL; m_collision_shape = NULL; m_hpr = AnimationBase::m_animated_node->getRotation(); std::string shape; node.get("shape", &shape); if(shape!="") { createPhysicsBody(shape); } } // ThreeDAnimation