To make it move, the sphere needed a script. First, I made a folder named "scripts" where I would put the aforementioned script. Then, with the sphere selected, I clicked "add component" in the inspector window, "new script", and named it "PlayerController". I then clicked "create and add" to attach it to the sphere.
Now to edit the script. To open the editor, I clicked the gear icon on the script component, and then clicked "edit script". This opened a script editor, in which I pasted the script that allows the ball to move.
![](https://gyazo.com/e76f50269c219679a27fd47432d63d70.gif)
![](https://gyazo.com/bba9931a74700915398d4240d309e3a7.gif)
Unfortunately, it doesn't seem to be working. Tomorrow I plan to fix that though.
No comments:
Post a Comment