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

Rigidbody2D mouse follow

$
0
0
I'm trying to get a Rigidbody2D to follow my mouse and have physics responses. In 3D I'd use Rigidbody.MovePosition, but that doesn't exist for 2D. When I simply move the transform, I get OnTriggerEnter responses, but never get an OnTriggerExit. I believe this is because the collider is not actually moving, but instead being destroyed and rebuilt every time the transform.position is changed.

Viewing all articles
Browse latest Browse all 132

Trending Articles



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