getLinearVelocityFromWorldPoint.lua 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. return {
  2. summary = 'Get the linear velocity of the Collider at a world space point.',
  3. description = [[
  4. Returns the linear velocity of a point on the Collider specified in world space.
  5. ]],
  6. arguments = {
  7. x = {
  8. type = 'number',
  9. description = 'The x coordinate in world space.'
  10. },
  11. y = {
  12. type = 'number',
  13. description = 'The y coordinate in world space.'
  14. },
  15. z = {
  16. type = 'number',
  17. description = 'The z coordinate in world space.'
  18. },
  19. point = {
  20. type = 'Vec3',
  21. descriptio = 'The point.'
  22. }
  23. },
  24. returns = {
  25. vx = {
  26. type = 'number',
  27. description = 'The x component of the velocity of the point.'
  28. },
  29. vy = {
  30. type = 'number',
  31. description = 'The y component of the velocity of the point.'
  32. },
  33. vz = {
  34. type = 'number',
  35. description = 'The z component of the velocity of the point.'
  36. }
  37. },
  38. variants = {
  39. {
  40. arguments = { 'x', 'y', 'z' },
  41. returns = { 'vx', 'vy', 'vz' }
  42. },
  43. {
  44. arguments = { 'point' },
  45. returns = { 'vx', 'vy', 'vz' }
  46. }
  47. },
  48. related = {
  49. 'Collider:getLinearVelocity',
  50. 'Collider:getLinearVelocityFromLocalPoint'
  51. }
  52. }