getNodePose.lua 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. return {
  2. summary = 'Get the local pose of a node.',
  3. description = 'Returns local pose (position and orientation) of a node, relative to its parent.',
  4. arguments = {
  5. index = {
  6. type = 'number',
  7. description = 'The index of the node.'
  8. },
  9. name = {
  10. type = 'string',
  11. description = 'The name of the node.'
  12. }
  13. },
  14. returns = {
  15. x = {
  16. type = 'number',
  17. description = 'The x coordinate.'
  18. },
  19. y = {
  20. type = 'number',
  21. description = 'The y coordinate.'
  22. },
  23. z = {
  24. type = 'number',
  25. description = 'The z coordinate.'
  26. },
  27. angle = {
  28. type = 'number',
  29. description = 'The number of radians the node is rotated around its axis of rotation.'
  30. },
  31. ax = {
  32. type = 'number',
  33. description = 'The x component of the axis of rotation.'
  34. },
  35. ay = {
  36. type = 'number',
  37. description = 'The y component of the axis of rotation.'
  38. },
  39. az = {
  40. type = 'number',
  41. description = 'The z component of the axis of rotation.'
  42. }
  43. },
  44. variants = {
  45. {
  46. arguments = { 'index' },
  47. returns = { 'x', 'y', 'z', 'angle', 'ax', 'ay', 'az' }
  48. },
  49. {
  50. arguments = { 'name' },
  51. returns = { 'x', 'y', 'z', 'angle', 'ax', 'ay', 'az' }
  52. }
  53. },
  54. related = {
  55. 'ModelData:getNodePosition',
  56. 'ModelData:getNodeOrientation',
  57. 'ModelData:getNodeScale',
  58. 'ModelData:getNodeTransform'
  59. }
  60. }