getNodePosition.lua 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. return {
  2. summary = 'Get the position of a node.',
  3. description = 'Returns the position 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. space = {
  14. type = 'OriginType',
  15. default = [['root']],
  16. description = [[
  17. Whether the position should be returned relative to the root node or the node's parent.
  18. ]]
  19. }
  20. },
  21. returns = {
  22. x = {
  23. type = 'number',
  24. description = 'The x coordinate.'
  25. },
  26. y = {
  27. type = 'number',
  28. description = 'The y coordinate.'
  29. },
  30. z = {
  31. type = 'number',
  32. description = 'The z coordinate.'
  33. }
  34. },
  35. variants = {
  36. {
  37. arguments = { 'index', 'space' },
  38. returns = { 'x', 'y', 'z' }
  39. },
  40. {
  41. arguments = { 'name', 'space' },
  42. returns = { 'x', 'y', 'z' }
  43. }
  44. },
  45. related = {
  46. 'Model:getNodeOrientation',
  47. 'Model:setNodeOrientation',
  48. 'Model:getNodeScale',
  49. 'Model:setNodeScale',
  50. 'Model:getNodePose',
  51. 'Model:setNodePose',
  52. 'Model:getNodeTransform',
  53. 'Model:setNodeTransform',
  54. 'Model:animate'
  55. }
  56. }