Hi any one know how can i make a similar method to look at but to make it rotate a body only horizontally ?
Lets say i have a soldier ,and i need to make it look at a soldier at his left and a bit lower .
But i need it only to yaw .
What i tried (probably wrong at all ) is :
this.getNodeBody().lookAt(new Vector3f(getWayPoint().getX(),getNodeBody().getLocalTranslation().getY() ,getWayPoint().getY()). normalize(), Vector3f.ZERO);
but the problem is now whole soldier starts to rotate upside down and its not what i looking for