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

52 lines
1.8 KiB
Lua
Raw Normal View History

2014-03-10 14:04:58 +08:00
--------------------------------
-- @module PhysicsContactPreSolve
-- @parent_module cc
2014-03-10 14:04:58 +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)
--------------------------------
-- 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)
--------------------------------
-- Set the friction.
2014-03-10 14:04:58 +08:00
-- @function [parent=#PhysicsContactPreSolve] setFriction
-- @param self
-- @param #float friction
-- @return PhysicsContactPreSolve#PhysicsContactPreSolve self (return value: cc.PhysicsContactPreSolve)
2014-03-10 14:04:58 +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
-- @return PhysicsContactPreSolve#PhysicsContactPreSolve self (return value: cc.PhysicsContactPreSolve)
2014-03-10 14:04:58 +08:00
--------------------------------
-- Get surface velocity between two bodies.
2014-03-10 14:04:58 +08:00
-- @function [parent=#PhysicsContactPreSolve] getSurfaceVelocity
-- @param self
-- @return vec2_table#vec2_table ret (return value: vec2_table)
2014-03-10 14:04:58 +08:00
--------------------------------
-- Set the surface velocity.
2014-03-10 14:04:58 +08:00
-- @function [parent=#PhysicsContactPreSolve] setSurfaceVelocity
-- @param self
-- @param #vec2_table velocity
-- @return PhysicsContactPreSolve#PhysicsContactPreSolve self (return value: cc.PhysicsContactPreSolve)
2014-03-10 14:04:58 +08:00
--------------------------------
-- Set the restitution.
2014-03-10 14:04:58 +08:00
-- @function [parent=#PhysicsContactPreSolve] setRestitution
-- @param self
-- @param #float restitution
-- @return PhysicsContactPreSolve#PhysicsContactPreSolve self (return value: cc.PhysicsContactPreSolve)
2014-03-10 14:04:58 +08:00
return nil