applyForce.lua 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. return {
  2. summary = 'Apply a force to the Collider.',
  3. description = 'Applies a force to the Collider.',
  4. arguments = {
  5. x = {
  6. type = 'number',
  7. description = 'The x component of the force to apply.'
  8. },
  9. y = {
  10. type = 'number',
  11. description = 'The y component of the force to apply.'
  12. },
  13. z = {
  14. type = 'number',
  15. description = 'The z component of the force to apply.'
  16. },
  17. px = {
  18. type = 'number',
  19. description = 'The x position to apply the force at, in world coordinates.'
  20. },
  21. py = {
  22. type = 'number',
  23. description = 'The y position to apply the force at, in world coordinates.'
  24. },
  25. pz = {
  26. type = 'number',
  27. description = 'The z position to apply the force at, in world coordinates.'
  28. },
  29. force = {
  30. type = 'Vec3',
  31. description = 'The force vector to apply.'
  32. },
  33. position = {
  34. type = 'Vec3',
  35. description = 'The position to apply the force at, in world coordinates.'
  36. }
  37. },
  38. returns = {},
  39. variants = {
  40. {
  41. arguments = { 'x', 'y', 'z' },
  42. returns = {}
  43. },
  44. {
  45. arguments = { 'x', 'y', 'z', 'px', 'py', 'pz' },
  46. returns = {}
  47. },
  48. {
  49. arguments = { 'force' },
  50. returns = {}
  51. },
  52. {
  53. arguments = { 'force', 'position' },
  54. returns = {}
  55. }
  56. },
  57. notes = 'If the Collider is asleep, calling this function will wake it up.',
  58. related = {
  59. 'Collider:applyTorque'
  60. }
  61. }