getLinearVelocityFromLocalPoint.lua 1.1 KB

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