Hello, this discussion is because I need some help.I have been using the code from this discussion, I have the code-
if(this.app.keyboard.wasPressed(pc.KEY_SPACE)){
this.entity.rigidbody.applyImpulse(0, 5, 0)
But when I add
if (this.entity.getLocalPosition(14).y <
Then I get a red bracket and the code doesn’t work, Does anyone know how to fix this?