B2.PolygonShape:setAsBox

From GiderosMobile
Revision as of 11:04, 23 August 2018 by Hgy29 (talk | contribs) (Created page with "__NOTOC__ '''Available since:''' Gideros 2011.6<br/> === Description === <br /> Build vertices to represent an oriented box.<br /> <br /> <source lang="lua"> = b2.PolygonShape...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Available since: Gideros 2011.6

Description


Build vertices to represent an oriented box.

= b2.PolygonShape:setAsBox(hxhycenterxcenteryangle,)

'hx: (number) the half-width '
'hy: (number) the half-heigh '
'centerx: (number, default = 0) the x coordinate of the center of the box in local coordinates '
'centery: (number, default = 0) the y coordinate of the center of the box in local coordinates '
'angle: (number, default = 0) the rotation of the box in local coordinates '