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:https://playcanvas.com/editor/code/624824?tabs=24799274&line=57&col=22&error=true

I see a typo.

You write:

this.player.getPositon().z

instead of:

this.player.getPosition().z

1 Like