(Instant Replay?) Rewinding Physics animation on Multiple Objects

Hello.

Is there any easy way to capture the position of multiple Physics objects as they interact with each other and then rewind the animation like an instant replay?

For example, I take a shot in a game of pool. I want to be able to rewind and replay the shot so that every object follows the exact path they took with the physics in place. I want the option to replay at real speed or slow motion.

Storing the positions of every object onEnterFrame would most likely cause problems on the frame rate.  Any suggestions that wouldn’t be as resource intensive on the app?

Thanks in advance.

Hi @byron5,

As you say, the “positional recording” on every frame would probably be a performance killer, however you may be able to record a position every several frames, like on a short repeating timer, so that you’re not getting every frame position, but enough to replay a satisfactory enactment of what happened.

Brent

Hi @byron5,

As you say, the “positional recording” on every frame would probably be a performance killer, however you may be able to record a position every several frames, like on a short repeating timer, so that you’re not getting every frame position, but enough to replay a satisfactory enactment of what happened.

Brent