mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-17 01:10:10 +00:00
Do not consider falling actors as grounded
This commit is contained in:
parent
953954ff95
commit
1fc7bd7775
@ -8,6 +8,7 @@
|
||||
#include <components/resource/bulletshape.hpp>
|
||||
#include <components/sceneutil/positionattitudetransform.hpp>
|
||||
|
||||
#include "../mwmechanics/creaturestats.hpp"
|
||||
#include "../mwworld/class.hpp"
|
||||
|
||||
#include "collisiontype.hpp"
|
||||
@ -30,7 +31,7 @@ namespace MWPhysics
|
||||
, mStuckFrames(0)
|
||||
, mLastStuckPosition{ 0, 0, 0 }
|
||||
, mForce(0.f, 0.f, 0.f)
|
||||
, mOnGround(true)
|
||||
, mOnGround(ptr.getClass().getCreatureStats(ptr).getFallHeight() == 0)
|
||||
, mOnSlope(false)
|
||||
, mInternalCollisionMode(true)
|
||||
, mExternalCollisionMode(true)
|
||||
|
Loading…
Reference in New Issue
Block a user