forked from mirror/openmw-tes3mp
Fix water walking
This commit is contained in:
parent
8df0effcf5
commit
64a4c2785e
2 changed files with 3 additions and 5 deletions
|
@ -743,7 +743,8 @@ namespace MWWorld
|
||||||
|
|
||||||
// TODO: this seems to have a slight performance impact
|
// TODO: this seems to have a slight performance impact
|
||||||
if (waterCollision)
|
if (waterCollision)
|
||||||
mEngine->mDynamicsWorld->addCollisionObject(&object);
|
mEngine->mDynamicsWorld->addCollisionObject(&object,
|
||||||
|
0xff, OEngine::Physic::CollisionType_Actor);
|
||||||
|
|
||||||
// 100 points of slowfall reduce gravity by 90% (this is just a guess)
|
// 100 points of slowfall reduce gravity by 90% (this is just a guess)
|
||||||
float slowFall = 1-std::min(std::max(0.f, (effects.get(ESM::MagicEffect::SlowFall).mMagnitude / 100.f) * 0.9f), 0.9f);
|
float slowFall = 1-std::min(std::max(0.f, (effects.get(ESM::MagicEffect::SlowFall).mMagnitude / 100.f) * 0.9f), 0.9f);
|
||||||
|
|
|
@ -82,10 +82,7 @@ namespace Physic
|
||||||
bool mPlaceable;
|
bool mPlaceable;
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
|
||||||
* A physic actor uses a rigid body based on box shapes.
|
|
||||||
* Pmove is used to move the physic actor around the dynamic world.
|
|
||||||
*/
|
|
||||||
class PhysicActor
|
class PhysicActor
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
|
Loading…
Reference in a new issue