summaryrefslogtreecommitdiff
path: root/meta/3rd/Cocos4.0/cc.Physics3DComponent.lua
blob: e7fd116af49c1d0ed370dfc05ae6d97a0652944c (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

---@class cc.Physics3DComponent :cc.Component
local Physics3DComponent={ }
cc.Physics3DComponent=Physics3DComponent




---* synchronize node transformation to physics
---@return self
function Physics3DComponent:syncNodeToPhysics () end
---* add this component to physics world, called by scene
---@param world cc.Physics3DWorld
---@return self
function Physics3DComponent:addToPhysicsWorld (world) end
---* synchronize physics transformation to node
---@return self
function Physics3DComponent:syncPhysicsToNode () end
---* get physics object
---@return cc.Physics3DObject
function Physics3DComponent:getPhysics3DObject () end
---* set Physics object to the component
---@param physicsObj cc.Physics3DObject
---@return self
function Physics3DComponent:setPhysics3DObject (physicsObj) end
---* synchronization between node and physics is time consuming, you can skip some synchronization using this function
---@param syncFlag int
---@return self
function Physics3DComponent:setSyncFlag (syncFlag) end
---* get the component name, it is used to find whether it is Physics3DComponent
---@return string
function Physics3DComponent:getPhysics3DComponentName () end
---* set it enable or not
---@param b boolean
---@return self
function Physics3DComponent:setEnabled (b) end
---* 
---@return boolean
function Physics3DComponent:init () end
---* 
---@return self
function Physics3DComponent:onEnter () end
---* 
---@return self
function Physics3DComponent:onExit () end
---* 
---@return self
function Physics3DComponent:Physics3DComponent () end