No atm I'm using something like this
" if (getTransformedCenter().x < obj.getTransformedCenter().x)
translate(speed, 0f, 0f);
etc."
Just wanted to know if there was something better.
I don't know pretty much 3D math, I know basic vectors equations etc...
find an opposite point of a plan, distance between a point and a line or a plan, projection of a point to a plan, apply matrice to transforme an object (rotate,
scale, translate) etc..
So very basic IMO.
^^ I try to do a function to lookAt another object but I think I didn't understand it correctly XD
public void lookAt(Object3D obj){
lookVector.set(getXAxis().x-obj.getXAxis().x,
getYAxis().y-obj.getYAxis().y,
getZAxis().z-obj.getZAxis().z);
setOrientation(lookVector.normalize(), obj.getYAxis().normalize());
}