summaryrefslogtreecommitdiff
path: root/meta/3rd/Cocos4.0/library/cc.PhysicsJointGear.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2021-07-05 20:51:43 +0800
committer最萌小汐 <sumneko@hotmail.com>2021-07-05 20:51:43 +0800
commit8fefb8f3e100976235dc83d6ae3785952d11c710 (patch)
tree459117e6cecc70824273c4d32285cb6eec468098 /meta/3rd/Cocos4.0/library/cc.PhysicsJointGear.lua
parentb6c18d05410fd4ca209f9c34e0992caf40cf3701 (diff)
downloadlua-language-server-8fefb8f3e100976235dc83d6ae3785952d11c710.zip
cleanup
Diffstat (limited to 'meta/3rd/Cocos4.0/library/cc.PhysicsJointGear.lua')
-rw-r--r--meta/3rd/Cocos4.0/library/cc.PhysicsJointGear.lua38
1 files changed, 38 insertions, 0 deletions
diff --git a/meta/3rd/Cocos4.0/library/cc.PhysicsJointGear.lua b/meta/3rd/Cocos4.0/library/cc.PhysicsJointGear.lua
new file mode 100644
index 00000000..e8c0330b
--- /dev/null
+++ b/meta/3rd/Cocos4.0/library/cc.PhysicsJointGear.lua
@@ -0,0 +1,38 @@
+---@meta
+
+---@class cc.PhysicsJointGear :cc.PhysicsJoint
+local PhysicsJointGear={ }
+cc.PhysicsJointGear=PhysicsJointGear
+
+
+
+
+---* Set the ratio.
+---@param ratchet float
+---@return self
+function PhysicsJointGear:setRatio (ratchet) end
+---* Get the angular offset of the two bodies.
+---@return float
+function PhysicsJointGear:getPhase () end
+---* Set the angular offset of the two bodies.
+---@param phase float
+---@return self
+function PhysicsJointGear:setPhase (phase) end
+---*
+---@return boolean
+function PhysicsJointGear:createConstraints () end
+---* Get the ratio.
+---@return float
+function PhysicsJointGear:getRatio () end
+---* Create a gear joint.<br>
+---* param a A is the body to connect.<br>
+---* param b B is the body to connect.<br>
+---* param phase Phase is the initial angular offset of the two bodies.<br>
+---* param ratio Ratio is always measured in absolute terms.<br>
+---* return A object pointer.
+---@param a cc.PhysicsBody
+---@param b cc.PhysicsBody
+---@param phase float
+---@param ratio float
+---@return self
+function PhysicsJointGear:construct (a,b,phase,ratio) end \ No newline at end of file