mirror of
https://github.com/OpenMW/openmw.git
synced 2025-01-21 06:53:53 +00:00
Heavily mitigate jittery objects far from origin
This commit is contained in:
parent
d8d7a3b372
commit
cdae1c4c97
1 changed files with 6 additions and 4 deletions
|
@ -4,6 +4,8 @@
|
|||
#include <mutex>
|
||||
#include <memory>
|
||||
|
||||
#include <osg/Vec3d>
|
||||
|
||||
#include <BulletCollision/CollisionDispatch/btCollisionObject.h>
|
||||
|
||||
#include "../mwworld/ptr.hpp"
|
||||
|
@ -56,12 +58,12 @@ namespace MWPhysics
|
|||
mPosition = position;
|
||||
}
|
||||
|
||||
osg::Vec3f getPosition() const
|
||||
osg::Vec3d getPosition() const
|
||||
{
|
||||
return mPosition;
|
||||
}
|
||||
|
||||
osg::Vec3f getPreviousPosition() const
|
||||
osg::Vec3d getPreviousPosition() const
|
||||
{
|
||||
return mPreviousPosition;
|
||||
}
|
||||
|
@ -71,8 +73,8 @@ namespace MWPhysics
|
|||
std::unique_ptr<btCollisionObject> mCollisionObject;
|
||||
osg::Vec3f mVelocity;
|
||||
osg::Vec3f mSimulationPosition;
|
||||
osg::Vec3f mPosition;
|
||||
osg::Vec3f mPreviousPosition;
|
||||
osg::Vec3d mPosition;
|
||||
osg::Vec3d mPreviousPosition;
|
||||
};
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue