Lab 6: Move Space Wars Agent
- Turn off the gravity of the sun. (1 point)
- Move the agent over the point 100,100. (3 points)
The agents Rotation.Z sets its Rotation in the X plane.
Setting the agents Rotation.Z = (float) 3.14; sets it to point down.
I also used Atan2 to convert a vector to radians.
- Turn the gravity back on, then move the agent over the same
point. (2 points)
- Turn off the gravity again, and see if you can get the
agent to stop at this point. (2 point)
- Finally, do it with the gravity back on. (2 points)