B2.Shape: Difference between revisions
From GiderosMobile
No edit summary |
No edit summary |
||
| Line 4: | Line 4: | ||
'''<translate>Supported platforms</translate>:''' [[File:Platform android.png]][[File:Platform ios.png]][[File:Platform mac.png]][[File:Platform pc.png]][[File:Platform html5.png]][[File:Platform winrt.png]][[File:Platform win32.png]]<br/> | '''<translate>Supported platforms</translate>:''' [[File:Platform android.png]][[File:Platform ios.png]][[File:Platform mac.png]][[File:Platform pc.png]][[File:Platform html5.png]][[File:Platform winrt.png]][[File:Platform win32.png]]<br/> | ||
'''<translate>Available since</translate>:''' Gideros 2011.6<br/> | '''<translate>Available since</translate>:''' Gideros 2011.6<br/> | ||
=== <translate>Description</translate> === | === <translate>Description</translate> === | ||
A shape is used for collision detection. | |||
A shape is used for collision detection. | |||
You can not create a [[Special:MyLanguage/b2.Shape|b2.Shape]] instance directly, but instead you create [[Special:MyLanguage/b2.CircleShape|b2.CircleShape]], [[Special:MyLanguage/b2. | You can not create a [[Special:MyLanguage/b2.Shape|b2.Shape]] instance directly, but instead you create [[Special:MyLanguage/b2.ChainShape|b2.ChainShape]], [[Special:MyLanguage/b2.CircleShape|b2.CircleShape]], [[Special:MyLanguage/b2.EdgeShape|b2.EdgeShape]] and [[Special:MyLanguage/b2.PolygonShape|b2.PolygonShape]] instances. | ||
=== <translate>Classes</translate> === | |||
<div style="column-count:2;-moz-column-count:2;-webkit-column-count:2"> | |||
=== <translate> | [[Special:MyLanguage/b2.ChainShape|b2.ChainShape]]<br/> | ||
[[Special:MyLanguage/b2.CircleShape|b2.CircleShape]]<br/> | |||
[[Special:MyLanguage/b2.EdgeShape|b2.EdgeShape]]<br/> | |||
[[Special:MyLanguage/b2.PolygonShape|b2.PolygonShape]]<br/> | |||
</div> | |||
---- | |||
*'''[[LiquidFun]]''' | |||
Revision as of 13:40, 18 February 2020
Supported platforms: ![]()
![]()
![]()
![]()
![]()
![]()
![]()
Available since: Gideros 2011.6
Description
A shape is used for collision detection.
You can not create a b2.Shape instance directly, but instead you create b2.ChainShape, b2.CircleShape, b2.EdgeShape and b2.PolygonShape instances.