diff --git a/Shared/Player.cs b/Shared/Player.cs index e7db54c..a94128a 100644 --- a/Shared/Player.cs +++ b/Shared/Player.cs @@ -182,10 +182,10 @@ namespace SemiColinGames { float visionRangeSq = visionRange * visionRange; Vector2 ray = new Vector2(visionRange * (int) facing, 0); if (pose == Pose.Stretching) { - ray = Rotate(ray, FMath.DegToRad(-30)); + ray = Rotate(ray, (int) facing * FMath.DegToRad(-30)); } if (pose == Pose.Crouching) { - ray = Rotate(ray, FMath.DegToRad(30)); + ray = Rotate(ray, (int) facing * FMath.DegToRad(30)); } Vector2 coneBottom = Rotate(ray, fov); Vector2 coneTop = Rotate(ray, -fov);