Show where object to fall

I’m following this tutorial to create an arc in the game:

I would like to show the trajectory using ADDFORCE, but…
I do not know what the actual values to pass into the script, and this script just create a arc,he does not go to the floor, not taking into account the scene.

Thanks.

If you’re using physics, then the physics will simulate it (i.e., discretely approximate an arc) at whatever your platform Time.fixedDeltaTime value is, over whatever time interval it is “flying.”

If you’re doing it yourself all in one step to pre-generate the mesh arc, you can use your initial velocity, apply it incrementally at this time interval, and use also the current Physics.gravity setting to do all the work yourself in a single frame and use the values along the parabola to produce a mesh.

In the latter case it does not make sense to use Rigidbody.AddForce() because that will have no effect until you allow the physics simulator to run. And in any case, Physics.gravity is automatically added to your Rigidbodies as long as they have “Uses Gravity” turned on.