Simple trajectory creator for projectile motion with line renerer in Unity. Example project developed in Unity 2020.3.30f1. You can just grab "TrajectoryCreator.cs" script inside Assets/Scripts folder or download and check SampleScene.
- Create empty game object.
- Assign TrajectoryCreator.cs component to it.
- Assign a material to automatically created line renderer. (Otherwise trajectory will be pink)
- Start the scene and play with trajectory properties.
Trajectory settings:
Sample trajectory visual: