Quantcast
Channel: Questions in topic: "physics 2d"
Viewing all articles
Browse latest Browse all 132

Rigidbody2D.IsSleeping issue

$
0
0
When checking the velocity of an object with ...velocity.x == 0 && velocity.y == 0 everything works fine but if i use Rigidbody2D.IsSleeping there seems to be a small delay? if (rb.IsSleeping) { // Calls after the rigidbody has stopped moving +0.2 - 0.3s } if (rb.velocity.x == 0 && rb.velocity.y == 0) { // Everything works fine but for reasons i can't use this }

Viewing all articles
Browse latest Browse all 132

Trending Articles



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