mirror of
https://github.com/OpenMW/openmw.git
synced 2025-02-01 17:15:34 +00:00
Allow stepping when not being affected by gravity
This commit is contained in:
parent
8255a64bfe
commit
a510adc572
1 changed files with 1 additions and 1 deletions
|
@ -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…
Reference in a new issue