|
I want change the speed of an gameObject by touching the touchscreen. If a ball fall with this code, how can i do to change the speed of the ball for a period of time (1-2 sec)?
(comments are locked)
|
|
You need to modify the velocity of the rigidbody. If it happens once on touch, you can do it in Update. If it's continuous, do it in FixedUpdate.
(comments are locked)
|
