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 14437

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

2 votes
Accepted

Java - 2d Array Tile Map Collision

You have a tile grid, and you have tile dimensions. That's a good start. You're missing a key piece, though. You're trying to do collision between the player and the tiles (based purely on player loc …
larsbutler's user avatar
10 votes
Accepted

How to determine collision direction between two rectangles?

I seem to be stuck in determining from what direction the impact occurs. If I am moving strictly vertically or horizontally I manage great detection. But when moving in both directions at the same …
larsbutler's user avatar
4 votes

Should my game handle collisions in the Player object?

tl;dr I recommend handling the collisions "in the main world" I can tell you what I'm doing in my platformer (still early in development). It seems to work pretty well. I have an Updater class which …
larsbutler's user avatar
2 votes
Accepted

Collision Detection Problems

I saw something like this before in the platformer that I'm developing. One possibility is that there's a rounding or precision error. If you're using the Rectangle class (in Microsoft.Xna.Framework) …
larsbutler's user avatar