Question by
DjMaster11 · Mar 11, 2017 at 01:01 PM ·
2djavascriptcollider2dbounds
How can i check that is an object is withhin a collider? JS
I want to check that an object is in an area. So if you click it when it's in the specified are it gives you a point but if you click on it without it's being in the area you don't got a point. I use javascript in a 2d project. Pls help me out.
Comment
Answer by hexagonius · Mar 11, 2017 at 03:55 PM
the Physics2D class has a few versions of overlap(something).