diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2021-02-22 21:05:36 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2021-02-22 21:05:36 +0800 |
commit | 52097b6ee7cc8f5a770eb851902560b5b8592218 (patch) | |
tree | 6dcbb53ac0104912e950747a37aac6b25039e862 /meta/3rd/Cocos4.0/cc.Physics3DShape.lua | |
parent | 6839cd530c53387df4d5db61f0cb2e5ed1a87298 (diff) | |
download | lua-language-server-52097b6ee7cc8f5a770eb851902560b5b8592218.zip |
add meta/3rd with acknowledgement
Diffstat (limited to 'meta/3rd/Cocos4.0/cc.Physics3DShape.lua')
-rw-r--r-- | meta/3rd/Cocos4.0/cc.Physics3DShape.lua | 66 |
1 files changed, 66 insertions, 0 deletions
diff --git a/meta/3rd/Cocos4.0/cc.Physics3DShape.lua b/meta/3rd/Cocos4.0/cc.Physics3DShape.lua new file mode 100644 index 00000000..a9e4e88c --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.Physics3DShape.lua @@ -0,0 +1,66 @@ + +---@class cc.Physics3DShape :cc.Ref +local Physics3DShape={ } +cc.Physics3DShape=Physics3DShape + + + + +---* +---@return btCollisionShape +function Physics3DShape:getbtShape () end +---* +---@param radius float +---@return boolean +function Physics3DShape:initSphere (radius) end +---* +---@param ext vec3_table +---@return boolean +function Physics3DShape:initBox (ext) end +---* +---@param radius float +---@param height float +---@return boolean +function Physics3DShape:initCapsule (radius,height) end +---* +---@param radius float +---@param height float +---@return boolean +function Physics3DShape:initCylinder (radius,height) end +---* get shape type +---@return int +function Physics3DShape:getShapeType () end +---* create box shape<br> +---* param extent The extent of sphere. +---@param extent vec3_table +---@return self +function Physics3DShape:createBox (extent) end +---* create cylinder shape<br> +---* param radius The radius of cylinder.<br> +---* param height The height. +---@param radius float +---@param height float +---@return self +function Physics3DShape:createCylinder (radius,height) end +---* create convex hull<br> +---* param points The vertices of convex hull<br> +---* param numPoints The number of vertices. +---@param points vec3_table +---@param numPoints int +---@return self +function Physics3DShape:createConvexHull (points,numPoints) end +---* create capsule shape<br> +---* param radius The radius of capsule.<br> +---* param height The height (cylinder part). +---@param radius float +---@param height float +---@return self +function Physics3DShape:createCapsule (radius,height) end +---* create sphere shape<br> +---* param radius The radius of sphere. +---@param radius float +---@return self +function Physics3DShape:createSphere (radius) end +---* +---@return self +function Physics3DShape:Physics3DShape () end
\ No newline at end of file |