SpiecsEngine
 
Loading...
Searching...
No Matches

◆ MousePan()

void Spices::MeshController::MousePan ( const glm::vec2 & delta)
private

Definition at line 43 of file MeshController.cpp.

44 {
45 auto [xSpeed, ySpeed] = PanSpeed();
46 m_FocalPoint += -GetRightDirection() * delta.x * xSpeed * m_Distance;
47 m_FocalPoint += GetUpDirection() * delta.y * ySpeed * m_Distance;
48 }
glm::vec3 GetRightDirection() const
std::pair< float, float > PanSpeed() const
glm::vec3 GetUpDirection() const

References PanSpeed().