-
Notifications
You must be signed in to change notification settings - Fork 52
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1,090 changed files
with
121,468 additions
and
52,582 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
{ | ||
"diagnostics.disable": ["redundant-return-value"], | ||
"workspace.library": ["addons"], | ||
"workspace.ignoreDir": [ | ||
"tools/lua-bindings/olua/examples/lua", | ||
"frameworks/3rd/", | ||
"src/cclua/3rd" | ||
], | ||
"workspace.ignoreSubmodules": false, | ||
"diagnostics.globals": [ | ||
"DEBUG", | ||
"main", | ||
"api_dir", | ||
"autoconf", | ||
"clang", | ||
"codeblock", | ||
"entry", | ||
"exclude_type", | ||
"headers", | ||
"import", | ||
"luacls", | ||
"luaopen", | ||
"macro", | ||
"olua", | ||
"output_dir", | ||
"typeconf", | ||
"typedef", | ||
"typeonly" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"$schema": "https://raw.githubusercontent.com/LuaLS/LLS-Addons/main/schemas/addon_config.schema.json", | ||
"words": ["%s+-box2d"], | ||
"files": ["box2d"], | ||
"settings": {} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
---AUTO GENERATED, DO NOT MODIFY! | ||
---@meta b2.AABB | ||
|
||
---An axis aligned bounding box. | ||
---@class b2.AABB | ||
---@field center b2.Vec2 Get the center of the AABB. | ||
---@field extents b2.Vec2 Get the extents of the AABB (half-widths). | ||
---@field perimeter number Get the perimeter length | ||
---@field valid boolean Verify that the bounds are sorted. | ||
---@field lowerBound b2.Vec2 | ||
---@field upperBound b2.Vec2 | ||
local AABB = {} | ||
|
||
---@return any | ||
function AABB:__gc() end | ||
|
||
---Combine an AABB into this one. | ||
---@param aabb b2.AABB | ||
--- | ||
---Combine two AABBs into this one. | ||
---@overload fun(self: b2.AABB, aabb1: b2.AABB, aabb2: b2.AABB) | ||
function AABB:combine(aabb) end | ||
|
||
---Does this aabb contain the provided AABB. | ||
---@param aabb b2.AABB | ||
---@return boolean | ||
function AABB:contains(aabb) end | ||
|
||
---Get the center of the AABB. | ||
---@return b2.Vec2 | ||
function AABB:getCenter() end | ||
|
||
---Get the extents of the AABB (half-widths). | ||
---@return b2.Vec2 | ||
function AABB:getExtents() end | ||
|
||
---Get the perimeter length | ||
---@return number | ||
function AABB:getPerimeter() end | ||
|
||
---Verify that the bounds are sorted. | ||
---@return boolean | ||
function AABB:isValid() end | ||
|
||
---@param output b2.RayCastOutput | ||
---@param input b2.RayCastInput | ||
---@return boolean | ||
function AABB:rayCast(output, input) end | ||
|
||
return AABB |
Oops, something went wrong.