Quantcast
Channel: Questions in topic: "ignorecollision"
Viewing all articles
Browse latest Browse all 148

Ignore Collision for 2d Collider

$
0
0
I want to ignore collision between two objects for my 2D game. In 3D game, I used following statement to ignore collision public Transform target; //Middle parent joint void Start() { // to prevent collision with the middle sphere collider Physics.IgnoreCollision(target.collider, collider); } But now I have BoxCollider2D and Physics2D class. So what is the way to ignore collision?

Viewing all articles
Browse latest Browse all 148

Trending Articles



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