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