C
C#3y 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
hoggy0773y 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 User3y ago
Message Not Public
Sign In & Join Server To View
Whiteboy
WhiteboyOP3y 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
Accord3y ago
✅ This post has been marked as answered!
Want results from more Discord servers?
Add your server