summaryrefslogtreecommitdiff
path: root/meta/3rd/Cocos4.0/library/cc.PhysicsJointMotor.lua
diff options
context:
space:
mode:
Diffstat (limited to 'meta/3rd/Cocos4.0/library/cc.PhysicsJointMotor.lua')
-rw-r--r--meta/3rd/Cocos4.0/library/cc.PhysicsJointMotor.lua29
1 files changed, 29 insertions, 0 deletions
diff --git a/meta/3rd/Cocos4.0/library/cc.PhysicsJointMotor.lua b/meta/3rd/Cocos4.0/library/cc.PhysicsJointMotor.lua
new file mode 100644
index 00000000..77e79241
--- /dev/null
+++ b/meta/3rd/Cocos4.0/library/cc.PhysicsJointMotor.lua
@@ -0,0 +1,29 @@
+---@meta
+
+---@class cc.PhysicsJointMotor :cc.PhysicsJoint
+local PhysicsJointMotor={ }
+cc.PhysicsJointMotor=PhysicsJointMotor
+
+
+
+
+---* Set the relative angular velocity.
+---@param rate float
+---@return self
+function PhysicsJointMotor:setRate (rate) end
+---* Get the relative angular velocity.
+---@return float
+function PhysicsJointMotor:getRate () end
+---*
+---@return boolean
+function PhysicsJointMotor:createConstraints () end
+---* Create a motor joint.<br>
+---* param a A is the body to connect.<br>
+---* param b B is the body to connect.<br>
+---* param rate Rate is the desired relative angular velocity.<br>
+---* return A object pointer.
+---@param a cc.PhysicsBody
+---@param b cc.PhysicsBody
+---@param rate float
+---@return self
+function PhysicsJointMotor:construct (a,b,rate) end \ No newline at end of file