Skip to content

Commit 6b6ccf1

Browse files
committed
Removed print
1 parent c95e6bf commit 6b6ccf1

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

zz_eggHuntAuto.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,12 @@ def pathAround(player, circle, target, radius = 11):
4141
line = player - circle
4242
line /= np.linalg.norm(line) # normalize to length 1
4343
angle = np.arctan2(line[1],line[0])
44+
45+
# Create two points rotated 90 degrees from player -> circle intersection
4446
newAngle1 = angle + 0.5 * np.pi
4547
newAngle2 = angle - 0.5 * np.pi
4648
p1 = circle + [radius * np.cos(newAngle1), radius * np.sin(newAngle1)]
4749
p2 = circle + [radius * np.cos(newAngle2), radius * np.sin(newAngle2)]
48-
print(circle, p1, p2)
4950
# Find which of two possible points gives shortest path
5051
p1length = np.linalg.norm(p1 - player) + np.linalg.norm(target - p1)
5152
p2length = np.linalg.norm(p2 - player) + np.linalg.norm(target - p2)
@@ -139,7 +140,7 @@ def engage():
139140
intersectPoint = hits[0]
140141

141142
if closestIntersect < 9999:
142-
target = pathAround(playerPos, np.array(intersectPoint), targetPos)
143+
target = pathAround(playerPos, np.array(intersectPoint), targetPos) # Move around icicle instead
143144

144145
# Calculate forward and right directions relative to camera space
145146
pX = player[0]

0 commit comments

Comments
 (0)