Function error!

Ok so I been trying to fix this function bug… Here it is:


And here’s the code error:

And here’s a link to the code editor:PlayCanvas | HTML5 Game Engine

I see a typo.

You write:

this.player.getPositon().z

instead of:

this.player.getPosition().z

1 Like