blob: f83f9cbec8b26be3d5426659f0ccb8bfd3d6610f (
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
|
---@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
|