2014-03-10 14:04:58 +08:00
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- @module PhysicsShapePolygon
|
2014-03-20 10:21:28 +08:00
|
|
|
-- @extend PhysicsShape
|
2014-06-25 17:36:50 +08:00
|
|
|
-- @parent_module cc
|
2014-03-18 15:55:30 +08:00
|
|
|
|
2014-03-10 14:04:58 +08:00
|
|
|
--------------------------------
|
2015-03-19 20:30:15 +08:00
|
|
|
-- Get this polygon's points array count.<br>
|
2015-03-27 13:46:01 +08:00
|
|
|
-- return An interger number.
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @function [parent=#PhysicsShapePolygon] getPointsCount
|
|
|
|
-- @param self
|
|
|
|
-- @return int#int ret (return value: int)
|
|
|
|
|
|
|
|
--------------------------------
|
2015-03-19 20:30:15 +08:00
|
|
|
-- 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.
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @function [parent=#PhysicsShapePolygon] getPoint
|
|
|
|
-- @param self
|
2014-09-02 13:45:07 +08:00
|
|
|
-- @param #int i
|
2014-05-27 14:31:18 +08:00
|
|
|
-- @return vec2_table#vec2_table ret (return value: vec2_table)
|
2014-03-10 14:04:58 +08:00
|
|
|
|
2014-03-18 15:55:30 +08:00
|
|
|
--------------------------------
|
2015-03-19 20:30:15 +08:00
|
|
|
-- Calculate the moment for a polygon.<br>
|
|
|
|
-- return A float number.
|
2014-03-18 15:55:30 +08:00
|
|
|
-- @function [parent=#PhysicsShapePolygon] calculateDefaultMoment
|
|
|
|
-- @param self
|
|
|
|
-- @return float#float ret (return value: float)
|
|
|
|
|
|
|
|
--------------------------------
|
2015-03-19 20:30:15 +08:00
|
|
|
-- Get this polygon's center position.<br>
|
|
|
|
-- return A Vec2 object.
|
2014-03-18 15:55:30 +08:00
|
|
|
-- @function [parent=#PhysicsShapePolygon] getCenter
|
|
|
|
-- @param self
|
2014-05-27 14:31:18 +08:00
|
|
|
-- @return vec2_table#vec2_table ret (return value: vec2_table)
|
2014-03-18 15:55:30 +08:00
|
|
|
|
2014-03-10 14:04:58 +08:00
|
|
|
return nil
|