The determination of whether or not two or more entities make contact with each other during gameplay.

learn more… | top users | synonyms (2)

3
votes
0answers
46 views

How do I make good guy attacks only hit bad guys and vice versa?

My game has many different type of good guys and many different type of bad guys. They will all be firing projectiles at each other but I don't want any accidental collateral damage to occur for ...
1
vote
1answer
28 views

Python + Pygame - Collision problems

I'm currently developing a game in Python + Pygame and i came up with a problem with the player and the platforms. The game is a 'runner' where the player it's fixed (The 'x' position isn't variable, ...
3
votes
1answer
107 views

Why would a Bounding Sphere and BoundingBox not intersect (when they should)?

I have a bounding sphere and a bounding box that should be intersecting, however, Intersects(...) is returning false. For example, the following returns false: new BoundingSphere(new Vector3(500, ...
3
votes
1answer
109 views

2D collision resolution: works on each axis individually, but not with both combined

My collision detection method is solid and detects box to box collision every time. Then comes the resolve part which I'm struggling with quite a bit. It works perfectly when I'm manipulating the ...
1
vote
0answers
54 views

Aiming with a crosshair with a lot of polygons/triangles

I'm working on a 3d kindof game where I'll eventually be able to modify the shapes present in the environment by pulling their faces with a crosshair. The thing is that I don't know how to achieve ...
2
votes
1answer
47 views

How to determine depth of a pixel perfect collision

I am trying to figure out how to determine the depth of a pixel perfect collision in XNA. I want to know the depth in order to be able to use it in my collision response. At the moment I have the ...
0
votes
0answers
27 views

Error in Pixel-Pixel-Collision [closed]

I have got this pixel-pixel-collision code, but unfortunately, it gives me an error: Index outside range of the array on if (((t1[i] & 0xff000000) > 0) && (t2[i] == 0xffC3C3C3)) inside ...
6
votes
3answers
515 views

Are collision detection always O(n^2)?

Are physics engine able to decrease that complexity, for example by grouping objects who are near each other and check for collisions inside this group instead of against all objects ? (for example, ...
-2
votes
1answer
100 views

Collision detection-too fast [closed]

I've looked through a few other answers and it seems like I'm doing a dynamic timestep update and I'm checking about 10 pixels before the rectangle to see if it would intersect. However, the updating ...
0
votes
1answer
61 views

How to handle zooming? (Collision detection and speed are off)

I'm working on a bird's eye view 2D game. I want to zoom in/out based on the entity's speed (similar to GTA 1/2), but I'm struggling with the zooming. To zoom, I simply scale all the entities by the ...
-1
votes
0answers
51 views

2D Game Engine Gravity [duplicate]

iam Building an JavaScript 2D Engine. And iam trying to accomplish that my Character that iam controlling is walking on several Grounds that are on different heights. I thought to do that by checking ...
0
votes
0answers
19 views

Objective C Collision Detection Problem

Ok, so I'm having a problem with setting up AABB Collision detection. I understand how to implement this and everything, and I know this method works, because, with few (functional) changes, I'm ...
0
votes
0answers
23 views

Collisions using Tide editor and libgdx [duplicate]

Im starting using libgdx and the tide editor for maps. I have a doubt about defining the collisions of the tiles I draw on the editor. I would like to create tiled maps for a top down perspective ...
0
votes
1answer
154 views

How to make a game tick method?

I've seen in some other simply 2D games that a tick method is used to sync game logic and graphics rendering. My main reason for using this is due to my collision detection malfunctioning, since the ...
3
votes
1answer
59 views

Tools to generate convex collision geometry

Does anyone know tools to generate convex collision geometry from given 3D model? For example, UDK's Static Mesh Editor can do this; Valve instead recommends to use smoothing in 3D editor. Desired ...
2
votes
3answers
143 views

Efficient Collision Detection With Numerous Objects at Once

I am developing a 2D game with very large levels in which two teams(around 200 objects per team) fight against each other in planes, tanks, turrets,...etc. With every entity shooting bullets at their ...
3
votes
1answer
77 views

How do you get the collision plane when using AABBs? [duplicate]

My collision detection initially seemed to work well enough, but my answer to this question shows that I have went with SAT testing now instead. My goal was to find the plane at which to slide the ...
0
votes
1answer
49 views

Simple Bounding Box Multiple Collision problem

I'm making my first game, and in it I use a moving ball to hit static blocks (kinda like breakout). Basically, I loop through all of the static blocks on the screen each frame, update the position ...
1
vote
0answers
54 views

scale rotating boundingbox

I want to use basic rectangular collision detection. I have a rotating sprite and a method that calculates the bounding box every time in the Update() method. I simply check for intersection between ...
0
votes
1answer
64 views

Realistic 3D Collision Detection Implementation [closed]

I understand how box collision, sphere collision, and other such collisions work. However, how would one implement realistic 3D collisions? That is, objects would interact with one another as they ...
0
votes
1answer
57 views

Detecting if “Wall” To The Left or Right Of Player Unity3D

I am working on a 3D Platformer in Unity3D and I need to prevent the player from going through walls. The movement for my player works like this: (A bird-eye-view representation)The areas the ...
0
votes
0answers
27 views

Explosion object not occurring where instructed [closed]

I'm still working through the tutorials in Game Maker, currently doing the side scroller plane shooter game. I've set a collision event for the enemy plane, so that when it collides with my plane it ...
3
votes
1answer
97 views

Player getting caught on floor

My player is getting caught on something on the floor. My whole environment is just blocks. I have looked through (and tried to change) just about everything I can think of in my player update method. ...
0
votes
1answer
86 views

Panda3d handling collisions on walls created in blender

Edit 2 : Updated code, so runnable zip isn't the same as the copied section bellow (though all that has changed is that part in run_me.py) Edit: Runnable zip with source files, sorry: ...
1
vote
0answers
31 views

Collision Detection Problems in Bullet Physics

I am trying to detect collisions between two objects, both btBoxShapes. One of them, I update by setting body->setWorldTransform(transform); I have implemented collision detection using the ...
0
votes
1answer
81 views

Creating 2D polygons in XNA

I am trying to implement collisions using the separating axis theorem. However All I have ever used in terms of polygons is the Rectangle class included in XNA already. How can I make multi-sided ...
2
votes
3answers
102 views

Determining which edge a collision occurred on in a platformer

First of all, this will be Open Source, and you will be mentioned for the help. We've been programming a Super Mario Remake for the iPhone with Cocos2d for school. It looks pretty great, and we ...
24
votes
6answers
1k views

Hexagon collision detection for fast moving objects?

A object has a position and a speed vector. Usually only the position is used to check if two objects collide, this is problematic for very fast moving objects as it can happen that the object moves ...
-1
votes
0answers
26 views

Checking collision between Rectangle and Shape

In my game the player uses a Rectangle for his bounding box, he can do this because I only need to rotate the player image and not the acctual rectangle but for a eletric beam that one of the bosses ...
0
votes
0answers
41 views

Android cocos2d getting collision detection to work only on some frames of animation

I have an animated bomb sprite in my game and use CGRect for collision detection: for (CCSprite bomb : _bombs) { CGRect bombRect = CGRect.make(bomb.getPosition().x - (scaleFactor * ...
3
votes
1answer
73 views

Is it possible to get the colliding sides using the separating axis theorem?

The title says it all, is it even possible to get the colliding sides? I'm checking for collisions between two OABBs, which works fine using SAT. Now I want to set the moving object's velocity to the ...
-2
votes
0answers
60 views

andengine Tower Defence game - Enemy<-Weapon interaction [migrated]

What is the most correct from the performance point of view - algorithm of interaction between Enemy and Weapon(bullet maybe more correct here) ? Should every sprite every single bullet check for ...
-1
votes
0answers
62 views

Collision between the player , stairs, ramps etc [closed]

i am making a game 2D in XNA 4.0. I have already made gravity , animations and the jump. Now i need the collision between my character and the objects (obstacles , stairs etc.) How can i do that? ...
1
vote
2answers
93 views

When to detect and respond to collisions?

I've usually implemented collision detection like this in the past: Move entity Check if it collides with anything Resolve the collision by moving it back That's also the approach employed by most ...
-1
votes
1answer
62 views

Algorithm behind targeting mechanism used by the player characters in Bionic Commando and Just Cause

In Bionic Commando (2009) and in Just Cause 2, the player's character is able to target, using a "hook based one arm mechanism" almost anything and is able to propel itself to it and perform several ...
7
votes
3answers
324 views

Collision detection problems using AABB's

I implemented a simple collision detection routine using AABB's between my main game sprite and various platforms (Please see code below). It works great, but I'm now introducing gravity to make my ...
3
votes
0answers
69 views

Detect collision in Blender

I am trying to write a Python function for Blender(2.66) game engine, that permits me to detect collision between two objects. I tried to read the documentation, but it's very confusing, and I don't ...
0
votes
1answer
126 views

How do real-time games like starcraft 2 and league of legends transmit and broadcast data during play? [closed]

How do real-time games like starcraft 2 and league of legends transmit and broadcast data during play? Is all real-time data transmitted to and from the server in udp packets? Do users directly ...
0
votes
2answers
125 views

C# XNA AABB vs AABB collision resolution, AABBs ghost through each other

I've been learning a bit of collision resolution through a tutorial here and I can't seem to get the AABBvsAABB resolution working, I have CirclevsCircle and AABBvsCircle resolution working with the ...
0
votes
1answer
90 views

My logic in collision detection in diagonal code correct? [closed]

I made this code to detect collision from the diagonal(top left). I'm trying to find the problem on what I'm doing wrong. Is it necessary to have a diagonal collision for the wall? Player class: ...
-1
votes
1answer
224 views

How was traditional 2D collision detection/resolution being done? [closed]

Just out of pure curiosity, I'm wondering how classic 2D games of the 80s/90s (The Legend of Zelda, Super Mario, Warcraft, ...) approached collision detection/resolution. For some reason I can't ...
3
votes
3answers
144 views

XNA Collision is quircky/wobbly, how to improve?

I am sorry if this was already answered but I couldn't find the answer. So I am doing a tile based platformer and when I was making collision I had quiet a struggle I looked here and googled for ...
1
vote
1answer
94 views

Detecting collision with a 3D array of boxes

I am at the stage of my development process where I want to implement collision. Now I can think of a simple way of doing it, if the camera's x, y or z are inside the position of a certain cube then ...
1
vote
1answer
101 views

Rectangle collision is not working correctly [closed]

I have difficulties with the rectangle collision. My character can go through the right side and through the bottom of each platform rectangle. I guess their is a mathematical problem with the ...
0
votes
0answers
35 views

Need help with collision with player and tiles XNA [closed]

I have a player collision with the rectangle size 16x32 and the tiles are in 16x16 sizes. I have a problem checking collision with player touching 2(or more) tiles ontop of each other. My code works ...
0
votes
0answers
52 views

Collision detection issue on 2D game engine with isometric game graphics [duplicate]

Let me first show you an example of issue so you'll see the problem. http://i.imgur.com/dTxJIN7.jpg The player object has red colored collision borders. Since I'm using an 2D engine, his head ...
1
vote
1answer
66 views

how to detect when a character is walking on an item in java

I just want to know if there is a way in java to detect when the character is on an item on the floor without without verifying if every items on the map contains the character or vice versa in every ...
0
votes
1answer
69 views

Differences between Overlap and Intersection testing?

I have heard of techniques such as overlap testing and intersection testing for collision detection and collision resolution. I looked up on the two techniques, but I don't see what differences they ...
-1
votes
1answer
73 views

Breakout style ball-paddle bounce, error at corner

I am trying to make a breakout game where you have a paddle and a ball bounces around breaking bricks. The problem is that if the ball touches the corner of player it goes inside of player. I change ...
1
vote
2answers
69 views

Mapping of positions on images in different frames

I am looking for a possibility to map different positions on a 2D Image which has different frames. Let's say I have an image, consisting of three frames, which shows a spaceship. The first frame ...

1 2 3 4 5 16