setTightness.lua 936 B

1234567891011121314151617181920212223242526272829
  1. return {
  2. tag = 'worldProperties',
  3. summary = 'Set the tightness of joints in the World.',
  4. description = [[
  5. Sets the tightness of joints in the World.
  6. The tightness controls how much force is applied to colliders connected by joints. With a value
  7. of 0, no force will be applied and joints won't have any effect. With a tightness of 1, a
  8. strong force will be used to try to keep the Colliders constrained. A tightness larger than 1
  9. will overcorrect the joints, which can sometimes be desirable. Negative tightness values are
  10. not supported.
  11. ]],
  12. arguments = {
  13. {
  14. name = 'tightness',
  15. type = 'number',
  16. description = 'The new tightness for the World.'
  17. }
  18. },
  19. returns = {},
  20. related = {
  21. 'BallJoint:getTightness',
  22. 'BallJoint:setTightness',
  23. 'DistanceJoint:getTightness',
  24. 'DistanceJoint:setTightness',
  25. 'World:getResponseTime',
  26. 'World:setResponseTime'
  27. }
  28. }