summaryrefslogtreecommitdiff
path: root/meta/3rd/love2d/library/love.physics.lua
diff options
context:
space:
mode:
Diffstat (limited to 'meta/3rd/love2d/library/love.physics.lua')
-rw-r--r--meta/3rd/love2d/library/love.physics.lua9
1 files changed, 6 insertions, 3 deletions
diff --git a/meta/3rd/love2d/library/love.physics.lua b/meta/3rd/love2d/library/love.physics.lua
index e0300c06..fbc617a1 100644
--- a/meta/3rd/love2d/library/love.physics.lua
+++ b/meta/3rd/love2d/library/love.physics.lua
@@ -57,8 +57,9 @@ function love.physics.newBody(world, x, y, type) end
---@param y1 number # The y position of the first point.
---@param x2 number # The x position of the second point.
---@param y2 number # The y position of the second point.
+---@vararg number # Additional point positions.
---@return love.ChainShape shape # The new shape.
-function love.physics.newChainShape(loop, x1, y1, x2, y2) end
+function love.physics.newChainShape(loop, x1, y1, x2, y2, ...) end
---
---Creates a new CircleShape.
@@ -167,8 +168,9 @@ function love.physics.newMouseJoint(body, x, y) end
---@param y2 number # The y position of the second point.
---@param x3 number # The x position of the third point.
---@param y3 number # The y position of the third point.
+---@vararg number # You can continue passing more point positions to create the PolygonShape.
---@return love.PolygonShape shape # A new PolygonShape.
-function love.physics.newPolygonShape(x1, y1, x2, y2, x3, y3) end
+function love.physics.newPolygonShape(x1, y1, x2, y2, x3, y3, ...) end
---
---Creates a PrismaticJoint between two bodies.
@@ -499,11 +501,12 @@ function Body:getLocalPoint(worldX, worldY) end
---@param y1 number # (Argument) The y position of the first point.
---@param x2 number # (Argument) The x position of the second point.
---@param y2 number # (Argument) The y position of the second point.
+---@vararg number # (Argument) You can continue passing x and y position of the points.
---@return number x1 # (Result) The transformed x position of the first point.
---@return number y1 # (Result) The transformed y position of the first point.
---@return number x2 # (Result) The transformed x position of the second point.
---@return number y2 # (Result) The transformed y position of the second point.
-function Body:getLocalPoints(x1, y1, x2, y2) end
+function Body:getLocalPoints(x1, y1, x2, y2, ...) end
---
---Transform a vector from world coordinates to local coordinates.