Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

lookAt fails if looking to its own position #709

Open
rdoi opened this issue Oct 13, 2014 · 1 comment
Open

lookAt fails if looking to its own position #709

rdoi opened this issue Oct 13, 2014 · 1 comment

Comments

@rdoi
Copy link

rdoi commented Oct 13, 2014

Maybe related also to: #684

To replicate:

  var m:WireframeCube= new WireframeCube();
  scene.addChild(m);
  m.lookAt(m.scenePosition.clone());
  trace(m.scenePosition); // <- returns ( Vector3D(NaN, NaN, NaN) );

Sure that looking to its own position makes no sense, but the engine shouldn't invalidate its transform matrix because of that. I think it should simply ignore the instruction when it happens.

@flashbladez
Copy link

Your message has been recieved and redirected If your message is important please contact me via:- [email protected]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants