Première implémentation de l'affichage des hitbox

This commit is contained in:
Antoine
2021-06-17 21:48:09 +02:00
parent 0c24eea79f
commit ef1a8d5583
3 changed files with 77 additions and 12 deletions

View File

@ -40,4 +40,7 @@ public class Vector3f {
return new Vector3f(this.x / div, this.y / div, this.z / div);
}
public static Vector3f vectorBetweenTwoPoint(Vector3f origin, Vector3f target){
return new Vector3f(target.x - origin.x, target.y - origin.y, target.z - origin.z);
}
}

View File

@ -231,6 +231,10 @@ public class ObjectGl {
this.vertexArray.swapTextureBufferObject(texture);
}
public Vector3f getPos(){
return new Vector3f(xPos, yPos, zPos);
}
public float getXPos(){
return xPos;
}