I'm trying to model a ramp in a pinball game, by adding an extra downward force while a ball is on the ramp. The interior poly fixture of the ramp is set as a sensor, but I'm having troubles detecting continuous contacts throughout the steps while the ball is in contact with the ramp.
PostSolve appears to return no contacts at all, and BeginContact only seems to return a single contact on ramp entry.
Is there anything via the contact listener (or something else) that will fire every frame that the ball is in contact with the ramp sensor?
Or do I need to set a flag somewhere, clear it in EndContact, and then do the force processing somewhere else (like my Main ENTER_FRAME) while the flag is set?
--
John
PostSolve appears to return no contacts at all, and BeginContact only seems to return a single contact on ramp entry.
Is there anything via the contact listener (or something else) that will fire every frame that the ball is in contact with the ramp sensor?
Or do I need to set a flag somewhere, clear it in EndContact, and then do the force processing somewhere else (like my Main ENTER_FRAME) while the flag is set?
--
John