Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options not deleted user 114779

Collision detection is the determination of whether or not two or more entities make contact with each other during gameplay.

0 votes

Why does this implementation of aabb-sphere collision ghost collide and how can I fix it

Without knowing more of what error conditions your running into I only have one guess at what is going wrong. It's your "closestPointToAabb()". It looks like your using ||(or) to find your max and min …
DrewAtWork's user avatar
3 votes

Rectangle collision not working!

Preface The answer from @DMGregory has some wonderful math that will most likely solve most if not all of your problems. While I would recommend working towards an implementation like theirs, I though …
DrewAtWork's user avatar
5 votes
Accepted

How do I implement a AABB-Sphere collision

I'm not sure how your storing your collision data or what language your working with but it looks like your trying to compare the distance from the center of your AABB to the center of your sphere. Is …
DrewAtWork's user avatar