Trajectory prediction in Unity
Predict trajectory with Physics.Simulate. Not sure about performance if there is a lot of stuff going on, but should be absolutely fine for small simulations. Anyway in case you use Physics.Simulate a lot dont forget to always profile before optimizing. Or if you are still in a preproduction phase, make a small proof of concept with expected amount (and more for greater confidence) of operations to simulate, so you can be sure that this approach is suitable for your case.
https://www.youtube.com/watch?v=4VUmhuhkELk
Repo: https://github.com/ToughNutToCrack/TrajectoryPrediction
#simulation #physics #trajectory #prediction
Post #1658
86