|
|
@ -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); |
|
|
|