SplinePath.pkg 869 B

123456789101112131415161718192021222324252627
  1. $#include "Scene/SplinePath.h"
  2. class SplinePath : public Component
  3. {
  4. void AddControlPoint(Node* point, unsigned index = M_MAX_UNSIGNED);
  5. void RemoveControlPoint(Node* point);
  6. void ClearControlPoints();
  7. void SetInterpolationMode(InterpolationMode mode);
  8. void SetPosition(float factor);
  9. void SetControlledNode(Node* controlled);
  10. InterpolationMode GetInterpolationMode() const;
  11. float GetSpeed() const;
  12. float GetLength() const;
  13. Vector3 GetPosition() const;
  14. Node* GetControlledNode() const;
  15. Vector3 GetPoint(float factor) const;
  16. void Move(float timeStep);
  17. void Reset();
  18. bool IsFinished() const;
  19. tolua_property__get_set InterpolationMode interpolationMode;
  20. tolua_property__get_set float speed;
  21. tolua_readonly tolua_property__get_set float length;
  22. tolua_property__get_set Node* controlledNode;
  23. };