|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||

java.lang.Objectcz.cuni.amis.pogamut.ut2004.agent.navigation.navmesh.pathfollowing.JumpModule
public class JumpModule
Module for computation of jumps. Decides if the jump is doable, determines correct type and power of the jump.
| Field Summary | |
|---|---|
static double |
MAX_DOUBLE_JUMP_POWER
|
static double |
MAX_JUMP_HEIGHT
|
static double |
MAX_SINGLE_JUMP_POWER
|
| Constructor Summary | |
|---|---|
JumpModule(NavMesh mesh,
Logger log)
|
|
| Method Summary | |
|---|---|
Double |
computeJump(double targetZ,
double timeToPassDistance,
double jumpAngleCos)
Compute jump power. |
Double |
computeJump(Location start,
JumpBoundaries boundaries,
double velocity,
double jumpAngleCos)
Compute power for given jump. |
JumpBoundaries |
computeJumpBoundaries(NavPointNeighbourLink jumpLink)
Computes jump boundaries for given link, with using maximal available information about environment. |
BorderPoint |
getBorderPoint(Location start,
Location end)
Gets border point of the mesh for the path between specified points. |
Location |
getCollisionLocation(JumpBoundaries boundaries)
|
double |
getCorrectedAngle(double angleCos,
boolean isFirstStep)
|
double |
getCorrectedVelocity(double velocity,
boolean isAccelerating)
|
Location |
getNearestMeshDirection(Location location,
Location direction)
|
boolean |
isJumpable(Location start,
Location end,
double velocity)
Whether the given jump is doable. |
boolean |
needsJump(NavPointNeighbourLink link)
Decides whether jump is needed for following given link. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final double MAX_DOUBLE_JUMP_POWER
public static final double MAX_SINGLE_JUMP_POWER
public static final double MAX_JUMP_HEIGHT
| Constructor Detail |
|---|
public JumpModule(NavMesh mesh,
Logger log)
| Method Detail |
|---|
public JumpBoundaries computeJumpBoundaries(NavPointNeighbourLink jumpLink)
jumpLink - Link on which the jump should occur.
public BorderPoint getBorderPoint(Location start,
Location end)
start - Start of the path.end - End of the path.
public boolean needsJump(NavPointNeighbourLink link)
link - Link to analyze.
public Double computeJump(Location start,
JumpBoundaries boundaries,
double velocity,
double jumpAngleCos)
start - Start location of the jump.boundaries - Jump boundaries for given link.velocity - Current velocity of the bot.jumpAngleCos - Cos of angle of direction of the movement to the
direction of the link.
public Double computeJump(double targetZ,
double timeToPassDistance,
double jumpAngleCos)
targetZ - Difference between start and end Z coordinate.timeToPassDistance - Time it will take to pass the distance from
start to end.jumpAngleCos - Cos of angle of direction of the movement to the
direction of the link.
public boolean isJumpable(Location start,
Location end,
double velocity)
start - Start of the jump.end - End of the jump.velocity - Current velocity.
public Location getCollisionLocation(JumpBoundaries boundaries)
public Location getNearestMeshDirection(Location location,
Location direction)
public double getCorrectedVelocity(double velocity,
boolean isAccelerating)
public double getCorrectedAngle(double angleCos,
boolean isFirstStep)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||