Skip to content

Commit

Permalink
Fixed|Model Renderer: Models drawn facing 90 degrees the wrong way
Browse files Browse the repository at this point in the history
The configured front axis of the model should be facing the object's
angle direction.
  • Loading branch information
skyjake committed Jul 22, 2015
1 parent 0f83237 commit 6df6c00
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions doomsday/apps/client/src/render/modelrenderer.cpp
Expand Up @@ -351,8 +351,8 @@ void ModelRenderer::render(vissprite_t const &spr)
Matrix4f::translate((spr.pose.origin + spr.pose.srvo).xzy());

Matrix4f localMat =
Matrix4f::rotate(spr.pose.viewAligned? spr.pose.yawAngleOffset :
spr.pose.yaw,
Matrix4f::rotate(-90 + (spr.pose.viewAligned? spr.pose.yawAngleOffset :
spr.pose.yaw),
Vector3f(0, 1, 0) /* vertical axis for yaw */);

gl::Cull culling = gl::Back;
Expand Down

0 comments on commit 6df6c00

Please sign in to comment.