forked from bit/DotRecastNetSim
added RcMatrix4X4
This commit is contained in:
parent
974b2480dd
commit
e3cad83e55
|
@ -0,0 +1,22 @@
|
||||||
|
namespace DotRecast.Core
|
||||||
|
{
|
||||||
|
public struct RcMatrix4X4
|
||||||
|
{
|
||||||
|
public float m11;
|
||||||
|
public float m12;
|
||||||
|
public float m13;
|
||||||
|
public float m14;
|
||||||
|
public float m21;
|
||||||
|
public float m22;
|
||||||
|
public float m23;
|
||||||
|
public float m24;
|
||||||
|
public float m31;
|
||||||
|
public float m32;
|
||||||
|
public float m33;
|
||||||
|
public float m34;
|
||||||
|
public float m41;
|
||||||
|
public float m42;
|
||||||
|
public float m43;
|
||||||
|
public float m44;
|
||||||
|
}
|
||||||
|
}
|
|
@ -33,7 +33,7 @@ namespace DotRecast.Detour.Dynamic
|
||||||
public readonly VoxelTile voxelTile;
|
public readonly VoxelTile voxelTile;
|
||||||
public DynamicTileCheckpoint checkpoint;
|
public DynamicTileCheckpoint checkpoint;
|
||||||
public RecastBuilderResult recastResult;
|
public RecastBuilderResult recastResult;
|
||||||
DtMeshData meshData;
|
private DtMeshData meshData;
|
||||||
private readonly ConcurrentDictionary<long, ICollider> colliders = new ConcurrentDictionary<long, ICollider>();
|
private readonly ConcurrentDictionary<long, ICollider> colliders = new ConcurrentDictionary<long, ICollider>();
|
||||||
private bool dirty = true;
|
private bool dirty = true;
|
||||||
private long id;
|
private long id;
|
||||||
|
|
|
@ -530,9 +530,7 @@ public class RecastDemo : IRecastDemoChannel
|
||||||
}
|
}
|
||||||
else if (_sample.GetNavMesh() != null)
|
else if (_sample.GetNavMesh() != null)
|
||||||
{
|
{
|
||||||
RcVec3f[] bounds = NavMeshUtils.GetNavMeshBounds(_sample.GetNavMesh());
|
_sample.GetNavMesh().ComputeBounds(out bminN, out bmaxN);
|
||||||
bminN = bounds[0];
|
|
||||||
bmaxN = bounds[1];
|
|
||||||
hasBound = true;
|
hasBound = true;
|
||||||
}
|
}
|
||||||
else if (0 < _sample.GetRecastResults().Count)
|
else if (0 < _sample.GetRecastResults().Count)
|
||||||
|
|
Loading…
Reference in New Issue