getLinearVelocity.lua 1008 B

12345678910111213141516171819202122232425262728293031323334353637
  1. return {
  2. summary = 'Get the linear velocity of the Collider.',
  3. description = [[
  4. Returns the linear velocity of the Collider. This is how fast the Collider is moving. There is
  5. also angular velocity, which is how fast the Collider is spinning.
  6. ]],
  7. arguments = {},
  8. returns = {
  9. vx = {
  10. type = 'number',
  11. description = 'The x velocity of the Collider, in meters per second.'
  12. },
  13. vy = {
  14. type = 'number',
  15. description = 'The y velocity of the Collider, in meters per second.'
  16. },
  17. vz = {
  18. type = 'number',
  19. description = 'The z velocity of the Collider, in meters per second.'
  20. }
  21. },
  22. variants = {
  23. {
  24. arguments = {},
  25. returns = { 'vx', 'vy', 'vz' }
  26. }
  27. },
  28. related = {
  29. 'Collider:getLinearVelocityFromLocalPoint',
  30. 'Collider:getLinearVelocityFromWorldPoint',
  31. 'Collider:getAngularVelocity',
  32. 'Collider:setAngularVelocity',
  33. 'Collider:applyForce',
  34. 'Collider:getPosition',
  35. 'Collider:setPosition'
  36. }
  37. }