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 :
Advice: you will have a muuuuch easier time if you go ahead and split your lines up rather than trying to write a whole program on one line. For example, you can insert printlns, etc. to see what’s really going on.
Anyway, your real problem is that you’ve decided to randomly pass Vector3f.ZERO as the “up direction”… which can’t possibly right and I’m surprised you get a value at all, really.
Well i suppose that main problem is still im not mutch with directions and stuff. I really hoped lookAt method was like look at and then give the point , while it will do every thing on alone … but
Men i will tell you the true .I gave them a read ,did not achived mutch ,and said to my self , try do all the other code to make the game be a game and work , and just hope to get directions work some how (and rotations) . I have tons of stuff and content up here . My game is a hybrid of RTS RPG RTT FPS ECONOMY . Its trully huge , but with a Minecraft graphycs and bent directions,rotations … aah
I have lords ,knights ,merchants,phesants, artisans , mercenaries .several government systems and holding types ,really tons of stuff and it all has it brains balance and more .
But when i got tons of classes and content for game , realized huge problem ,graphycs makes me cry , and direction/rotation is bent