summaryrefslogtreecommitdiff
path: root/meta/3rd/Cocos4.0/cc.PhysicsJointDistance.lua
diff options
context:
space:
mode:
Diffstat (limited to 'meta/3rd/Cocos4.0/cc.PhysicsJointDistance.lua')
-rw-r--r--meta/3rd/Cocos4.0/cc.PhysicsJointDistance.lua30
1 files changed, 30 insertions, 0 deletions
diff --git a/meta/3rd/Cocos4.0/cc.PhysicsJointDistance.lua b/meta/3rd/Cocos4.0/cc.PhysicsJointDistance.lua
new file mode 100644
index 00000000..e98dec17
--- /dev/null
+++ b/meta/3rd/Cocos4.0/cc.PhysicsJointDistance.lua
@@ -0,0 +1,30 @@
+
+---@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 \ No newline at end of file