Increased mininum camera distance because the marble got scaled up.
This commit is contained in:
parent
9598a86ffe
commit
812321edec
@ -48,8 +48,8 @@ void Camera::updateRotation(glm::vec2 rotation) {
|
||||
}
|
||||
|
||||
void Camera:: updateDistance(float distance) {
|
||||
if (this->distance + distance <= 1.0f) {
|
||||
this->distance = 1.0f;
|
||||
if (this->distance + distance <= 2.5f) {
|
||||
this->distance = 2.5f;
|
||||
}
|
||||
else if (this->distance + distance >= 30.0f) {
|
||||
this->distance = 30.f;
|
||||
|
Loading…
Reference in New Issue
Block a user