RcHeightfieldLayer.cs 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. using DotRecast.Core;
  2. namespace DotRecast.Recast
  3. {
  4. /// Represents a heightfield layer within a layer set.
  5. /// @see rcHeightfieldLayerSet
  6. public class RcHeightfieldLayer
  7. {
  8. public RcVec3f bmin = new RcVec3f();
  9. /// < The minimum bounds in world space. [(x, y, z)]
  10. public RcVec3f bmax = new RcVec3f();
  11. /// < The maximum bounds in world space. [(x, y, z)]
  12. public float cs;
  13. /// < The size of each cell. (On the xz-plane.)
  14. public float ch;
  15. /// < The height of each cell. (The minimum increment along the y-axis.)
  16. public int width;
  17. /// < The width of the heightfield. (Along the x-axis in cell units.)
  18. public int height;
  19. /// < The height of the heightfield. (Along the z-axis in cell units.)
  20. public int minx;
  21. /// < The minimum x-bounds of usable data.
  22. public int maxx;
  23. /// < The maximum x-bounds of usable data.
  24. public int miny;
  25. /// < The minimum y-bounds of usable data. (Along the z-axis.)
  26. public int maxy;
  27. /// < The maximum y-bounds of usable data. (Along the z-axis.)
  28. public int hmin;
  29. /// < The minimum height bounds of usable data. (Along the y-axis.)
  30. public int hmax;
  31. /// < The maximum height bounds of usable data. (Along the y-axis.)
  32. public int[] heights;
  33. /// < The heightfield. [Size: width * height]
  34. public int[] areas;
  35. /// < Area ids. [Size: Same as #heights]
  36. public int[] cons; /// < Packed neighbor connection information. [Size: Same as #heights]
  37. }
  38. }