cz.cuni.amis.pogamut.ut2004.agent.navigation.navmesh.pathfollowing
Class CollisionDetector
java.lang.Object
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
|
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 |
CollisionDetector
public CollisionDetector()
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 botcurrentVelocity - Current velocity of botcurrentDistance - 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.