summaryrefslogtreecommitdiff
path: root/meta/3rd/Cocos4.0/library/cc.PhysicsJoint.lua
blob: 4655e1560bd5466d32a48359e73dabd018f74787 (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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
---@meta

---@class cc.PhysicsJoint 
local PhysicsJoint={ }
cc.PhysicsJoint=PhysicsJoint




---* Get physics body a connected to this joint.
---@return cc.PhysicsBody
function PhysicsJoint:getBodyA () end
---* Get physics body b connected to this joint.
---@return cc.PhysicsBody
function PhysicsJoint:getBodyB () end
---*  Get the max force setting. 
---@return float
function PhysicsJoint:getMaxForce () end
---*  Set the max force between two bodies. 
---@param force float
---@return self
function PhysicsJoint:setMaxForce (force) end
---*  Determines if the joint is enable. 
---@return boolean
function PhysicsJoint:isEnabled () end
---*  Enable/Disable the joint. 
---@param enable boolean
---@return self
function PhysicsJoint:setEnable (enable) end
---*  Enable/disable the collision between two bodies. 
---@param enable boolean
---@return self
function PhysicsJoint:setCollisionEnable (enable) end
---* Get the physics world.
---@return cc.PhysicsWorld
function PhysicsJoint:getWorld () end
---* Set this joint's tag.<br>
---* param tag An integer number that identifies a PhysicsJoint.
---@param tag int
---@return self
function PhysicsJoint:setTag (tag) end
---*  Remove the joint from the world. 
---@return self
function PhysicsJoint:removeFormWorld () end
---*  Determines if the collision is enable. 
---@return boolean
function PhysicsJoint:isCollisionEnabled () end
---* Get this joint's tag.<br>
---* return An integer number.
---@return int
function PhysicsJoint:getTag () end