2014-03-10 14:04:58 +08:00
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- @module PhysicsContactPreSolve
|
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 friction between two bodies.
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @function [parent=#PhysicsContactPreSolve] getFriction
|
|
|
|
-- @param self
|
|
|
|
-- @return float#float ret (return value: float)
|
|
|
|
|
|
|
|
--------------------------------
|
2015-03-19 20:30:15 +08:00
|
|
|
-- Get restitution between two bodies.
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @function [parent=#PhysicsContactPreSolve] getRestitution
|
|
|
|
-- @param self
|
|
|
|
-- @return float#float ret (return value: float)
|
|
|
|
|
|
|
|
--------------------------------
|
2015-03-19 20:30:15 +08:00
|
|
|
-- Set the friction.
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @function [parent=#PhysicsContactPreSolve] setFriction
|
|
|
|
-- @param self
|
2014-09-02 13:45:07 +08:00
|
|
|
-- @param #float friction
|
2015-01-21 17:33:26 +08:00
|
|
|
-- @return PhysicsContactPreSolve#PhysicsContactPreSolve self (return value: cc.PhysicsContactPreSolve)
|
2014-03-10 14:04:58 +08:00
|
|
|
|
|
|
|
--------------------------------
|
2015-03-19 20:30:15 +08:00
|
|
|
-- Ignore the rest of the contact presolve and postsolve callbacks.
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @function [parent=#PhysicsContactPreSolve] ignore
|
|
|
|
-- @param self
|
2015-01-21 17:33:26 +08:00
|
|
|
-- @return PhysicsContactPreSolve#PhysicsContactPreSolve self (return value: cc.PhysicsContactPreSolve)
|
2014-03-10 14:04:58 +08:00
|
|
|
|
|
|
|
--------------------------------
|
2015-03-19 20:30:15 +08:00
|
|
|
-- Get surface velocity between two bodies.
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @function [parent=#PhysicsContactPreSolve] getSurfaceVelocity
|
|
|
|
-- @param self
|
2014-05-27 14:31:18 +08:00
|
|
|
-- @return vec2_table#vec2_table ret (return value: vec2_table)
|
2014-03-10 14:04:58 +08:00
|
|
|
|
|
|
|
--------------------------------
|
2015-03-19 20:30:15 +08:00
|
|
|
-- Set the surface velocity.
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @function [parent=#PhysicsContactPreSolve] setSurfaceVelocity
|
|
|
|
-- @param self
|
2014-09-02 13:45:07 +08:00
|
|
|
-- @param #vec2_table velocity
|
2015-01-21 17:33:26 +08:00
|
|
|
-- @return PhysicsContactPreSolve#PhysicsContactPreSolve self (return value: cc.PhysicsContactPreSolve)
|
2014-03-10 14:04:58 +08:00
|
|
|
|
|
|
|
--------------------------------
|
2015-03-19 20:30:15 +08:00
|
|
|
-- Set the restitution.
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @function [parent=#PhysicsContactPreSolve] setRestitution
|
|
|
|
-- @param self
|
2014-09-02 13:45:07 +08:00
|
|
|
-- @param #float restitution
|
2015-01-21 17:33:26 +08:00
|
|
|
-- @return PhysicsContactPreSolve#PhysicsContactPreSolve self (return value: cc.PhysicsContactPreSolve)
|
2014-03-10 14:04:58 +08:00
|
|
|
|
|
|
|
return nil
|