Quantcast
Channel: Questions in topic: "contact"
Viewing all articles
Browse latest Browse all 75

How to specify two game objects are in contact in 2D?

$
0
0
I am trying to add physics to a bike object with hindge joints connected to wheels now i need to add force on back wheel when i press up button this should happen only when bike is in contact with floor. How to acheive this. OnCollisionEnter is not being called. and i added tags for floors. Is there a way to check if the bike is in contact with floor ?

Viewing all articles
Browse latest Browse all 75

Trending Articles



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