1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-20 10:53:51 +00:00

World::moveObjectImp

This commit is contained in:
Sebastian Wick 2011-08-02 18:50:31 +02:00
parent 7cf66443df
commit 41d4ad93f8
2 changed files with 8 additions and 1 deletions

View file

@ -647,7 +647,7 @@ namespace MWWorld
} }
} }
void World::moveObject (Ptr ptr, float x, float y, float z) void World::moveObjectImp (Ptr ptr, float x, float y, float z)
{ {
ptr.getCellRef().pos.pos[0] = x; ptr.getCellRef().pos.pos[0] = x;
ptr.getCellRef().pos.pos[1] = y; ptr.getCellRef().pos.pos[1] = y;
@ -674,6 +674,11 @@ namespace MWWorld
} }
} }
} }
}
void World::moveObject (Ptr ptr, float x, float y, float z)
{
moveObjectImp(ptr, x, y, z);
mPhysics->moveObject (ptr.getRefData().getHandle(), Ogre::Vector3 (x, y, z), mPhysics->moveObject (ptr.getRefData().getHandle(), Ogre::Vector3 (x, y, z),
!DoingPhysics::isDoingPhysics()); !DoingPhysics::isDoingPhysics());

View file

@ -180,6 +180,8 @@ namespace MWWorld
void deleteObject (Ptr ptr); void deleteObject (Ptr ptr);
void moveObjectImp (Ptr ptr, float x, float y, float z);
void moveObject (Ptr ptr, float x, float y, float z); void moveObject (Ptr ptr, float x, float y, float z);
void indexToPosition (int cellX, int cellY, float &x, float &y, bool centre = false) const; void indexToPosition (int cellX, int cellY, float &x, float &y, bool centre = false) const;