Quantcast
Channel: Answers for "How to detect wether an object is headed towards the top or bottom of an object?"
Browsing latest articles
Browse All 4 View Live

Answer by Gambit-MSplitz

Dot products will be super useful here! Here's an example of how to use them in this situation, though I highly recommend reading up on them, they are infinitely useful in game programming. // Assuming...

View Article



Answer by nadhimali

That object has a collider and there is a simple trick and it might work ColliderCenterY = GetComponent.().bounds.center.y; //now you can find where the projectile in respective to object in Y axis if...

View Article
Browsing latest articles
Browse All 4 View Live




Latest Images