2
0

OffMeshConnection.pkg 784 B

12345678910111213141516171819202122232425
  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. // Properties:
  19. tolua_property__get_set Node* endPoint;
  20. tolua_property__get_set float radius;
  21. tolua_property__is_set bool bidirectional;
  22. };