mirror of
https://github.com/Insality/druid
synced 2025-09-27 18:12:21 +02:00
Add Defold annotations
This commit is contained in:
27
annotations/defold/b2d.lua
Normal file
27
annotations/defold/b2d.lua
Normal file
@@ -0,0 +1,27 @@
|
||||
--[[
|
||||
Generated with github.com/astrochili/defold-annotations
|
||||
Defold 1.8.0
|
||||
|
||||
Box2D documentation
|
||||
|
||||
Functions for interacting with Box2D.
|
||||
--]]
|
||||
|
||||
---@diagnostic disable: lowercase-global
|
||||
---@diagnostic disable: missing-return
|
||||
---@diagnostic disable: duplicate-doc-param
|
||||
---@diagnostic disable: duplicate-set-field
|
||||
|
||||
---@class defold_api.b2d
|
||||
b2d = {}
|
||||
|
||||
---Get the Box2D body from a collision object
|
||||
---@param url string|hash|url the url to the game object collision component
|
||||
---@return b2Body body the body if successful. Otherwise nil.
|
||||
function b2d.get_body(url) end
|
||||
|
||||
---Get the Box2D world from the current collection
|
||||
---@return b2World world the world if successful. Otherwise nil.
|
||||
function b2d.get_world() end
|
||||
|
||||
return b2d
|
Reference in New Issue
Block a user