IKEffector.pkg 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. $#include "IK/IKEffector.h"
  2. class IKEffector : public Component
  3. {
  4. Node* GetTargetNode() const;
  5. void SetTargetNode(Node* targetNode);
  6. const String& GetTargetName() const;
  7. void SetTargetName(const String& nodeName);
  8. const Vector3& GetTargetPosition() const;
  9. void SetTargetPosition(const Vector3& targetPosition);
  10. const Quaternion& GetTargetRotation() const;
  11. void SetTargetRotation(const Quaternion& targetRotation);
  12. unsigned GetChainLength() const;
  13. void SetChainLength(unsigned chainLength);
  14. float GetWeight() const;
  15. void SetWeight(float weight);
  16. float GetRotationWeight() const;
  17. void SetRotationWeight(float weight);
  18. float GetRotationDecay() const;
  19. void SetRotationDecay(float decay);
  20. bool WeightedNlerpEnabled() const;
  21. void EnableWeightedNlerp(bool enable);
  22. bool InheritParentRotationEnabled() const;
  23. void EnableInheritParentRotation(bool enable);
  24. tolua_property__get_set Node* targetNode;
  25. tolua_property__get_set String targetName;
  26. tolua_property__get_set Vector3 targetPosition;
  27. tolua_property__get_set Quaternion targetRotation;
  28. tolua_property__get_set unsigned chainLength;
  29. tolua_property__get_set float weight;
  30. tolua_property__get_set float rotationWeight;
  31. tolua_property__get_set float rotationDecay;
  32. };