getNodeOrientation.lua 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. return {
  2. summary = 'Get the local orientation of a node.',
  3. description = 'Returns local 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. angle = {
  16. type = 'number',
  17. description = 'The number of radians the node is rotated around its axis of rotation.'
  18. },
  19. ax = {
  20. type = 'number',
  21. description = 'The x component of the axis of rotation.'
  22. },
  23. ay = {
  24. type = 'number',
  25. description = 'The y component of the axis of rotation.'
  26. },
  27. az = {
  28. type = 'number',
  29. description = 'The z component of the axis of rotation.'
  30. }
  31. },
  32. variants = {
  33. {
  34. arguments = { 'index' },
  35. returns = { 'angle', 'ax', 'ay', 'az' }
  36. },
  37. {
  38. arguments = { 'name' },
  39. returns = { 'angle', 'ax', 'ay', 'az' }
  40. }
  41. },
  42. related = {
  43. 'ModelData:getNodePosition',
  44. 'ModelData:getNodeScale',
  45. 'ModelData:getNodePose',
  46. 'ModelData:getNodeTransform'
  47. }
  48. }