mirror of
https://github.com/OpenMW/openmw.git
synced 2025-03-01 00:39:43 +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/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 a new issue