summaryrefslogtreecommitdiff
path: root/meta/3rd/Cocos4.0/cc.PhysicsShapePolygon.lua
diff options
context:
space:
mode:
Diffstat (limited to 'meta/3rd/Cocos4.0/cc.PhysicsShapePolygon.lua')
-rw-r--r--meta/3rd/Cocos4.0/cc.PhysicsShapePolygon.lua26
1 files changed, 26 insertions, 0 deletions
diff --git a/meta/3rd/Cocos4.0/cc.PhysicsShapePolygon.lua b/meta/3rd/Cocos4.0/cc.PhysicsShapePolygon.lua
new file mode 100644
index 00000000..18d3e932
--- /dev/null
+++ b/meta/3rd/Cocos4.0/cc.PhysicsShapePolygon.lua
@@ -0,0 +1,26 @@
+
+---@class cc.PhysicsShapePolygon :cc.PhysicsShape
+local PhysicsShapePolygon={ }
+cc.PhysicsShapePolygon=PhysicsShapePolygon
+
+
+
+
+---* Get this polygon's points array count.<br>
+---* return An integer number.
+---@return int
+function PhysicsShapePolygon:getPointsCount () end
+---* Get a point of this polygon's points array.<br>
+---* param i A index of this polygon's points array.<br>
+---* return A point value.
+---@param i int
+---@return vec2_table
+function PhysicsShapePolygon:getPoint (i) end
+---* Calculate the moment for a polygon.<br>
+---* return A float number.
+---@return float
+function PhysicsShapePolygon:calculateDefaultMoment () end
+---* Get this polygon's center position.<br>
+---* return A Vec2 object.
+---@return vec2_table
+function PhysicsShapePolygon:getCenter () end \ No newline at end of file