com.planeth.gtroids.agents
Class AutoTarget

java.lang.Object
  extended bycom.planeth.gtroids.agents.AutoTarget

public class AutoTarget
extends java.lang.Object

Helper to target a gun

Author:
Andreas Grässer, gal@planet-h.com
created 24.12.2005

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

AutoTarget

public AutoTarget()
Method Detail

targetToObj2

public 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).

Parameters:
gunPos - the position of the gun
gunVel - the base velocity of the gun
targetPos - the position of the target
Returns:
Returns the orientation from gun to target