Difference between revisions of "B2.Manifold"
From GiderosMobile
| Line 4: | Line 4: | ||
=== Description === | === Description === | ||
Holds the local information about contact between 2 bodies | Holds the local information about contact between 2 bodies | ||
| + | === Examples === | ||
| + | '''Example content of b2.Manifold'''<br/> | ||
| + | <source lang="lua">[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 | ||
| + | }</source> | ||
{|- | {|- | ||
| style="width: 50%;"| | | style="width: 50%;"| | ||
Revision as of 10:44, 23 August 2018
Supported platforms:
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 |
EventsConstants |