public override bool TestIntersection(CacheObject OBJ, Vector3 BotPosition) { if (Obstacletype.Value == ObstacleType.MovingAvoidance) { Vector3 ProjectileEndPoint = MathEx.GetPointAt(Position, ProjectileMaxRange, Rotation); return(GridPoint.LineIntersectsLine(BotPosition, Position, PointPosition, ProjectileEndPoint)); } return(MathEx.IntersectsPath(base.Position, Radius, BotPosition, OBJ.Position)); }