Fixed characters walking slightly above the floor
This commit is contained in:
@@ -360,7 +360,7 @@ namespace Barotrauma
|
|||||||
Limb leg = i == -1 ? leftLeg : rightLeg;
|
Limb leg = i == -1 ? leftLeg : rightLeg;
|
||||||
|
|
||||||
Vector2 footPos = stepSize * -i;
|
Vector2 footPos = stepSize * -i;
|
||||||
if (stepSize.Y > 0.0f) stepSize.Y = -0.15f;
|
if (stepSize.Y < 0.0f) stepSize.Y = -0.15f;
|
||||||
|
|
||||||
if (onSlope && stairs == null)
|
if (onSlope && stairs == null)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user