Event.PRE SOLVE: Difference between revisions
From GiderosMobile
No edit summary |
No edit summary |
||
| (6 intermediate revisions by one other user not shown) | |||
| Line 1: | Line 1: | ||
__NOTOC__ | __NOTOC__ | ||
'''Available since:''' Gideros 2011.6<br/> | <languages /> | ||
'''Value:''' preSolve<br/> | '''<translate>Available since</translate>:''' Gideros 2011.6<br/> | ||
=== Description === | '''<translate>Value</translate>:''' preSolve<br/> | ||
'''<translate>Defined by</translate>:''' [[Special:MyLanguage/b2.World|b2.World]]<br/> | |||
Usually in this event you can cancel or modify collisions in other ways using | |||
=== Parameters === | === <translate>Description</translate> === | ||
'''contact''': (b2.Contact) <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. | ||
'''fixtureA''': (b2.Fixture) <translate> | |||
'''fixtureB''': (b2.Fixture) <translate> | === <translate>Parameters</translate> === | ||
'''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 [[Special:MyLanguage/b2.Fixture|b2.Fixture]] of first colliding body</translate><br/> | |||
'''fixtureB''': (b2.Fixture) <translate>contains instance of [[Special:MyLanguage/b2.Fixture|b2.Fixture]] of second colliding body</translate><br/> | |||
{{B2.World}} | |||
Latest revision as of 15:36, 18 February 2020
Available since: Gideros 2011.6
Value: preSolve
Defined by: b2.World
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