i am currently working on tennis game in 3D in unity,when user hits d ball say at x=0,y=5,z=0 with velocity at certain position say z=10 what is ball x and y coordinate after reaching z=10.
thanks for comment
i am currently working on tennis game in 3D in unity,when user hits d ball say at x=0,y=5,z=0 with velocity at certain position say z=10 what is ball x and y coordinate after reaching z=10.
thanks for comment
A ball starting at P=(0, 5, 0) and travelling with a velocity of V=(0, 0, 10) will take one second to reach the z=10 plane. At the time it will have a position of (0, 5, 10).
p = p1 + vt, where p1 is the initial position, v the velocity, and t time, p is the position at time t.
P = (0, 5 0) + (0, 0, 10) * 1
P = (0, 5, 10)
This is simple maths and not related to Unity.