inline bool Move2D(GameObject& gameObject, valuetype deltaTimeSeconds, CollisionResponse response, const GameObjectCollection& other, bool updateVelocity = true) { // Calculate the motion vector from the velocity and delta time vector2D<valuetype> motion = gameObject.velocity2D() * deltaTimeSeconds; return Move2D(gameObject, motion, response, other, updateVelocity); }
void Camera::OnMouseMotion(GLFWwindow* window, double xpos, double ypos) { Move2D(glm::vec2(xpos, ypos)); }