2
0

OffMeshConnection.pkg 624 B

123456789101112131415161718192021
  1. $#include "OffMeshConnection.h"
  2. /// A link between otherwise unconnected regions of the navigation mesh.
  3. class OffMeshConnection : public Component
  4. {
  5. public:
  6. /// Set endpoint node.
  7. void SetEndPoint(Node* node);
  8. /// Set radius.
  9. void SetRadius(float radius);
  10. /// Set bidirectional flag. Default true.
  11. void SetBidirectional(bool enabled);
  12. /// Return endpoint node.
  13. Node* GetEndPoint() const;
  14. /// Return radius.
  15. float GetRadius() const { return radius_; }
  16. /// Return whether is bidirectional.
  17. bool IsBidirectional() const { return bidirectional_; }
  18. };