mirror of
https://github.com/OpenMW/openmw.git
synced 2025-06-19 21:11:32 +00:00
Do not consider falling actors as grounded
This commit is contained in:
parent
953954ff95
commit
1fc7bd7775
1 changed files with 2 additions and 1 deletions
|
@ -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…
Reference in a new issue