summaryrefslogtreecommitdiff
path: root/meta/3rd/Cocos4.0/library/cc.PhysicsContactPreSolve.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2021-07-05 20:51:43 +0800
committer最萌小汐 <sumneko@hotmail.com>2021-07-05 20:51:43 +0800
commit8fefb8f3e100976235dc83d6ae3785952d11c710 (patch)
tree459117e6cecc70824273c4d32285cb6eec468098 /meta/3rd/Cocos4.0/library/cc.PhysicsContactPreSolve.lua
parentb6c18d05410fd4ca209f9c34e0992caf40cf3701 (diff)
downloadlua-language-server-8fefb8f3e100976235dc83d6ae3785952d11c710.zip
cleanup
Diffstat (limited to 'meta/3rd/Cocos4.0/library/cc.PhysicsContactPreSolve.lua')
-rw-r--r--meta/3rd/Cocos4.0/library/cc.PhysicsContactPreSolve.lua33
1 files changed, 33 insertions, 0 deletions
diff --git a/meta/3rd/Cocos4.0/library/cc.PhysicsContactPreSolve.lua b/meta/3rd/Cocos4.0/library/cc.PhysicsContactPreSolve.lua
new file mode 100644
index 00000000..ab3b6b43
--- /dev/null
+++ b/meta/3rd/Cocos4.0/library/cc.PhysicsContactPreSolve.lua
@@ -0,0 +1,33 @@
+---@meta
+
+---@class cc.PhysicsContactPreSolve
+local PhysicsContactPreSolve={ }
+cc.PhysicsContactPreSolve=PhysicsContactPreSolve
+
+
+
+
+---* Get friction between two bodies.
+---@return float
+function PhysicsContactPreSolve:getFriction () end
+---* Get restitution between two bodies.
+---@return float
+function PhysicsContactPreSolve:getRestitution () end
+---* Set the friction.
+---@param friction float
+---@return self
+function PhysicsContactPreSolve:setFriction (friction) end
+---* Ignore the rest of the contact presolve and postsolve callbacks.
+---@return self
+function PhysicsContactPreSolve:ignore () end
+---* Get surface velocity between two bodies.
+---@return vec2_table
+function PhysicsContactPreSolve:getSurfaceVelocity () end
+---* Set the surface velocity.
+---@param velocity vec2_table
+---@return self
+function PhysicsContactPreSolve:setSurfaceVelocity (velocity) end
+---* Set the restitution.
+---@param restitution float
+---@return self
+function PhysicsContactPreSolve:setRestitution (restitution) end \ No newline at end of file