I have two Points in 2D
//Point1 has velocity
vX = 100;
vY = 50;
posX = 300;
posY = 100;
//Point2 has velocity
vX = -20;
vY = 80;
posX = -800;
posY = 1000;
Additional I have a point which is placed directly in the middle of these two points, how can i calculate speed of this middle point ?
By determining what it’s vX and vY are.
Its x and y are
Simplify
so it’s vX is 40 and its vy is 65. My friend Pythagoras tells me the speed here is
sqrt((40 * 40) + (65 * 65))or roughly 76 units per tick.