cz.cuni.amis.pogamut.ut2004.agent.navigation.navmesh.pathfollowing
Class CollisionDetector

Package class diagram package CollisionDetector
java.lang.Object
  extended by cz.cuni.amis.pogamut.ut2004.agent.navigation.navmesh.pathfollowing.CollisionDetector

public class CollisionDetector
extends Object

Responsible for detecting collisions in navigation. Investigates navigation information and detects if collision occurred.

Author:
Bogo

Constructor Summary
CollisionDetector()
           
 
Method Summary
 boolean isColliding(Location currentLocation, double currentVelocity, double currentDistance)
          Detects if the bot is colliding.
 void reset()
          Resets the state of collision detector.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CollisionDetector

public CollisionDetector()
Method Detail

isColliding

public boolean isColliding(Location currentLocation,
                           double currentVelocity,
                           double currentDistance)
Detects if the bot is colliding. Tests the current navigation information against stored data from previous checks.

Parameters:
currentLocation - Current location of bot
currentVelocity - Current velocity of bot
currentDistance - Current distance of bot
Returns:
Whether the bot is colliding

reset

public void reset()
Resets the state of collision detector.



Copyright © 2015 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.