---@meta ---@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.
---* param a A is the body to connect.
---* param b B is the body to connect.
---* param phase Phase is the initial offset to use when deciding where the ratchet angles are.
---* param ratchet Ratchet is the distance between "clicks".
---* 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