mirror of
https://github.com/photonstorm/phaser
synced 2025-02-16 14:08:28 +00:00
Fixed call to lengthSq
This commit is contained in:
parent
3ff119ae9e
commit
5f4dfa4fb8
1 changed files with 1 additions and 1 deletions
|
@ -1348,7 +1348,7 @@ var Matrix4 = new Class({
|
|||
|
||||
_z.subVectors(eye, target);
|
||||
|
||||
if (_z.getLengthSquared() === 0)
|
||||
if (_z.lengthSq() === 0)
|
||||
{
|
||||
// eye and target are in the same position
|
||||
_z.z = 1;
|
||||
|
|
Loading…
Add table
Reference in a new issue