Hi I have code like this to move the ball,
if (myOwner == transform)
{
soccerBall.rigidbody.velocity = swipeDirection.normalized * kickSpeed;
soccerBall.myOwner = null;
}
If this is owner of the ball, when swiped the ball moves. After that, the owner becomes null.
swipeDirection is determined by input Swipe gesture. When swipe, the ball should move to the direction. However, sometimes, the ball gets stuck. I debugged the velocity and it is not zero. There is velocity but the ball is not moving. I also debugged the owner, after swipe, there is still owner when it is supposed to be null.
Any idea how this happened? Ball is not moving when velocity is not zero.