Skeleton.pkg 793 B

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