Guest User

Untitled

a guest
Jun 26th, 2017
185
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. if (m_timer.X == 0.0f)
  2. m_cam_vel.X = std::fabs((m_last_cam_pos.X - player_yaw)) * 0.01f;
  3. else
  4. m_cam_vel.X = std::fabs((m_last_cam_pos.X - player_yaw) / m_timer.X) * 0.01f;
  5.  
  6. if (m_timer.Y == 0.0f)
  7. m_cam_vel.Y = std::fabs(m_last_cam_pos.Y - m_camera_direction.Y);
  8. else
  9. m_cam_vel.Y = std::fabs((m_last_cam_pos.Y - m_camera_direction.Y) / m_timer.Y);
Advertisement
Add Comment
Please, Sign In to add comment