Add camera zone lock
This commit is contained in:
@@ -27,6 +27,10 @@ void CameraController::Configure(const CameraControllerConfig& config) {
|
||||
config_ = config;
|
||||
}
|
||||
|
||||
void CameraController::SetWorldBounds(const frostbite2D::Rect& worldBounds) {
|
||||
config_.worldBounds = worldBounds;
|
||||
}
|
||||
|
||||
void CameraController::SnapToTarget(frostbite2D::Camera& camera,
|
||||
const frostbite2D::Rect& targetBounds) {
|
||||
camera.setPosition(clampToWorld(
|
||||
|
||||
Reference in New Issue
Block a user