Hi,
I am trying to get the world position of the mouse. This was working, but now I only get NaN. What am I doing wrong? or did something changed?
Grid.prototype.mouseMoved = function(data){
var camera = this.app.scene._activeCamera;
var areaIndex = EditorManager.singleton.areaIndex;
var worldPos = camera.screenToWorld(data.x, data.y, camera.nearClip);
console.log(worldPos.toString(), data.x, data.y);
output is ‘[NaN, NaN, NaN] 417 8’
So Mouse x and Y are working.
Thanks!