DtNavMeshParams.cs 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. /*
  2. Copyright (c) 2009-2010 Mikko Mononen memon@inside.org
  3. recast4j copyright (c) 2015-2019 Piotr Piastucki piotr@jtilia.org
  4. DotRecast Copyright (c) 2023 Choi Ikpil ikpil@naver.com
  5. This software is provided 'as-is', without any express or implied
  6. warranty. In no event will the authors be held liable for any damages
  7. arising from the use of this software.
  8. Permission is granted to anyone to use this software for any purpose,
  9. including commercial applications, and to alter it and redistribute it
  10. freely, subject to the following restrictions:
  11. 1. The origin of this software must not be misrepresented; you must not
  12. claim that you wrote the original software. If you use this software
  13. in a product, an acknowledgment in the product documentation would be
  14. appreciated but is not required.
  15. 2. Altered source versions must be plainly marked as such, and must not be
  16. misrepresented as being the original software.
  17. 3. This notice may not be removed or altered from any source distribution.
  18. */
  19. using DotRecast.Core;
  20. namespace DotRecast.Detour
  21. {
  22. /**
  23. * Configuration parameters used to define multi-tile navigation meshes. The values are used to allocate space during
  24. * the initialization of a navigation mesh.
  25. *
  26. * @see NavMesh
  27. */
  28. public struct DtNavMeshParams
  29. {
  30. /** The world space origin of the navigation mesh's tile space. [(x, y, z)] */
  31. public RcVec3f orig;
  32. /** The width of each tile. (Along the x-axis.) */
  33. public float tileWidth;
  34. /** The height of each tile. (Along the z-axis.) */
  35. public float tileHeight;
  36. /** The maximum number of tiles the navigation mesh can contain. */
  37. public int maxTiles;
  38. /** The maximum number of polygons each tile can contain. */
  39. public int maxPolys;
  40. }
  41. }