mirror of https://github.com/axmolengine/axmol.git
68 lines
2.2 KiB
Lua
68 lines
2.2 KiB
Lua
|
|
--------------------------------
|
|
-- @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.<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.
|
|
-- @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
|