mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-03-29 22:20:33 +00:00
Allow stepping when not being affected by gravity
This commit is contained in:
parent
8255a64bfe
commit
a510adc572
@ -156,7 +156,7 @@ namespace MWWorld
|
||||
//std::cout<<"angle: "<<getSlope(trace.planenormal)<<"\n";
|
||||
if(getSlope(currentNormal) > sMaxSlope || currentNormal == lastNormal)
|
||||
{
|
||||
if(!onground ||
|
||||
if((gravity && !onground) ||
|
||||
!stepMove(newPosition, velocity, remainingTime, verticalRotation, halfExtents, isInterior, engine))
|
||||
{
|
||||
Ogre::Vector3 resultantDirection = currentNormal.crossProduct(up);
|
||||
|
Loading…
x
Reference in New Issue
Block a user