Hi I’m new to codeing and I don’t really know what I’m doing but I’m really interested in learning how to do if you have any tips or tricks that would be really helpful thx
Well I am pretty new too but I can give you a script that will make a object move.
var W = this.app.keyboard.isPressed(pc.KEY_W);
if (W) {
this.entity.translateLocal(0,0,-0.1);
}
If you put that in you should be able to move. Then if you want to move backward or to the sides, just change the W’s to whatever key you want to use . Then to rotate you put this.
var LEFT = this.app.keyboard.isPressed(pc.KEY_LEFT);
if (LEFT) {
this.entity.rotate(0,4,0);
}
And then change the key and the coordinates to rotate to the right.
Thank you so much this will really help
No problem!
I recommend working through this tutorial first, @ottaku722:
https://developer.playcanvas.com/en/user-manual/your-first-app/
Thanks guys sorry it took so long to get back to you Ibe been feeling really sick lately