getAnchors.lua 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. return {
  2. summary = 'Get the anchor points of the DistanceJoint.',
  3. description = 'Returns the anchor points of the DistanceJoint.',
  4. arguments = {},
  5. returns = {
  6. x1 = {
  7. type = 'number',
  8. description = 'The x coordinate of the first anchor point, in world coordinates.'
  9. },
  10. y1 = {
  11. type = 'number',
  12. description = 'The y coordinate of the first anchor point, in world coordinates.'
  13. },
  14. z1 = {
  15. type = 'number',
  16. description = 'The z coordinate of the first anchor point, in world coordinates.'
  17. },
  18. x2 = {
  19. type = 'number',
  20. description = 'The x coordinate of the second anchor point, in world coordinates.'
  21. },
  22. y2 = {
  23. type = 'number',
  24. description = 'The y coordinate of the second anchor point, in world coordinates.'
  25. },
  26. z2 = {
  27. type = 'number',
  28. description = 'The z coordinate of the second anchor point, in world coordinates.'
  29. }
  30. },
  31. variants = {
  32. {
  33. arguments = {},
  34. returns = { 'x1', 'y1', 'z1', 'x2', 'y2', 'z2' }
  35. }
  36. }
  37. }