Première implémentation de l'affichage des hitbox
This commit is contained in:
@ -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);
|
||||
}
|
||||
}
|
||||
|
@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user