Today i download latest version of BJS and LookAt function do not work as should.
Check on stable and latest version: https://www.babylonjs-playground.com/indexStable.html#65MUMZ#21
For latest version i try like that https://www.babylonjs-playground.com/index.html#65MUMZ#22, but without success.
Well wait…something is wrong…Checking
I set rotation Y a Math.PI for warrior and then it working https://www.babylonjs-playground.com/index.html#65MUMZ#25
Yes it is actually linked to a bug we found in the lookAt code (the one which forced you to use negate
)
So here is a fix with no negate: https://www.babylonjs-playground.com/index.html#65MUMZ#26
2 Likes