disable mouse camera control if non-standard camera used
This commit is contained in:
@@ -84,6 +84,12 @@ Hitbox* Player::getHitbox() {
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
bool Player::isCurrentCameraBuiltin() const {
|
||||
return currentCamera.get() == fpCamera.get() ||
|
||||
currentCamera.get() == spCamera.get() ||
|
||||
currentCamera.get() == tpCamera.get();
|
||||
}
|
||||
|
||||
void Player::updateSelectedEntity() {
|
||||
selectedEid = selection.entity;
|
||||
}
|
||||
|
||||
@@ -131,6 +131,8 @@ public:
|
||||
return position;
|
||||
}
|
||||
|
||||
bool isCurrentCameraBuiltin() const;
|
||||
|
||||
Hitbox* getHitbox();
|
||||
|
||||
void setSpawnPoint(glm::vec3 point);
|
||||
@@ -147,4 +149,8 @@ public:
|
||||
inline u64id_t getId() const {
|
||||
return id;
|
||||
}
|
||||
|
||||
Level& getLevel() const {
|
||||
return level;
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user