I am trying to predict where a player will be next based on where they are now in Java. I have their XYZ position, their XYZ motion, but I don't have their speed. How can I predict where they will be in a couple of seconds based on their current position and motion?
I am doing this in Minecraft Forge/MCP but since this is probably more of a math/Java thing, I don't need an answer specific to Forge/MCP.
EDIT: The motion values for the player are the following:
While walking on positive Z axis (for some wierd reason)
Motion X: 2.0520011355833548E-4 Motion Y: -0.0784000015258789 // Gravity Motion Z: 0.11785815704137818 // Basically 0
While running on positive Z axis
Motion X: 6.335480841945934E-4 Motion Y: -0.0784000015258789 // Gravity Motion Z: 0.15320559375099232 // Basically 0