| 47 | } |
| 48 | |
| 49 | void DrawCamera::set_viewing_area(Vector2f viewingAreaNew) { |
| 50 | viewingArea = viewingAreaNew; |
| 51 | float maxDim = std::max(viewingArea.x(), viewingArea.y()); |
| 52 | WorldScalar a = WorldScalar(maxDim * 0.708f) * c.inverseScale; |
| 53 | WorldVec center = c.from_space(viewingArea * 0.5f); |
| 54 | viewingAreaGenerousCollider = SCollision::AABB<WorldScalar>(center - WorldVec{a, a}, center + WorldVec{a, a}); |
| 55 | } |
| 56 | |
| 57 | void DrawCamera::smooth_move_to(World& w, const CoordSpaceHelper& newCoords, Vector2f windowSize, bool instantJump) { |
| 58 | smoothMove.start = c; |
no test coverage detected