Event.PRE SOLVE: Difference between revisions
From GiderosMobile
No edit summary |
No edit summary |
||
| Line 3: | Line 3: | ||
'''Value:''' preSolve<br/> | '''Value:''' preSolve<br/> | ||
=== Description === | === Description === | ||
<translate>This event is usually dispatched after [[Event.BEGIN_CONTACT]] and can be dispatched multiple times on each reaction between objects. | <translate>This event is usually dispatched after [[Special:MyLanguage/Event.BEGIN_CONTACT|Event.BEGIN_CONTACT]] and can be dispatched multiple times on each reaction between objects. | ||
Usually in this event you can cancel or modify collisions in other ways using [[event.contact]] object.</translate> | Usually in this event you can cancel or modify collisions in other ways using [[Special:MyLanguage/event.contact|event.contact]] object.</translate> | ||
=== Parameters === | === Parameters === | ||
'''contact''': (b2.Contact) <translate>Contains instance of [[b2.Contact]] holding information about this collision</translate><br/> | '''contact''': (b2.Contact) <translate>Contains instance of [[Special:MyLanguage/b2.Contact|b2.Contact]] holding information about this collision</translate><br/> | ||
'''fixtureA''': (b2.Fixture) <translate>Contains instance of [[b2.Fixture]] of first colliding body</translate><br/> | '''fixtureA''': (b2.Fixture) <translate>Contains instance of [[Special:MyLanguage/b2.Fixture|b2.Fixture]] of first colliding body</translate><br/> | ||
'''fixtureB''': (b2.Fixture) <translate>Contains instance of [[b2.Fixture]] of second colliding body</translate><br/> | '''fixtureB''': (b2.Fixture) <translate>Contains instance of [[Special:MyLanguage/b2.Fixture|b2.Fixture]] of second colliding body</translate><br/> | ||
Revision as of 15:34, 23 August 2018
Available since: Gideros 2011.6
Value: preSolve
Description
This event is usually dispatched after Event.BEGIN_CONTACT and can be dispatched multiple times on each reaction between objects. Usually in this event you can cancel or modify collisions in other ways using event.contact object.
Parameters
contact: (b2.Contact) Contains instance of b2.Contact holding information about this collision
fixtureA: (b2.Fixture) Contains instance of b2.Fixture of first colliding body
fixtureB: (b2.Fixture) Contains instance of b2.Fixture of second colliding body