getNodeOrientation.lua 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. return {
  2. summary = 'Get the orientation of a node.',
  3. description = 'Returns the orientation of a node.',
  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. origin = {
  14. type = 'OriginType',
  15. default = [['root']],
  16. description = [[
  17. Whether the orientation should be returned relative to the root node or the node's parent.
  18. ]]
  19. }
  20. },
  21. returns = {
  22. angle = {
  23. type = 'number',
  24. description = 'The number of radians the node is rotated around its axis of rotation.'
  25. },
  26. ax = {
  27. type = 'number',
  28. description = 'The x component of the axis of rotation.'
  29. },
  30. ay = {
  31. type = 'number',
  32. description = 'The y component of the axis of rotation.'
  33. },
  34. az = {
  35. type = 'number',
  36. description = 'The z component of the axis of rotation.'
  37. }
  38. },
  39. variants = {
  40. {
  41. arguments = { 'index', 'origin' },
  42. returns = { 'angle', 'ax', 'ay', 'az' }
  43. },
  44. {
  45. arguments = { 'name', 'origin' },
  46. returns = { 'angle', 'ax', 'ay', 'az' }
  47. }
  48. },
  49. related = {
  50. 'Model:getNodePosition',
  51. 'Model:setNodePosition',
  52. 'Model:getNodeScale',
  53. 'Model:setNodeScale',
  54. 'Model:getNodePose',
  55. 'Model:setNodePose',
  56. 'Model:getNodeTransform',
  57. 'Model:setNodeTransform',
  58. 'Model:animate'
  59. }
  60. }