Calculating (efficient) route from XYZ to XYZ

Discussion in 'Plugin Development' started by Pezmc, May 22, 2011.

Thread Status:
Not open for further replies.
  1. Offline

    Pezmc

    Within the constraints of the Bukkit api how do I calculate the most efficient route (through the 3d terrain) from A->B, I'll also need to take into account only being able to jump up one block and having a minimum space of two high to be able to fit.

    First I'll need to calculate the xyz of the closest valid floor of A&B, then presumably do some sort of recursive call walking from A to B, storing the distance that it would require and doing checks such as surface (e.g. not lava) and height.

    Thanks for your time,
     
  2. Offline

    Acrobot

Thread Status:
Not open for further replies.

Share This Page