|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.planeth.gtroids.agents.AutoTarget
Helper to target a gun
| Constructor Summary | |
AutoTarget()
|
|
| Method Summary | |
static Vector2D |
targetToObj2(Vector2D gunPos,
Vector2D gunVel,
Vector2D targetPos)
Calculates the orientation from a gun to a target dependent on gunVel and shotVel(which is constant). |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public AutoTarget()
| Method Detail |
public static Vector2D targetToObj2(Vector2D gunPos,
Vector2D gunVel,
Vector2D targetPos)
gunPos - the position of the gungunVel - the base velocity of the guntargetPos - the position of the target
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||