Advertisement
Guest User

Untitled

a guest
Apr 24th, 2017
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.17 KB | None | 0 0
  1. Vector oldPosition; // (x, y, z)
  2. Vector directionOfMove; // (x, y, z)
  3. double deltaT; // currentTime - oldPositionTime
  4.  
  5. newPosition = (directionOfMove * deltaT) + oldPosition;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement