IKEffector.pkg 1.3 KB

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