 # Help on Bombing Run [SOLVED]

#1

I don’t understand some of the concepts. Here is my code:

``````while True:
enemy = hero.findNearestEnemy()
if enemy:
# Find the vector of attack
vector = Vector.add(enemy.pos, hero.pos)
# Use trigonometry to find the the angle in Radians!
radians = Math.atan2(hero.pos, vector)
degrees = radians * (180 / Math.PI)
hero.say(degrees)
``````

There are no errors, the hero doesn’t even say a number. I think this part of the code:

``````        # Find the vector of attack
vector = Vector.add(enemy.pos, hero.pos)
# Use trigonometry to find the the angle in Radians!
radians = Math.atan2(hero.pos, vector)
``````

is incorrect. Can someone please help? And maybe even explain what the answer means?

#2

which area are you in for that level

#3

I don’t know what you mean.

#4

It’s in the glacier. (don’t want to confuse anyone . #5

You have located the incorrect code. A is the vector of your hero.
R is the vector of your enemy
B is the griffins’ attack vector

#6

Can you please explain the diagram? I really want to understand this. 