Position Ball
Hello everyone, First of all, my problem is; Now I have a ball and this ball goes back to the starting point again after passing certain coordinates of thought though. I want to stay on the same coordinate without moving the user. The ball will be reset when the ball comes out from the camera field.
It is like this; https://www.youtube.com/watch?v=7-_7G7OZdH0
but I want it to be like that; https://www.youtube.com/watch?v=jttMX8WxLh8&feature=youtu.be
I want to do exactly the same
Answer by Jehy · Jul 14, 2018 at 04:48 AM
Currently your ball is permanently falling and increasing its velocity. When you respawn it at the starting point, you need to remove all velocity as well.
To achieve the behavior of the second video you will need to:
Zero the velocity after respawn
Eliminate movement until user input is complete
There are many ways to achieve this in Unity. Off the top of my head...
Use a state based approach in script.
Alternatively Use RigidBody constraints.
the user can see how violent the ball is going to stretch the ball, then pull the ball with the arrow and the intensity of the stretching is how I can do it