axmol/cocos/scripting/lua-bindings/auto/api/PhysicsJointRotarySpring.lua

68 lines
2.4 KiB
Lua
Raw Normal View History

2014-03-10 14:04:58 +08:00
--------------------------------
-- @module PhysicsJointRotarySpring
-- @extend PhysicsJoint
-- @parent_module cc
2014-03-10 14:04:58 +08:00
--------------------------------
-- Get the spring soft constant.
2014-03-10 14:04:58 +08:00
-- @function [parent=#PhysicsJointRotarySpring] getDamping
-- @param self
-- @return float#float ret (return value: float)
--------------------------------
-- Set the relative angle in radians from the body a to b.
2014-03-10 14:04:58 +08:00
-- @function [parent=#PhysicsJointRotarySpring] setRestAngle
-- @param self
-- @param #float restAngle
-- @return PhysicsJointRotarySpring#PhysicsJointRotarySpring self (return value: cc.PhysicsJointRotarySpring)
2014-03-10 14:04:58 +08:00
--------------------------------
-- Get the spring constant.
2014-03-10 14:04:58 +08:00
-- @function [parent=#PhysicsJointRotarySpring] getStiffness
-- @param self
-- @return float#float ret (return value: float)
--------------------------------
--
-- @function [parent=#PhysicsJointRotarySpring] createConstraints
-- @param self
-- @return bool#bool ret (return value: bool)
2014-03-10 14:04:58 +08:00
--------------------------------
-- Set the spring constant.
2014-03-10 14:04:58 +08:00
-- @function [parent=#PhysicsJointRotarySpring] setStiffness
-- @param self
-- @param #float stiffness
-- @return PhysicsJointRotarySpring#PhysicsJointRotarySpring self (return value: cc.PhysicsJointRotarySpring)
2014-03-10 14:04:58 +08:00
--------------------------------
-- Set the spring soft constant.
2014-03-10 14:04:58 +08:00
-- @function [parent=#PhysicsJointRotarySpring] setDamping
-- @param self
-- @param #float damping
-- @return PhysicsJointRotarySpring#PhysicsJointRotarySpring self (return value: cc.PhysicsJointRotarySpring)
2014-03-10 14:04:58 +08:00
--------------------------------
-- Get the relative angle in radians from the body a to b.
2014-03-10 14:04:58 +08:00
-- @function [parent=#PhysicsJointRotarySpring] getRestAngle
-- @param self
-- @return float#float ret (return value: float)
--------------------------------
-- Create a damped rotary spring joint.<br>
-- param a A is the body to connect.<br>
-- param b B is the body to connect.<br>
-- param stiffness It's the spring constant.<br>
-- param damping It's how soft to make the damping of the spring.<br>
-- return A object pointer.
2014-03-10 14:04:58 +08:00
-- @function [parent=#PhysicsJointRotarySpring] construct
-- @param self
-- @param #cc.PhysicsBody a
-- @param #cc.PhysicsBody b
-- @param #float stiffness
-- @param #float damping
2014-03-10 14:04:58 +08:00
-- @return PhysicsJointRotarySpring#PhysicsJointRotarySpring ret (return value: cc.PhysicsJointRotarySpring)
return nil