summaryrefslogtreecommitdiff
path: root/meta/3rd/Cocos4.0/library/cc.PhysicsJointLimit.lua
blob: 6c4475ef871de3001b84a931071b5bdaf63436a3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
---@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