But when I play and try to make my tank hit the end of the landscape while my tank is at the start of the landscape…I realize that I can hit it.
the result I expected was that unreal send me a log that there is no solution because it can’t reach that far.
I set the Launch speed to 100m and it should be cannot reach 505m.
1- all I want is to set how far the tank’s projectile can be reached.
2-what OutLaunchVelocity’s value means in Output Log
You can create a variable for that and simply calculate the distance between the end and start location via FVector::Dist and comparing it with that variable.
That is used in the calculation to determine the velocity needed to hit the end location given the starting location. Recall that velocity is a vector quantity, it has size and direction.
A velocity is size and direction. We’re using that function to calculate that. The screenshot you gave above shows the trajectory the projectile should go given those parameters.