forked from mirror/openmw-tes3mp
Use the correct position for the actor
This commit is contained in:
parent
bec538bfa1
commit
6b32fa7999
1 changed files with 1 additions and 1 deletions
|
@ -183,7 +183,7 @@ Ogre::Vector3 CharacterController::update(float duration)
|
|||
|
||||
if(duration > 0.0f)
|
||||
{
|
||||
Ogre::Vector3 pos(mPtr.getCellRef().mPos.pos);
|
||||
Ogre::Vector3 pos(mPtr.getRefData().getPosition().pos);
|
||||
// FIXME: Get the actual radius for the object. Maybe this should go into mwworld to replace pmove?
|
||||
Ogre::Vector3 res = mMovementSolver->move(pos, movement, duration, Ogre::Vector3(15,15,30));
|
||||
MWBase::Environment::get().getWorld()->moveObject(mPtr, res.x, res.y, res.z);
|
||||
|
|
Loading…
Reference in a new issue