Difference between revisions of "B2.Shape"

From GiderosMobile
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> ===
<translate><br />
+
A shape is used for collision detection.
A shape is used for collision detection.<br />
+
 
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.ChainShape|b2.ChainShape]] and [[Special:MyLanguage/b2.PolygonShape|b2.PolygonShape]] instances.<br />
+
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.
<br /></translate>
+
 
{|-
+
=== <translate>Classes</translate> ===
| style="width: 50%; vertical-align:top;"|
+
<div style="column-count:2;-moz-column-count:2;-webkit-column-count:2">
=== <translate>Methods</translate> ===
+
[[Special:MyLanguage/b2.ChainShape|b2.ChainShape]]<br/>
| style="width: 50%; vertical-align:top;"|
+
[[Special:MyLanguage/b2.CircleShape|b2.CircleShape]]<br/>
=== <translate>Events</translate> ===
+
[[Special:MyLanguage/b2.EdgeShape|b2.EdgeShape]]<br/>
=== <translate>Constants</translate> ===
+
[[Special:MyLanguage/b2.PolygonShape|b2.PolygonShape]]<br/>
|}
+
</div>
 +
 
 +
----
 +
*'''[[LiquidFun]]'''

Revision as of 15:40, 18 February 2020


Supported platforms: Platform android.pngPlatform ios.pngPlatform mac.pngPlatform pc.pngPlatform html5.pngPlatform winrt.pngPlatform win32.png
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.

Classes