Class PathContext
raft.kilavuz.runtime.PathContext
public class PathContext
encapsulated information about pathfinding enviroment.
See Also:
-
Field Summary |
|
distanceToEdgesthis much space is tried to left between path points and portal sides. |
|
|
|
unitSizesize of unit in grid space we are trying to find a path for. |
|
velocitymove velocity in grid units per second. |
Constructor Summary |
PathContext()creates a new PathContext with default values |
PathContext(float unitSize)creates a new PathContext with given unit size and unitSize/2 as distanceToEdge. |
PathContext(float unitSize, float distanceToEdge)creates a new PathContext with given unit size and unitSize/2 as distanceToEdge. |
Field Detail
unitSize
public float unitSize
-
size of unit in grid space we are trying to find a path for.
1 means unit is as wide as a Grid Cell. default is 1
See Also:
-
distanceToEdges
public float distanceToEdges
-
this much space is tried to left between path points and portal sides.
1 means unit is as wide as a Grid Cell. default is 0.5
velocity
public float velocity
-
move velocity in grid units per second. default is 1
turnVelocity
public float turnVelocity
-
turn velocity in radians per second. default is PI (180 degrees)
Constructor Detail
PathContext
public PathContext()
-
creates a new PathContext with default values
PathContext
public PathContext(float unitSize)
-
creates a new PathContext with given unit size and unitSize/2 as distanceToEdge.
note this method doesnt make any checks on given values but you will get
an exception while trying to find a path or creating an executable path
if values are negative
PathContext
public PathContext(float unitSize,
float distanceToEdge)
-
creates a new PathContext with given unit size and unitSize/2 as distanceToEdge.
note this method doesnt make any checks on given values but you will get
an exception while trying to find a path or creating an executable path
if values are negative
DocFlex/Doclet is both a multi-format Javadoc doclet and a free edition of DocFlex/Javadoc. If you need to customize your Javadoc without writing a full-blown doclet from scratch, DocFlex/Javadoc may be the only tool able to help you! Find out more at www.docflex.com