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.
↧