public class NavMeshQuery
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
NodeQueue |
_openList |
QueryData |
_query |
NodePool |
_tinyNodePool |
static float |
HScale |
NavMesh |
NavMesh |
NodePool |
NodePool |
static float |
RayCastLimitProportion |
static short |
StraightPathAllCrossings |
static short |
StraightPathAreaCrossings |
static short |
StraightPathEnd |
static short |
StraightPathOffMeshConnection |
static short |
StraightPathStart |
Constructor and Description |
---|
NavMeshQuery() |
Modifier and Type | Method and Description |
---|---|
DetourStatusReturn |
ClosestPointOnPoly(long refId,
float[] pos,
float[] closest,
boolean posOverPoly) |
java.util.EnumSet<Status> |
ClosestPointOnPolyBoundary(long refId,
float[] pos,
float[] closest) |
DetourStatusReturn |
FinalizeSlicedFindPath(long[] path,
int maxPath) |
DetourStatusReturn |
FinalizeSlicedFindPathPartial(long[] existing,
int existingSize,
long[] path,
int maxPath) |
DetourNumericReturn |
FindDistanceToWall(long startRef,
float[] centerPos,
float maxRadius,
QueryFilter filter,
float hitDist,
float[] hitPos,
float[] hitNormal) |
DetourStatusReturn |
FindLocalNeighbourhood(long startRef,
float[] centerPos,
float radius,
QueryFilter filter,
long[] resultRef,
long[] resultParent,
int maxResult) |
DetourNumericReturn |
FindNearestPoly(float[] center,
float[] extents,
QueryFilter filter,
float[] nearestPt)
Finds the nearest Poly to the specified center position within the extents provided.
|
DetourStatusReturn |
FindPath(long startRef,
long endRef,
float[] startPos,
float[] endPos,
QueryFilter filter,
long[] path,
int maxPath) |
DetourStatusReturn |
FindPolysAroundCircle(long startRef,
float[] centerPos,
float radius,
QueryFilter filter,
long[] resultRef,
long[] resultParent,
float[] resultCost,
int maxResult) |
DetourStatusReturn |
FindPolysAroundShape(long startRef,
float[] verts,
int nverts,
QueryFilter filter,
long[] resultRef,
long[] resultParent,
float[] resultCost,
int maxResult) |
DetourNumericReturn |
FindRandomPoint(QueryFilter filter,
java.util.Random func,
long randomRef,
float[] randomPt) |
DetourNumericReturn |
FindRandomPointAroundCircle(long startRef,
float[] centerPos,
float radius,
QueryFilter filter,
java.util.Random frand,
long randomRef,
float[] randomPt) |
DetourStatusReturn |
FindStraightPath(float[] startPos,
float[] endPos,
long[] path,
int pathSize,
float[] straightPath,
short[] straightPathFlags,
long[] straightPathRefs,
int maxStraightPath) |
DetourStatusReturn |
FindStraightPath(float[] startPos,
float[] endPos,
long[] path,
int pathSize,
float[] straightPath,
short[] straightPathFlags,
long[] straightPathRefs,
int maxStraightPath,
int options) |
DetourNumericReturn |
GetPolyHeight(long refId,
float[] pos) |
DetourStatusReturn |
GetPolyWallSegments(long refId,
QueryFilter filter,
float[] segmentVerts,
long[] segmentRefs,
int maxSegments) |
Status |
Init(NavMesh navMesh,
int maxNodes) |
java.util.EnumSet<Status> |
InitSlicedFindPath(long startRef,
long endRef,
float[] startPos,
float[] endPos,
QueryFilter filter,
long options) |
static int |
InsertInterval(SegInterval[] ints,
int nints,
int maxInts,
short tmin,
short tmax,
long refId) |
java.lang.Boolean |
IsInClosedList(long refId) |
java.lang.Boolean |
IsValidPolyRef(long refId,
QueryFilter filter) |
DetourStatusReturn |
MoveAlongSurface(long startRef,
float[] startPos,
float[] endPos,
QueryFilter filter,
float[] resultPos,
long[] visited,
int maxVisitedSize) |
DetourStatusReturn |
QueryPolygons(float[] center,
float[] extents,
QueryFilter filter,
long[] polys,
int maxPolys) |
DetourRaycastHit |
raycast(long startRef,
float[] startPos,
float[] endPos,
QueryFilter filter,
long[] path,
int maxPath) |
DetourRaycastHit |
raycast(long startRef,
float[] startPos,
float[] endPos,
QueryFilter filter,
long options,
DetourRaycastHit hit,
long prevRef) |
DetourStatusReturn |
UpdateSlicedFindPath(int maxIter) |
public NodePool NodePool
public NavMesh NavMesh
public NodePool _tinyNodePool
public NodeQueue _openList
public QueryData _query
public static float HScale
public static float RayCastLimitProportion
public static short StraightPathStart
public static short StraightPathEnd
public static short StraightPathOffMeshConnection
public static short StraightPathAreaCrossings
public static short StraightPathAllCrossings
public DetourStatusReturn FindPath(long startRef, long endRef, float[] startPos, float[] endPos, QueryFilter filter, long[] path, int maxPath)
public DetourStatusReturn FindStraightPath(float[] startPos, float[] endPos, long[] path, int pathSize, float[] straightPath, short[] straightPathFlags, long[] straightPathRefs, int maxStraightPath)
public DetourStatusReturn FindStraightPath(float[] startPos, float[] endPos, long[] path, int pathSize, float[] straightPath, short[] straightPathFlags, long[] straightPathRefs, int maxStraightPath, int options)
public java.util.EnumSet<Status> InitSlicedFindPath(long startRef, long endRef, float[] startPos, float[] endPos, QueryFilter filter, long options)
public DetourStatusReturn UpdateSlicedFindPath(int maxIter)
public DetourStatusReturn FinalizeSlicedFindPath(long[] path, int maxPath)
public DetourStatusReturn FinalizeSlicedFindPathPartial(long[] existing, int existingSize, long[] path, int maxPath)
public DetourStatusReturn FindPolysAroundCircle(long startRef, float[] centerPos, float radius, QueryFilter filter, long[] resultRef, long[] resultParent, float[] resultCost, int maxResult)
public DetourStatusReturn FindPolysAroundShape(long startRef, float[] verts, int nverts, QueryFilter filter, long[] resultRef, long[] resultParent, float[] resultCost, int maxResult)
public DetourNumericReturn FindNearestPoly(float[] center, float[] extents, QueryFilter filter, float[] nearestPt)
center
- extents
- filter
- nearestPt
- public DetourStatusReturn QueryPolygons(float[] center, float[] extents, QueryFilter filter, long[] polys, int maxPolys)
public DetourStatusReturn FindLocalNeighbourhood(long startRef, float[] centerPos, float radius, QueryFilter filter, long[] resultRef, long[] resultParent, int maxResult)
public DetourStatusReturn MoveAlongSurface(long startRef, float[] startPos, float[] endPos, QueryFilter filter, float[] resultPos, long[] visited, int maxVisitedSize)
public DetourRaycastHit raycast(long startRef, float[] startPos, float[] endPos, QueryFilter filter, long[] path, int maxPath)
public DetourRaycastHit raycast(long startRef, float[] startPos, float[] endPos, QueryFilter filter, long options, DetourRaycastHit hit, long prevRef)
public DetourNumericReturn FindDistanceToWall(long startRef, float[] centerPos, float maxRadius, QueryFilter filter, float hitDist, float[] hitPos, float[] hitNormal)
public DetourStatusReturn GetPolyWallSegments(long refId, QueryFilter filter, float[] segmentVerts, long[] segmentRefs, int maxSegments)
public static int InsertInterval(SegInterval[] ints, int nints, int maxInts, short tmin, short tmax, long refId)
public DetourNumericReturn FindRandomPoint(QueryFilter filter, java.util.Random func, long randomRef, float[] randomPt)
public DetourNumericReturn FindRandomPointAroundCircle(long startRef, float[] centerPos, float radius, QueryFilter filter, java.util.Random frand, long randomRef, float[] randomPt)
public DetourStatusReturn ClosestPointOnPoly(long refId, float[] pos, float[] closest, boolean posOverPoly)
public java.util.EnumSet<Status> ClosestPointOnPolyBoundary(long refId, float[] pos, float[] closest)
public DetourNumericReturn GetPolyHeight(long refId, float[] pos)
public java.lang.Boolean IsValidPolyRef(long refId, QueryFilter filter)
public java.lang.Boolean IsInClosedList(long refId)