Difference between revisions of "B2.PolygonShape:setAsBox"
From GiderosMobile
Line 1: | Line 1: | ||
__NOTOC__ | __NOTOC__ | ||
+ | <languages /> | ||
'''<translate>Available since</translate>:''' Gideros 2011.6<br/> | '''<translate>Available since</translate>:''' Gideros 2011.6<br/> | ||
'''<translate>Class</translate>:''' [[Special:MyLanguage/b2.PolygonShape|b2.PolygonShape]]<br/> | '''<translate>Class</translate>:''' [[Special:MyLanguage/b2.PolygonShape|b2.PolygonShape]]<br/> |
Revision as of 09:58, 3 September 2018
Available since: Gideros 2011.6
Class: b2.PolygonShape
Description
Build vertices to represent an oriented box.
b2.PolygonShape:setAsBox(hx,hy,centerx,centery,angle)
Parameters
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