mirror of
https://github.com/overte-org/overte.git
synced 2025-04-21 08:04:01 +02:00
make the absolute head yaw getter const
This commit is contained in:
parent
fbdcd57529
commit
7c855464e1
2 changed files with 2 additions and 2 deletions
|
@ -275,7 +275,7 @@ void Avatar::UpdateGyros(float frametime, SerialInterface * serialInterface, glm
|
|||
addLean(-measured_lateral_accel * frametime * HEAD_LEAN_SCALE, -measured_fwd_accel*frametime * HEAD_LEAN_SCALE);
|
||||
}
|
||||
|
||||
float Avatar::getAbsoluteHeadYaw() {
|
||||
float Avatar::getAbsoluteHeadYaw() const {
|
||||
return _bodyYaw + _headYaw;
|
||||
}
|
||||
|
||||
|
|
|
@ -178,7 +178,7 @@ public:
|
|||
float getBodyYaw() {return _bodyYaw;};
|
||||
void addBodyYaw(float y) {_bodyYaw += y;};
|
||||
|
||||
float getAbsoluteHeadYaw();
|
||||
float getAbsoluteHeadYaw() const;
|
||||
void setLeanForward(float dist);
|
||||
void setLeanSideways(float dist);
|
||||
void addLean(float x, float z);
|
||||
|
|
Loading…
Reference in a new issue