DtOffMeshConnection.cs 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  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. namespace DotRecast.Detour
  20. {
  21. /// Defines an navigation mesh off-mesh connection within a dtMeshTile object.
  22. /// An off-mesh connection is a user defined traversable connection made up to two vertices.
  23. public class DtOffMeshConnection
  24. {
  25. /// The endpoints of the connection. [(ax, ay, az, bx, by, bz)]
  26. public float[] pos = new float[6];
  27. /// The radius of the endpoints. [Limit: >= 0]
  28. public float rad;
  29. /// The polygon reference of the connection within the tile.
  30. public int poly;
  31. /// Link flags.
  32. /// @note These are not the connection's user defined flags. Those are assigned via the
  33. /// connection's dtPoly definition. These are link flags used for internal purposes.
  34. public int flags;
  35. /// End point side.
  36. public int side;
  37. /// The id of the offmesh connection. (User assigned when the navigation mesh is built.)
  38. public int userId;
  39. }
  40. }