TGViewer
Everyday Unity Everyday Unity @everydayunity · 1.18K subscribers
Post #1658 86
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
YouTube Trajectory prediction in Unity In many games, especially in 2d puzzles, the player can see a line that represents the bullet trajectory before shooting. This mechanics is used for example in Puzzle Bubble, Tank Wars, Peggle, and many more. It's commonly used for power-ups or tutorial levels.…
  • 👍 1
More from @everydayunity
  1. Oct 2, 2026Customize Claude Code with mods in TypeScript You can now make mods for Claude cli and app…
  2. Sep 24, 2026Now you can change the effort mid session in new Claude. So the advice about caching from…
  3. Sep 24, 2026We were wondering in the comments what Claude reset does. Here is the answer https://www.r…
  4. Sep 22, 2026Introducing GPT‑6 Sol and Luna And better & cheaper sol and luna as an immediate response…
  5. Sep 22, 2026Introducing Claude Opus 5.5 \ Anthropic Cost and speed. Opus 5.5 requires less compute to…
  6. Sep 21, 2026Claude Code effort level and model selection effort means more than just "thinking time."…
Threads Profile ViewerView any public Threads profile without an account.Open ThreadLook →Writing with AI? Make it sound human.Metric37 rewrites AI drafts so they read naturally. Free AI detector, 1,500 words free.Try Metric37 →