A callback class for contact events. Contact events between two shapes will occur in following order:
beginContactpreSolve(before velocity update)postSolve(after velocity update)- (repeats 2. and 3. every frame while the shapes are touching)
endContact
Constructor
Methods
beginContact(c:Contact):Void
This is called when two shapes start touching each other. c is the contact of
the two shapes.
endContact(c:Contact):Void
This is called when two shapes end touching each other. c is the contact of
the two shapes.