Correction du bug de getBlock dans la class World
This commit is contained in:
parent
521e58acb9
commit
98b7946cc2
10 changed files with 405 additions and 121 deletions
|
@ -189,6 +189,10 @@ public class Vector3f {
|
|||
return this;
|
||||
}
|
||||
|
||||
public String toString(){
|
||||
return x + " " + y + " " + z;
|
||||
}
|
||||
|
||||
public static float distance(Vector3f a,Vector3f b){
|
||||
return (float)Math.sqrt((Math.pow(b.getX()-a.getX(), 2))+(Math.pow(b.getY()-a.getY(), 2))+(Math.pow(b.getZ()-a.getZ(), 2)));
|
||||
}
|
||||
|
|
Reference in a new issue