Fixed object orientation as good as possible, what's left is to find the mirror bug in the M2-Loader

Lowered minimal camera height for a more WoW-ish perspective
This commit is contained in:
shlainn 2008-04-07 01:59:37 +00:00
parent 4cef295bed
commit f84ad0539d

View File

@ -166,8 +166,8 @@ void SceneWorld::OnUpdate(s32 timediff)
}
// camera height control
if (eventrecv->mouse.wheel < 10)
eventrecv->mouse.wheel = 10;
if (eventrecv->mouse.wheel < 2)
eventrecv->mouse.wheel = 2;
camera->setHeight( eventrecv->mouse.wheel + terrain->getHeight(camera->getPosition()) );
WorldPosition wp = GetWorldPosition();
@ -303,7 +303,7 @@ void SceneWorld::UpdateTerrain(void)
if(doodad)
{
doodad->setPosition(core::vector3df(-d->x, d->z, -d->y));
doodad->setRotation(core::vector3df(d->ox + 270.0f, d->oy, d->oz)); // +270 solves M2 models lying on the side
doodad->setRotation(core::vector3df(270+d->ox, -d->oy-90, -d->oz)); // +270 solves M2 models lying on the side
}
}
}