nixos/lua-lsp/meta/3rd/Cocos4.0/library/cc/PhysicsJointLimit.lua

50 lines
1.6 KiB
Lua

---@meta
---@class cc.PhysicsJointLimit :cc.PhysicsJoint
local PhysicsJointLimit={ }
cc.PhysicsJointLimit=PhysicsJointLimit
---* Set the anchor point on body b.
---@param anchr2 vec2_table
---@return self
function PhysicsJointLimit:setAnchr2 (anchr2) end
---* Set the anchor point on body a.
---@param anchr1 vec2_table
---@return self
function PhysicsJointLimit:setAnchr1 (anchr1) end
---* Set the max distance of the anchor points.
---@param max float
---@return self
function PhysicsJointLimit:setMax (max) end
---* Get the anchor point on body b.
---@return vec2_table
function PhysicsJointLimit:getAnchr2 () end
---* Get the anchor point on body a.
---@return vec2_table
function PhysicsJointLimit:getAnchr1 () end
---*
---@return boolean
function PhysicsJointLimit:createConstraints () end
---* Get the allowed min distance of the anchor points.
---@return float
function PhysicsJointLimit:getMin () end
---* Get the allowed max distance of the anchor points.
---@return float
function PhysicsJointLimit:getMax () end
---* Set the min distance of the anchor points.
---@param min float
---@return self
function PhysicsJointLimit:setMin (min) end
---@overload fun(cc.PhysicsBody:cc.PhysicsBody,cc.PhysicsBody:cc.PhysicsBody,vec2_table:vec2_table,vec2_table:vec2_table,float:float,float:float):self
---@overload fun(cc.PhysicsBody:cc.PhysicsBody,cc.PhysicsBody:cc.PhysicsBody,vec2_table:vec2_table,vec2_table:vec2_table):self
---@param a cc.PhysicsBody
---@param b cc.PhysicsBody
---@param anchr1 vec2_table
---@param anchr2 vec2_table
---@param min float
---@param max float
---@return self
function PhysicsJointLimit:construct (a,b,anchr1,anchr2,min,max) end