Difference between revisions of "B2.Manifold"

From GiderosMobile
m (Text replacement - "<source" to "<syntaxhighlight")
m (Text replacement - "</source" to "</syntaxhighlight")
Line 34: Line 34:
 
               [x] => 480
 
               [x] => 480
 
             }
 
             }
</source>
+
</syntaxhighlight>
  
 
{|-
 
{|-

Revision as of 17:21, 12 July 2023


Supported platforms: Platform android.pngPlatform ios.pngPlatform mac.pngPlatform pc.pngPlatform html5.pngPlatform winrt.pngPlatform win32.png
Available since: Gideros 2012.09.6

Description

Holds the local information about contact between 2 bodies.

Examples

Example content of b2.Manifold

[localNormal] => Table {
             {
               [y] => -1
               [x] => -0
             }
[points] => Table {
             {
               [1] => Table {
                  {
                    [normalImpulse] => 0
                    [localPoint] => Table {
                                {
                                  [y] => 0
                                  [x] => 0
                                }
                    [tangentImpulse] => 0
                  }
             }
[localPoint] => Table {
             {
               [y] => 320.00000953674
               [x] => 480
             }

Methods

Events

Constants

localNormal
localPoint
points