summaryrefslogtreecommitdiff
path: root/meta/3rd/Cocos4.0/cc.Physics3DComponent.lua
diff options
context:
space:
mode:
Diffstat (limited to 'meta/3rd/Cocos4.0/cc.Physics3DComponent.lua')
-rw-r--r--meta/3rd/Cocos4.0/cc.Physics3DComponent.lua48
1 files changed, 48 insertions, 0 deletions
diff --git a/meta/3rd/Cocos4.0/cc.Physics3DComponent.lua b/meta/3rd/Cocos4.0/cc.Physics3DComponent.lua
new file mode 100644
index 00000000..e7fd116a
--- /dev/null
+++ b/meta/3rd/Cocos4.0/cc.Physics3DComponent.lua
@@ -0,0 +1,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 \ No newline at end of file