| 34 | } |
| 35 | |
| 36 | glm::vec3 ITool::screenToLocalWorld(glm::ivec2 mousePos) const { |
| 37 | glm::vec3 worldPos = screenToWorld(mousePos); |
| 38 | if (context_.simulation != nullptr) { |
| 39 | worldPos -= context_.simulation->world().getRenderOffset(); |
| 40 | } |
| 41 | return worldPos; |
| 42 | } |
| 43 | |
| 44 | glm::ivec2 ITool::worldToScreen(glm::vec3 worldPos) const { |
| 45 | if (BaseRenderer* renderer = context_.activeRenderer(); renderer != nullptr) { |
nothing calls this directly
no outgoing calls
no test coverage detected