-------------------------------- -- @module PhysicsJointRatchet -- @extend PhysicsJoint -- @parent_module cc -------------------------------- -- Get the ratchet angle. -- @function [parent=#PhysicsJointRatchet] getAngle -- @param self -- @return float#float ret (return value: float) -------------------------------- -- Set the ratchet angle. -- @function [parent=#PhysicsJointRatchet] setAngle -- @param self -- @param #float angle -- @return PhysicsJointRatchet#PhysicsJointRatchet self (return value: cc.PhysicsJointRatchet) -------------------------------- -- -- @function [parent=#PhysicsJointRatchet] createConstraints -- @param self -- @return bool#bool ret (return value: bool) -------------------------------- -- Set the initial offset. -- @function [parent=#PhysicsJointRatchet] setPhase -- @param self -- @param #float phase -- @return PhysicsJointRatchet#PhysicsJointRatchet self (return value: cc.PhysicsJointRatchet) -------------------------------- -- Get the initial offset. -- @function [parent=#PhysicsJointRatchet] getPhase -- @param self -- @return float#float ret (return value: float) -------------------------------- -- Set the distance between “clicks”. -- @function [parent=#PhysicsJointRatchet] setRatchet -- @param self -- @param #float ratchet -- @return PhysicsJointRatchet#PhysicsJointRatchet self (return value: cc.PhysicsJointRatchet) -------------------------------- -- Get the distance between “clicks”. -- @function [parent=#PhysicsJointRatchet] getRatchet -- @param self -- @return float#float ret (return value: float) -------------------------------- -- 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. -- @function [parent=#PhysicsJointRatchet] construct -- @param self -- @param #cc.PhysicsBody a -- @param #cc.PhysicsBody b -- @param #float phase -- @param #float ratchet -- @return PhysicsJointRatchet#PhysicsJointRatchet ret (return value: cc.PhysicsJointRatchet) return nil