roll a ball to the left
Hi Guys
I'm constructing a game that has 3 roads
The player is a ball.
When the game starts, the ball rolls forwards. I use GetComponent.<Rigidbody>().velocity = vector3.forward * speed
to keep it moving forward.
What i want is the ball will roll to the left or right in maybe 1.5 seconds until it reaches a certain x-pos when GetKeyDown
I want it keep moving forwards and strafe to the left or right in 1.5 seconds.
I have tried transform.Translate
but the ball move to the left instantly which is not my expected result.
I'm hoping someone may tell me the method i should use. Thank you very much!
Your answer
Follow this Question
Related Questions
Build failed, illegal characers in path. 1 Answer
How would I generate a new object based on player location? 0 Answers
Ball doesn't roll in roll-a-ball for mac 0 Answers
Collecting cubes in Rollaball works in edit/play mode, but not when built to Windows 1 Answer
Roll-a-ball diffrent behaviour when in 'play' mode and when build&run 'mode' 0 Answers