mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 18:23:54 +02:00
Revert "removed const keyword from Q_INVOKABLE for avatar getter methods such…"
This commit is contained in:
parent
75a1d43bce
commit
ba0467aafe
2 changed files with 4 additions and 4 deletions
|
@ -147,9 +147,9 @@ public:
|
|||
|
||||
Q_INVOKABLE glm::vec3 getNeckPosition() const;
|
||||
|
||||
Q_INVOKABLE glm::vec3 getAcceleration() { return _acceleration; }
|
||||
Q_INVOKABLE glm::vec3 getAngularVelocity() { return _angularVelocity; }
|
||||
Q_INVOKABLE glm::vec3 getAngularAcceleration() { return _angularAcceleration; }
|
||||
Q_INVOKABLE const glm::vec3& getAcceleration() const { return _acceleration; }
|
||||
Q_INVOKABLE const glm::vec3& getAngularVelocity() const { return _angularVelocity; }
|
||||
Q_INVOKABLE const glm::vec3& getAngularAcceleration() const { return _angularAcceleration; }
|
||||
|
||||
|
||||
/// Scales a world space position vector relative to the avatar position and scale
|
||||
|
|
|
@ -301,7 +301,7 @@ public:
|
|||
int getReceiveRate() const;
|
||||
|
||||
void setVelocity(const glm::vec3 velocity) { _velocity = velocity; }
|
||||
Q_INVOKABLE glm::vec3 getVelocity() const { return _velocity; }
|
||||
Q_INVOKABLE const glm::vec3& getVelocity() const { return _velocity; }
|
||||
const glm::vec3& getTargetVelocity() const { return _targetVelocity; }
|
||||
|
||||
bool shouldDie() const { return _owningAvatarMixer.isNull() || getUsecsSinceLastUpdate() > AVATAR_SILENCE_THRESHOLD_USECS; }
|
||||
|
|
Loading…
Reference in a new issue