diff options
author | sumneko <sumneko@hotmail.com> | 2022-02-08 21:57:56 +0800 |
---|---|---|
committer | sumneko <sumneko@hotmail.com> | 2022-02-08 21:57:56 +0800 |
commit | 007e8637827b75d95f188df0f1c3173cabc53a8b (patch) | |
tree | 69fd9f98ba75099b97080c95001f3d6452de49d3 /meta/3rd/lovr/library/lovr.physics.lua | |
parent | ee476c7f4fb29ab6cf6e77205745428c0e2a8601 (diff) | |
download | lua-language-server-007e8637827b75d95f188df0f1c3173cabc53a8b.zip |
fix #941
Diffstat (limited to 'meta/3rd/lovr/library/lovr.physics.lua')
-rw-r--r-- | meta/3rd/lovr/library/lovr.physics.lua | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/meta/3rd/lovr/library/lovr.physics.lua b/meta/3rd/lovr/library/lovr.physics.lua index e4b44aba..7fef948b 100644 --- a/meta/3rd/lovr/library/lovr.physics.lua +++ b/meta/3rd/lovr/library/lovr.physics.lua @@ -215,7 +215,7 @@ function Collider:addShape(shape) end --- ---Applies a force to the Collider. --- ----@overload fun(x: number, y: number, z: number, px: number, py: number, pz: number) +---@overload fun(self: lovr.Collider, x: number, y: number, z: number, px: number, py: number, pz: number) ---@param x number # The x component of the force to apply. ---@param y number # The y component of the force to apply. ---@param z number # The z component of the force to apply. @@ -1059,7 +1059,7 @@ function World:getAngularDamping() end --- ---Returns a table of all Colliders in the World. --- ----@overload fun(t: table):table +---@overload fun(self: lovr.World, t: table):table ---@return table colliders # A table of `Collider` objects. function World:getColliders() end @@ -1154,7 +1154,7 @@ function World:newCylinderCollider(x, y, z, radius, length) end --- ---Adds a new Collider to the World with a MeshShape already attached. --- ----@overload fun(model: lovr.Model):lovr.Collider +---@overload fun(self: lovr.World, model: lovr.Model):lovr.Collider ---@param vertices table # The table of vertices in the mesh. Each vertex is a table with 3 numbers. ---@param indices table # A table of triangle indices representing how the vertices are connected in the Mesh. ---@return lovr.Collider collider # The new Collider. |