2014-03-10 14:04:58 +08:00
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- @module PhysicsJoint
|
2014-07-02 10:15:26 +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 physics body a connected to this joint.
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @function [parent=#PhysicsJoint] getBodyA
|
|
|
|
-- @param self
|
|
|
|
-- @return PhysicsBody#PhysicsBody ret (return value: cc.PhysicsBody)
|
|
|
|
|
|
|
|
--------------------------------
|
2015-03-19 20:30:15 +08:00
|
|
|
-- Get physics body b connected to this joint.
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @function [parent=#PhysicsJoint] getBodyB
|
|
|
|
-- @param self
|
|
|
|
-- @return PhysicsBody#PhysicsBody ret (return value: cc.PhysicsBody)
|
|
|
|
|
|
|
|
--------------------------------
|
2015-03-19 20:30:15 +08:00
|
|
|
-- Get the max force setting.
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @function [parent=#PhysicsJoint] getMaxForce
|
|
|
|
-- @param self
|
|
|
|
-- @return float#float ret (return value: float)
|
|
|
|
|
|
|
|
--------------------------------
|
2015-03-19 20:30:15 +08:00
|
|
|
-- Set the max force between two bodies.
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @function [parent=#PhysicsJoint] setMaxForce
|
|
|
|
-- @param self
|
2014-09-02 13:45:07 +08:00
|
|
|
-- @param #float force
|
2015-01-21 17:33:26 +08:00
|
|
|
-- @return PhysicsJoint#PhysicsJoint self (return value: cc.PhysicsJoint)
|
2014-03-10 14:04:58 +08:00
|
|
|
|
|
|
|
--------------------------------
|
2015-03-19 20:30:15 +08:00
|
|
|
-- Determines if the joint is enable.
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @function [parent=#PhysicsJoint] isEnabled
|
|
|
|
-- @param self
|
|
|
|
-- @return bool#bool ret (return value: bool)
|
|
|
|
|
|
|
|
--------------------------------
|
2015-03-19 20:30:15 +08:00
|
|
|
-- Enable/Disable the joint.
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @function [parent=#PhysicsJoint] setEnable
|
|
|
|
-- @param self
|
2014-09-02 13:45:07 +08:00
|
|
|
-- @param #bool enable
|
2015-01-21 17:33:26 +08:00
|
|
|
-- @return PhysicsJoint#PhysicsJoint self (return value: cc.PhysicsJoint)
|
2014-03-10 14:04:58 +08:00
|
|
|
|
|
|
|
--------------------------------
|
2015-03-19 20:30:15 +08:00
|
|
|
-- Enable/disable the collision between two bodies.
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @function [parent=#PhysicsJoint] setCollisionEnable
|
|
|
|
-- @param self
|
2014-09-02 13:45:07 +08:00
|
|
|
-- @param #bool enable
|
2015-01-21 17:33:26 +08:00
|
|
|
-- @return PhysicsJoint#PhysicsJoint self (return value: cc.PhysicsJoint)
|
2014-03-10 14:04:58 +08:00
|
|
|
|
|
|
|
--------------------------------
|
2015-03-19 20:30:15 +08:00
|
|
|
-- Get the physics world.
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @function [parent=#PhysicsJoint] getWorld
|
|
|
|
-- @param self
|
|
|
|
-- @return PhysicsWorld#PhysicsWorld ret (return value: cc.PhysicsWorld)
|
|
|
|
|
|
|
|
--------------------------------
|
2015-03-19 20:30:15 +08:00
|
|
|
-- Set this joint's tag.<br>
|
|
|
|
-- param tag An interger number that identifies a PhysicsJoint.
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @function [parent=#PhysicsJoint] setTag
|
|
|
|
-- @param self
|
2014-09-02 13:45:07 +08:00
|
|
|
-- @param #int tag
|
2015-01-21 17:33:26 +08:00
|
|
|
-- @return PhysicsJoint#PhysicsJoint self (return value: cc.PhysicsJoint)
|
2014-03-10 14:04:58 +08:00
|
|
|
|
|
|
|
--------------------------------
|
2015-03-19 20:30:15 +08:00
|
|
|
-- Remove the joint from the world.
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @function [parent=#PhysicsJoint] removeFormWorld
|
|
|
|
-- @param self
|
2015-01-21 17:33:26 +08:00
|
|
|
-- @return PhysicsJoint#PhysicsJoint self (return value: cc.PhysicsJoint)
|
2014-03-10 14:04:58 +08:00
|
|
|
|
|
|
|
--------------------------------
|
2015-03-19 20:30:15 +08:00
|
|
|
-- Determines if the collsion is enable.
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @function [parent=#PhysicsJoint] isCollisionEnabled
|
|
|
|
-- @param self
|
|
|
|
-- @return bool#bool ret (return value: bool)
|
|
|
|
|
|
|
|
--------------------------------
|
2015-03-19 20:30:15 +08:00
|
|
|
-- Get this joint's tag.<br>
|
|
|
|
-- return An interger number.
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @function [parent=#PhysicsJoint] getTag
|
|
|
|
-- @param self
|
|
|
|
-- @return int#int ret (return value: int)
|
|
|
|
|
|
|
|
return nil
|