axmol/cocos/scripting/lua-bindings/auto/api/PhysicsShapeBox.lua

35 lines
1.2 KiB
Lua
Raw Normal View History

2014-03-10 14:04:58 +08:00
--------------------------------
-- @module PhysicsShapeBox
-- @extend PhysicsShapePolygon
-- @parent_module cc
2014-03-10 14:04:58 +08:00
--------------------------------
-- Get this box's width and height.<br>
-- preturn An Size object.
2014-03-10 14:04:58 +08:00
-- @function [parent=#PhysicsShapeBox] getSize
-- @param self
-- @return size_table#size_table ret (return value: size_table)
--------------------------------
-- Creates a PhysicsShapeBox with specified value.<br>
-- param size Size contains this box's width and height.<br>
-- param material A PhysicsMaterial object, the default value is PHYSICSSHAPE_MATERIAL_DEFAULT.<br>
-- param offset A Vec2 object, it is the offset from the bodys center of gravity in body local coordinates.<br>
-- return An autoreleased PhysicsShapeBox object pointer.
2014-03-10 14:04:58 +08:00
-- @function [parent=#PhysicsShapeBox] create
-- @param self
-- @param #size_table size
-- @param #cc.PhysicsMaterial material
-- @param #vec2_table offset
2014-03-10 14:04:58 +08:00
-- @return PhysicsShapeBox#PhysicsShapeBox ret (return value: cc.PhysicsShapeBox)
--------------------------------
-- Get this box's position offset.<br>
-- return A Vec2 object.
-- @function [parent=#PhysicsShapeBox] getOffset
-- @param self
-- @return vec2_table#vec2_table ret (return value: vec2_table)
2014-03-10 14:04:58 +08:00
return nil