Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Vector v = pathpoint.getLocation().toVector().subtract(vehicle.getLocation().toVector());
- v.multiply(1/(pathpoint.getLocation().distance(vehicle.getLocation())));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement