summaryrefslogtreecommitdiff
path: root/meta/3rd/Cocos4.0/library/cc/PhysicsJointDistance.lua
blob: d8d8461f33e5c08bb4986fe807481690168a7c86 (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
---@meta

---@class cc.PhysicsJointDistance :cc.PhysicsJoint
local PhysicsJointDistance={ }
cc.PhysicsJointDistance=PhysicsJointDistance




---* 
---@return boolean
function PhysicsJointDistance:createConstraints () end
---*  Set the distance of the anchor points.
---@param distance float
---@return self
function PhysicsJointDistance:setDistance (distance) end
---*  Get the distance of the anchor points.
---@return float
function PhysicsJointDistance:getDistance () end
---*  Create a fixed distance joint.<br>
---* param a A is the body to connect.<br>
---* param b B is the body to connect.<br>
---* param anchr1 Anchr1 is the anchor point on body a.<br>
---* param anchr2 Anchr2 is the anchor point on body b.<br>
---* return A object pointer.
---@param a cc.PhysicsBody
---@param b cc.PhysicsBody
---@param anchr1 vec2_table
---@param anchr2 vec2_table
---@return self
function PhysicsJointDistance:construct (a,b,anchr1,anchr2) end