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

How to see if two objects are touching each other

$
0
0
So, I am trying to check if two objects are touching each other, and this is the part of the script that I cant get to work public static bool IsTouchingS (BoxCollider2D.StraightS, BoxCollider2D.PlayerCar); void GetLocator () { if (IsTouchingS == true)

Viewing all articles
Browse latest Browse all 132

Trending Articles



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