Drawing a trajectory

Hi @sergey_ch,

I see two ways to do this:

  1. If you are using a trajectory that can be described with a math equation, run it against a number of points and find the projected positions.

Take a look at this library that can do that for you for a number of trajectories:

  1. A more advanced way would be to run a second ammo physics instance that can consume your starting position/forces and you can step forward e.g. 1000 steps in a single frame. As it steps forward record each position, now you have your trajectory.
2 Likes