Need help with ball rotation - JavaScript

Hi guys,

I’m completely new to programming in general. I have been following a tutorial and using code from some videos, as well as tweaking it on my own.

I use this code to make a ball rotate right and left using the A and D keys;

The issue is, no matter how much I increase the rotation speed, is doesn’t actually make the ball go faster, only rotate in a circle faster. I think I need to increase the velocity but I don’t know how. Please help!

Rotation speed has nothing to do with velocity. You need to alter the movement speed.

Great…How?

If your goal is just to get a ball rotating, use this.

Multiply Time.deltatime by your speed variable.

What do you mean when you say you want it to go faster?

Like I want the ball to move right to left faster

Adjusting the multiplier should do it.

Here is a similar question with the code you need.