LookAt and MoveWithCollision bug/problem


#1

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.


#2

Actually it see no bug with look at: https://www.babylonjs-playground.com/index.html#65MUMZ#24


#3

Well wait…something is wrong…Checking


#4

I set rotation Y a Math.PI for warrior and then it working https://www.babylonjs-playground.com/index.html#65MUMZ#25


#5

Yes it is actually linked to a bug we found in the lookAt code (the one which forced you to use negate :slight_smile: )
So here is a fix with no negate: https://www.babylonjs-playground.com/index.html#65MUMZ#26