Quantcast
Channel: Questions in topic: "addforce"
Viewing all articles
Browse latest Browse all 1264

Stop Character Drifting after using AddForce

$
0
0
Hi, i am creating my first own 2d Unity Project. i Made my character move with rb.Addforce, but after the character moves, and you let go of the button it takes a while before the character stands still again. it kinda drifts across and slowly loses acceleration. is there a way to minimize the time it takes for my character to stop moving, or tottally delete the drifting thing, or somehow set the acceleration to 0?. i tried this cuz i only want to affect the x acceleration but doesnt work: rb.velocity.x = 0f; Im totally new to unity and sorry for my not too great English.

Viewing all articles
Browse latest Browse all 1264

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>