I'm working on a game that needs to predict several/many steps ahead where a RigidBody2D will go. Is there any way to, for example, advance a physics simulation for many steps and use the position at each step to build a trajectory? I know something like this could be done for projectile motion with some simple math, but the game I'm making will have difficult-to-predict physics interactions and can only really be predicted by simulating many steps ahead (i.e. see into the future).
For a little more context, imagine the trajectory indicators that show for games like angry birds, gold games, peglin, etc. That's my desired end goal, but the physics interactions are sufficiently complicated that I'm not sure how to go about it.