blob: 84c132b3e1130560468ee3bcc64ee5d122ee1b64 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
---@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
|