Bone.js 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. function Bone() {
  2. }
  3. Bone.prototype.getName = function() {
  4. Polycode.Bone_getName(this.__ptr)
  5. }
  6. Bone.prototype.setParentBone = function(bone) {
  7. Polycode.Bone_setParentBone(this.__ptr, bone)
  8. }
  9. Bone.prototype.addChildBone = function(bone) {
  10. Polycode.Bone_addChildBone(this.__ptr, bone)
  11. }
  12. Bone.prototype.getParentBone = function() {
  13. Polycode.Bone_getParentBone(this.__ptr)
  14. }
  15. Bone.prototype.getNumChildBones = function() {
  16. Polycode.Bone_getNumChildBones(this.__ptr)
  17. }
  18. Bone.prototype.getChildBone = function(index) {
  19. Polycode.Bone_getChildBone(this.__ptr, index)
  20. }
  21. Bone.prototype.getBoneMatrix = function() {
  22. Polycode.Bone_getBoneMatrix(this.__ptr)
  23. }
  24. Bone.prototype.setBoneMatrix = function(matrix) {
  25. Polycode.Bone_setBoneMatrix(this.__ptr, matrix)
  26. }
  27. Bone.prototype.getRestMatrix = function() {
  28. Polycode.Bone_getRestMatrix(this.__ptr)
  29. }
  30. Bone.prototype.getFullRestMatrix = function() {
  31. Polycode.Bone_getFullRestMatrix(this.__ptr)
  32. }
  33. Bone.prototype.getParentRestMatrix = function() {
  34. Polycode.Bone_getParentRestMatrix(this.__ptr)
  35. }
  36. Bone.prototype.getFinalMatrix = function() {
  37. Polycode.Bone_getFinalMatrix(this.__ptr)
  38. }
  39. Bone.prototype.setRestMatrix = function(matrix) {
  40. Polycode.Bone_setRestMatrix(this.__ptr, matrix)
  41. }
  42. Bone.prototype.setBaseMatrix = function(matrix) {
  43. Polycode.Bone_setBaseMatrix(this.__ptr, matrix)
  44. }
  45. Bone.prototype.getBaseMatrix = function() {
  46. Polycode.Bone_getBaseMatrix(this.__ptr)
  47. }
  48. Bone.prototype.getFullBaseMatrix = function() {
  49. Polycode.Bone_getFullBaseMatrix(this.__ptr)
  50. }
  51. Bone.prototype.rebuildFinalMatrix = function() {
  52. Polycode.Bone_rebuildFinalMatrix(this.__ptr)
  53. }
  54. Bone.prototype.buildFinalMatrix = function() {
  55. Polycode.Bone_buildFinalMatrix(this.__ptr)
  56. }
  57. Bone.prototype.intializeBone = function(basePosition,baseScale,baseRotation,restPosition,restScale,restRotation) {
  58. Polycode.Bone_intializeBone(this.__ptr, basePosition,baseScale,baseRotation,restPosition,restScale,restRotation)
  59. }