public void SetView(Views.BaseView view, Quaternion?def = null) { if (view is Views.Orthogonal ortho) { rotation.Set(ortho.direction); } else if (def.HasValue) { rotation.Set(def.Value); } }
public void UpdateDist(float delta) { delta *= -Config.Input.Mouse.camScrollSpeed; dist.Set(Mathf.Clamp(dist.dest + delta, nearDist, farDist)); }