setAnchors.lua 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. return {
  2. summary = 'Set the anchor points of the DistanceJoint.',
  3. description = 'Sets the anchor points of the DistanceJoint.',
  4. arguments = {
  5. x1 = {
  6. type = 'number',
  7. description = 'The x coordinate of the first anchor point, in world coordinates.'
  8. },
  9. y1 = {
  10. type = 'number',
  11. description = 'The y coordinate of the first anchor point, in world coordinates.'
  12. },
  13. z1 = {
  14. type = 'number',
  15. description = 'The z coordinate of the first anchor point, in world coordinates.'
  16. },
  17. x2 = {
  18. type = 'number',
  19. description = 'The x coordinate of the second anchor point, in world coordinates.'
  20. },
  21. y2 = {
  22. type = 'number',
  23. description = 'The y coordinate of the second anchor point, in world coordinates.'
  24. },
  25. z2 = {
  26. type = 'number',
  27. description = 'The z coordinate of the second anchor point, in world coordinates.'
  28. },
  29. first = {
  30. type = 'Vec3',
  31. description = 'The first anchor point, in world coordinates.'
  32. },
  33. second = {
  34. type = 'Vec3',
  35. description = 'The second anchor point, in world coordinates.'
  36. }
  37. },
  38. returns = {},
  39. variants = {
  40. {
  41. description = 'Sets the anchor points using numbers.',
  42. arguments = { 'x1', 'y1', 'z1', 'x2', 'y2', 'z2' },
  43. returns = {}
  44. },
  45. {
  46. description = 'Sets the anchor points using vectors.',
  47. arguments = { 'first', 'second' },
  48. returns = {}
  49. }
  50. }
  51. }