added RcMatrix4X4

This commit is contained in:
ikpil 2023-08-02 00:00:00 +09:00
parent 974b2480dd
commit e3cad83e55
3 changed files with 24 additions and 4 deletions

View File

@ -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;
}
}

View File

@ -33,7 +33,7 @@ namespace DotRecast.Detour.Dynamic
public readonly VoxelTile voxelTile;
public DynamicTileCheckpoint checkpoint;
public RecastBuilderResult recastResult;
DtMeshData meshData;
private DtMeshData meshData;
private readonly ConcurrentDictionary<long, ICollider> colliders = new ConcurrentDictionary<long, ICollider>();
private bool dirty = true;
private long id;

View File

@ -530,9 +530,7 @@ public class RecastDemo : IRecastDemoChannel
}
else if (_sample.GetNavMesh() != null)
{
RcVec3f[] bounds = NavMeshUtils.GetNavMeshBounds(_sample.GetNavMesh());
bminN = bounds[0];
bmaxN = bounds[1];
_sample.GetNavMesh().ComputeBounds(out bminN, out bmaxN);
hasBound = true;
}
else if (0 < _sample.GetRecastResults().Count)