mirror of
https://github.com/overte-org/overte.git
synced 2025-04-22 19:13:38 +02:00
mohawk also follows body pitch when accelerating
This commit is contained in:
parent
aae6d0cf3c
commit
995fbcf4f9
1 changed files with 1 additions and 1 deletions
|
@ -229,7 +229,7 @@ void Head::renderMohawk(bool lookingInMirror) {
|
|||
glTranslatef(_position.x, _position.y, _position.z);
|
||||
glRotatef((lookingInMirror ? (_bodyRotation.y - _yaw) : (_bodyRotation.y + _yaw)), 0, 1, 0);
|
||||
glRotatef(lookingInMirror ? _roll: -_roll, 0, 0, 1);
|
||||
glRotatef(-_pitch, 1, 0, 0);
|
||||
glRotatef(-_pitch - _bodyRotation.x, 1, 0, 0);
|
||||
|
||||
glBegin(GL_TRIANGLE_FAN);
|
||||
for (int i = 0; i < MOHAWK_TRIANGLES; i++) {
|
||||
|
|
Loading…
Reference in a new issue