2014-03-10 14:04:58 +08:00
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- @module PhysicsShapeEdgeSegment
|
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 edge's end position.<br>
|
|
|
|
-- return A Vec2 object.
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @function [parent=#PhysicsShapeEdgeSegment] getPointB
|
|
|
|
-- @param self
|
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
|
|
|
|
|
|
|
--------------------------------
|
2015-03-19 20:30:15 +08:00
|
|
|
-- Get this edge's begin position.<br>
|
|
|
|
-- return A Vec2 object.
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @function [parent=#PhysicsShapeEdgeSegment] getPointA
|
|
|
|
-- @param self
|
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
|
|
|
|
|
|
|
--------------------------------
|
2015-03-19 20:30:15 +08:00
|
|
|
-- Creates a PhysicsShapeEdgeSegment with specified value.<br>
|
|
|
|
-- param a It's the edge's begin position.<br>
|
|
|
|
-- param b It's the edge's end position.<br>
|
|
|
|
-- param material A PhysicsMaterial object, the default value is PHYSICSSHAPE_MATERIAL_DEFAULT.<br>
|
|
|
|
-- param border It's a edge's border width.<br>
|
|
|
|
-- return An autoreleased PhysicsShapeEdgeSegment object pointer.
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @function [parent=#PhysicsShapeEdgeSegment] create
|
|
|
|
-- @param self
|
2014-09-02 13:45:07 +08:00
|
|
|
-- @param #vec2_table a
|
|
|
|
-- @param #vec2_table b
|
|
|
|
-- @param #cc.PhysicsMaterial material
|
|
|
|
-- @param #float border
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @return PhysicsShapeEdgeSegment#PhysicsShapeEdgeSegment ret (return value: cc.PhysicsShapeEdgeSegment)
|
|
|
|
|
2014-03-18 15:55:30 +08:00
|
|
|
--------------------------------
|
2015-03-19 20:30:15 +08:00
|
|
|
-- Get this edge's center position.<br>
|
|
|
|
-- return A Vec2 object.
|
2014-03-18 15:55:30 +08:00
|
|
|
-- @function [parent=#PhysicsShapeEdgeSegment] 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
|