summaryrefslogtreecommitdiff
path: root/meta/3rd/Cocos4.0/cc.PhysicsJointRatchet.lua
blob: 9269bdd36f1abd6930d7e68b21cf8abe3aed8a28 (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
32
33
34
35
36
37
38
39
40
41
42
43
44

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




---*  Get the ratchet angle.
---@return float
function PhysicsJointRatchet:getAngle () end
---*  Set the ratchet angle.
---@param angle float
---@return self
function PhysicsJointRatchet:setAngle (angle) end
---* 
---@return boolean
function PhysicsJointRatchet:createConstraints () end
---*  Set the initial offset.
---@param phase float
---@return self
function PhysicsJointRatchet:setPhase (phase) end
---*  Get the initial offset.
---@return float
function PhysicsJointRatchet:getPhase () end
---*  Set the distance between "clicks".
---@param ratchet float
---@return self
function PhysicsJointRatchet:setRatchet (ratchet) end
---*  Get the distance between "clicks".
---@return float
function PhysicsJointRatchet:getRatchet () end
---*  Create a ratchet 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 offset to use when deciding where the ratchet angles are.<br>
---* param ratchet Ratchet is the distance between "clicks".<br>
---* return A object pointer.
---@param a cc.PhysicsBody
---@param b cc.PhysicsBody
---@param phase float
---@param ratchet float
---@return self
function PhysicsJointRatchet:construct (a,b,phase,ratchet) end