- Home /
Roll-a-ball not rolling, everthing correct
I've been working on the Roll-a-Ball tutorial today during my free time and I encountered some problems. The first was a bunch of errors which was solved when I found that the rigidbody.AddForce had to be changed for the newest version. But now with everything good and dandy by ball wont roll. Not a blip. This is how I have it all set up. I've tried closing everything and restarting it, tried adding other stuff but all nada. Any ideas?
Not moving at all or moving just a bit? Have you tried to multiply movement by some value cause your Input.GetAxis returns value from -1 to 1 and that is not enough to move ball like it should be moved. I did that tutorial few days ago and it worked. $$anonymous$$ake sure not to jump over some step, especially with RigidBody setup
I think you want FixedUpdate
ins$$anonymous$$d of FixUpdate
. At least that's what immediately stands out to me.
FixUpdate
isn't actually defined in $$anonymous$$onoBehavior
, so any code in that method won't be executed.
Answer by prettydays · Apr 07, 2015 at 12:11 PM
I had the speed value at 500, but I changed FixUpdate() to FixedUpdate() and everything is working now. Thank you
Answer by ashleyjlive · Apr 07, 2015 at 01:36 AM
I believe you should change FixUpdate () to FixedUpdate ()
Your answer
![](https://koobas.hobune.stream/wayback/20220613192401im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
labyrinth like game 1 Answer
Error on Roll a Ball script Assets/scripts/playercontroller.cs(26,1): error CS8025: Parsing error 1 Answer
Potholes to roll the ball 0 Answers
why is my sphere reddish 1 Answer
Virtual joystick for roll a ball game 0 Answers