2014-03-10 14:04:58 +08:00
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- @module PhysicsJointRatchet
|
2014-03-20 10:21:28 +08:00
|
|
|
-- @extend PhysicsJoint
|
2014-06-25 17:36:50 +08:00
|
|
|
-- @parent_module cc
|
2014-03-18 15:55:30 +08:00
|
|
|
|
2014-03-10 14:04:58 +08:00
|
|
|
--------------------------------
|
2015-03-19 20:30:15 +08:00
|
|
|
-- Get the ratchet angle.
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @function [parent=#PhysicsJointRatchet] getAngle
|
|
|
|
-- @param self
|
|
|
|
-- @return float#float ret (return value: float)
|
|
|
|
|
|
|
|
--------------------------------
|
2015-03-19 20:30:15 +08:00
|
|
|
-- Set the ratchet angle.
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @function [parent=#PhysicsJointRatchet] setAngle
|
|
|
|
-- @param self
|
2014-09-02 13:45:07 +08:00
|
|
|
-- @param #float angle
|
2015-01-21 17:33:26 +08:00
|
|
|
-- @return PhysicsJointRatchet#PhysicsJointRatchet self (return value: cc.PhysicsJointRatchet)
|
2014-03-10 14:04:58 +08:00
|
|
|
|
2015-01-08 10:40:40 +08:00
|
|
|
--------------------------------
|
|
|
|
--
|
|
|
|
-- @function [parent=#PhysicsJointRatchet] createConstraints
|
|
|
|
-- @param self
|
|
|
|
-- @return bool#bool ret (return value: bool)
|
|
|
|
|
2014-03-10 14:04:58 +08:00
|
|
|
--------------------------------
|
2015-03-19 20:30:15 +08:00
|
|
|
-- Set the initial offset.
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @function [parent=#PhysicsJointRatchet] setPhase
|
|
|
|
-- @param self
|
2014-09-02 13:45:07 +08:00
|
|
|
-- @param #float phase
|
2015-01-21 17:33:26 +08:00
|
|
|
-- @return PhysicsJointRatchet#PhysicsJointRatchet self (return value: cc.PhysicsJointRatchet)
|
2014-03-10 14:04:58 +08:00
|
|
|
|
|
|
|
--------------------------------
|
2015-03-19 20:30:15 +08:00
|
|
|
-- Get the initial offset.
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @function [parent=#PhysicsJointRatchet] getPhase
|
|
|
|
-- @param self
|
|
|
|
-- @return float#float ret (return value: float)
|
|
|
|
|
|
|
|
--------------------------------
|
2015-03-31 12:01:57 +08:00
|
|
|
-- Set the distance between "clicks".
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @function [parent=#PhysicsJointRatchet] setRatchet
|
|
|
|
-- @param self
|
2014-09-02 13:45:07 +08:00
|
|
|
-- @param #float ratchet
|
2015-01-21 17:33:26 +08:00
|
|
|
-- @return PhysicsJointRatchet#PhysicsJointRatchet self (return value: cc.PhysicsJointRatchet)
|
2014-03-10 14:04:58 +08:00
|
|
|
|
|
|
|
--------------------------------
|
2015-03-31 12:01:57 +08:00
|
|
|
-- Get the distance between "clicks".
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @function [parent=#PhysicsJointRatchet] getRatchet
|
|
|
|
-- @param self
|
|
|
|
-- @return float#float ret (return value: float)
|
|
|
|
|
|
|
|
--------------------------------
|
2015-03-19 20:30:15 +08:00
|
|
|
-- 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>
|
2015-03-31 12:01:57 +08:00
|
|
|
-- param ratchet Ratchet is the distance between "clicks".<br>
|
2015-03-19 20:30:15 +08:00
|
|
|
-- return A object pointer.
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @function [parent=#PhysicsJointRatchet] construct
|
|
|
|
-- @param self
|
2014-09-02 13:45:07 +08:00
|
|
|
-- @param #cc.PhysicsBody a
|
|
|
|
-- @param #cc.PhysicsBody b
|
|
|
|
-- @param #float phase
|
|
|
|
-- @param #float ratchet
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @return PhysicsJointRatchet#PhysicsJointRatchet ret (return value: cc.PhysicsJointRatchet)
|
|
|
|
|
|
|
|
return nil
|