forked from mirror/DotRecast
Changed `MAX_STEER_POINTS` from class constant to local.
This commit is contained in:
parent
c7f03d00ff
commit
5b6905bd8f
|
@ -18,7 +18,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
|
||||||
- Changed `DtTileCacheBuilder` to a static class
|
- Changed `DtTileCacheBuilder` to a static class
|
||||||
- Changed `DtTileCacheLayerHeaderReader` to a static class
|
- Changed `DtTileCacheLayerHeaderReader` to a static class
|
||||||
- Changed `Dictionary<int, List<DtMeshTile>>` to `DtMeshTile[]` to optimize memory usage
|
- Changed `Dictionary<int, List<DtMeshTile>>` to `DtMeshTile[]` to optimize memory usage
|
||||||
|
- Changed `MAX_STEER_POINTS` from class constant to local.
|
||||||
|
|
||||||
### Removed
|
### Removed
|
||||||
- Nothing
|
- Nothing
|
||||||
|
|
||||||
|
|
|
@ -28,13 +28,13 @@ namespace DotRecast.Detour
|
||||||
|
|
||||||
public static class DtPathUtils
|
public static class DtPathUtils
|
||||||
{
|
{
|
||||||
private const int MAX_STEER_POINTS = 3;
|
|
||||||
|
|
||||||
public static bool GetSteerTarget(DtNavMeshQuery navQuery, RcVec3f startPos, RcVec3f endPos,
|
public static bool GetSteerTarget(DtNavMeshQuery navQuery, RcVec3f startPos, RcVec3f endPos,
|
||||||
float minTargetDist,
|
float minTargetDist,
|
||||||
List<long> path, int pathSize,
|
List<long> path, int pathSize,
|
||||||
out RcVec3f steerPos, out int steerPosFlag, out long steerPosRef)
|
out RcVec3f steerPos, out int steerPosFlag, out long steerPosRef)
|
||||||
{
|
{
|
||||||
|
const int MAX_STEER_POINTS = 3;
|
||||||
|
|
||||||
steerPos = RcVec3f.Zero;
|
steerPos = RcVec3f.Zero;
|
||||||
steerPosFlag = 0;
|
steerPosFlag = 0;
|
||||||
steerPosRef = 0;
|
steerPosRef = 0;
|
||||||
|
|
Loading…
Reference in New Issue