What and how do you move it?
Hi @shosuke20go and welcome! In the first project you get when you start using PlayCanvas, this way is used to move the ball. You can check the movement script in the project to see how this is done.
https://playcanvas.com/project/822478/overview/my-first-project
https://developer.playcanvas.com/en/tutorials/keyboard-input/
There are two ways of detecting keyboard input. The first is done in the update method of your scripts. Use
isPressed()
andwasPressed()
and check whether a key is currently pressed or has just been pressed. The second uses events to respond to a key press or release as it happens.
2 Likes