Quantcast
Channel: Answers for "[Roll a Ball] How do I control the ball with the gyroscope/accelerometer?"
Viewing all articles
Browse latest Browse all 4

Answer by 1hella

$
0
0
moveHorizontal = Input.acceleration.x; moveVertical = Input.acceleration.y; Vector3 movement = new Vector3 (moveHorizontal, 0.0f, moveVertical); rb.AddForce (movement * speed * 2); That worked for me.

Viewing all articles
Browse latest Browse all 4

Latest Images

Trending Articles





Latest Images