Do not consider falling actors as grounded

coverity_clang_test
elsid 2 years ago
parent 953954ff95
commit 1fc7bd7775
No known key found for this signature in database
GPG Key ID: 4DE04C198CBA7625

@ -8,6 +8,7 @@
#include <components/resource/bulletshape.hpp> #include <components/resource/bulletshape.hpp>
#include <components/sceneutil/positionattitudetransform.hpp> #include <components/sceneutil/positionattitudetransform.hpp>
#include "../mwmechanics/creaturestats.hpp"
#include "../mwworld/class.hpp" #include "../mwworld/class.hpp"
#include "collisiontype.hpp" #include "collisiontype.hpp"
@ -30,7 +31,7 @@ namespace MWPhysics
, mStuckFrames(0) , mStuckFrames(0)
, mLastStuckPosition{ 0, 0, 0 } , mLastStuckPosition{ 0, 0, 0 }
, mForce(0.f, 0.f, 0.f) , mForce(0.f, 0.f, 0.f)
, mOnGround(true) , mOnGround(ptr.getClass().getCreatureStats(ptr).getFallHeight() == 0)
, mOnSlope(false) , mOnSlope(false)
, mInternalCollisionMode(true) , mInternalCollisionMode(true)
, mExternalCollisionMode(true) , mExternalCollisionMode(true)

Loading…
Cancel
Save