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

Smooth 2D collision

$
0
0
Whenever I use transform.Translate(), the player slightly clips through a square while they fall, but rigidbody.AddForce() does not present the same issue. When I use AddForce, however, there is no regulation of the player's speed. Is there any way I can have smooth collisions and not have acceleration? (The player has a BoxCollider2D and Rigidbody2D, and the square has a BoxCollider2D.)

Viewing all articles
Browse latest Browse all 1264

Trending Articles



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