C
C#2y ago
Whiteboy

Unity 2 golf, ball doesn't stop rolling and... [Answered]

So i call this func when ball goes out of camera range. the position gets reseted but the ball is still rolling, but slower
4 Replies
hoggy077
hoggy0772y ago
Not at a computer to test this rn, but try setting the velocity to zero first. If that doesn't fix it then instead of setting ball.transform.position try ball.Rigidbody2D.position
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Whiteboy
Whiteboy2y ago
no i've just added one more line
126. ball.Rigidbody2D.isKinematic = false;
126. ball.Rigidbody2D.isKinematic = false;
fixes problem but the ball is still rotatin itself
Accord
Accord2y ago
✅ This post has been marked as answered!
Want results from more Discord servers?
Add your server
More Posts