Skeleton.pkg 855 B

12345678910111213141516171819202122232425262728293031
  1. $#include "Graphics/Skeleton.h"
  2. struct Bone
  3. {
  4. Bone();
  5. ~Bone();
  6. String name_ @ name;
  7. StringHash nameHash_ @ nameHash;
  8. unsigned parentIndex_ @ parentIndex;
  9. Vector3 initialPosition_ @ initialPosition;
  10. Quaternion initialRotation_ @ initialRotation;
  11. Vector3 initialScale_ @ initialScale;
  12. Matrix3x4 offsetMatrix_ @ offsetMatrix;
  13. bool animated_ @ animated;
  14. unsigned char collisionMask_ @ collisionMask;
  15. float radius_ @ radius;
  16. BoundingBox boundingBox_ @ boundingBox;
  17. Node* node_ @ node;
  18. };
  19. class Skeleton
  20. {
  21. unsigned GetNumBones() const;
  22. Bone* GetRootBone();
  23. Bone* GetBone(const String name);
  24. Bone* GetBone(unsigned index);
  25. tolua_readonly tolua_property__get_set unsigned numBones;
  26. tolua_readonly tolua_property__get_set Bone* rootBone;
  27. };