diff options
Diffstat (limited to 'meta/3rd/Cocos4.0/cc.PhysicsJointLimit.lua')
-rw-r--r-- | meta/3rd/Cocos4.0/cc.PhysicsJointLimit.lua | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/meta/3rd/Cocos4.0/cc.PhysicsJointLimit.lua b/meta/3rd/Cocos4.0/cc.PhysicsJointLimit.lua new file mode 100644 index 00000000..9db29c9e --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.PhysicsJointLimit.lua @@ -0,0 +1,49 @@ + +---@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
\ No newline at end of file |