diff options
Diffstat (limited to 'meta/3rd/Cocos4.0/cc.PhysicsJointRatchet.lua')
-rw-r--r-- | meta/3rd/Cocos4.0/cc.PhysicsJointRatchet.lua | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/meta/3rd/Cocos4.0/cc.PhysicsJointRatchet.lua b/meta/3rd/Cocos4.0/cc.PhysicsJointRatchet.lua new file mode 100644 index 00000000..9269bdd3 --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.PhysicsJointRatchet.lua @@ -0,0 +1,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
\ No newline at end of file |