The determination of whether or not two or more entities make contact with each other during gameplay.
0
votes
0answers
29 views
2D Game Development dynamics in c++ [on hold]
I am new to developing computer graphic applications in c++ using OpenGl. I want to develop games but I really am facing problems when it comes to understanding concepts like trajectory, collisions, ...
0
votes
0answers
31 views
3D Box Collision Data Import
I'm trying to implement a collision system using oriented bounding boxes, using a center for the box, it's extents as a 3D Vector and a rotation matrix, which is all stuff I picked up online and seem ...
2
votes
0answers
22 views
JBox2D Polygon Collisions Acting Strange
I have been playing around with JBox2D and Slick2D and made a little demo with a ground object, a box object, and two different polygons. The problem I am facing is that the collision-detection for ...
-2
votes
1answer
131 views
Detailed Modern Opengl Tutorial? [duplicate]
I am asking for a specific modern opengl tutorial.
I need a tutorial that does not skip to explain any lines of code. It should also include different independent objects moving/rotating (most ...
2
votes
3answers
302 views
2
votes
2answers
120 views
Would it be more efficient to handle 2D collision detection with polygons, rather than both squares/polygons?
I'm working on a 2D game engine and I'm trying to get collision detection as efficient as possible. One thing I've noted is that I have a Rectangle Collision collider, a Shape (polygon) collider and a ...
-1
votes
0answers
48 views
Java : 2D Collision Detection
I'm been working on 2D rectangle collision for weeks and still cannot get this problem fixed.
The problem I'm having is how to adjust a player to obstacles when it collides.
I'm referencing this link. ...
0
votes
1answer
33 views
LWJGL Java 2D collision when lagging
I'm using a tile based collision, but when the game is lagging (the lag isn't the problem) the collision fails and the player falls through tiles.
This is the movement/collision detection code of my ...
1
vote
1answer
63 views
Adding Leniency to Jumping Mechanic
I have written some jumping code for my player in a platformer game. At the moment it has some basic logic which says that the player can jump if he is on the ground. The pseudocode looks something ...
3
votes
1answer
152 views
Problem with SAT collision detection overlap checking code
I'm trying to implement a script that detects whether two rotated rectangles collide for my game, using SAT (Separating Axis Theorem). I used the method explained in the following article for my ...
0
votes
0answers
45 views
Top down pygame collision detection
I'm writing a top down game and I'm trying to figure out how to make certain types of terrains impassable.
I have a dictionary of sprites:
terrains = [{"sprite": black}, {"sprite": dirt}, {"sprite": ...
7
votes
3answers
432 views
Ball vs 45-degree slope collision detection
I have a simple game in which the player moves a ball around. The ball bounces off of walls. Right now I have square walls(■) implemented: I use simple bounding-box collisions to check if the player ...
0
votes
0answers
42 views
Collision detection with multiple polygons simultaneously
I've written a collision system which detects/resolves collisions between a rectangular player and a convex polygon world using the Separating Axis Theorem. This scheme works fine when the player is ...
-1
votes
0answers
40 views
some problems with collision detection
I've been working on some collision detection and i have managed to get it to know when it touches top bottom left or right, but now i need it so it prevents the rectangle to enter the rectangle and i ...
2
votes
1answer
77 views
Have the character automatically slide around obstacle corners [duplicate]
Like this:
The player is only holding right, however the character still moves up a bit to go around an obstacle.
My current collision system has access to:
The entity's previous position
The ...
0
votes
1answer
81 views
Performing intersection testing in world's or object's space?
Am adding basic ray casting and collision detection for my game, also adding bounding volumes/collision mesh.
Given that the ray is cast in world space and each mesh's node can track world ...
9
votes
2answers
203 views
Falling Blocks and complex shapes
I currently have a simple Tetris-like game and have come across a problem I cannot solve.
Unlike Tetris where there is a single falling shape, I have multiple, potentially interlocking shapes that ...
1
vote
0answers
98 views
Java platformer using Tiled maps
So here is the deal. I've been working on and off on my little platformer and im at the point for collision detection with the map. I have a method that generates a polygon on every tile and checks if ...
-1
votes
0answers
62 views
2d platformer Tiles collision
I have a problem with detecting collision between my player and the tiles that makes the map. I have been looking all day for a solution but I can't seem to find one that suits my needs.
Here is how ...
0
votes
2answers
99 views
Java collision detection with rectangles
I'm trying to get the collision between two squares. I've made a Rectangle object that overlays each one and updates the position every tick.
Then I made a collision method that checks whether they ...
0
votes
1answer
43 views
Box2D Static-Dynamic body joint eliminates collisions
I have a static body A, and a dynamic body B, and a dynamic body C. A is filtered to not collide with anything, B and C collide with each other.
I wish to create a joint between B and A. When I ...
0
votes
0answers
46 views
2D movement constraint to navigation mesh
You can jump to the question in bold if you wish. I'm working on an isometric view 3d game and currently trying to constraint the players movement to a navigation mesh. My current algorithm works as ...
0
votes
1answer
115 views
How do I implement collision detection with a sprite walking up a rocky-terrain hill?
I'm working in SDL and have bounding rectangles for collisions set up for each frame of the sprite's animation. However, I recently stumbled upon the issue of putting together collisions for ...
4
votes
1answer
137 views
Allowing a player to walk up and down slopes without resistance
I am trying to implement a platformer where both the player and the level are made up of arbitary polygons. One requirement is that the player can stand still on slopes, and walk up and down them ...
2
votes
1answer
272 views
Small, High-Speed Object Collisions: Avoiding Tunneling
EDIT/UPDATE: My biggest question right now is whether step 3's "t=..." equation is a good idea or there a better way to do it. Most other issues have been partially or fully addressed, but no ...
1
vote
1answer
81 views
How to simulate cylinder shape in collision detection?
AFAIK, many physics engines like Physx and Havok don't incorporate cylinder as basic shape because it is expensive than sphere, box and capsule. But bullet engine does incorporate cylinder as a basic ...
0
votes
0answers
52 views
Collision detection - relative distance
Assume an object move toward a polygon board in 3D field . In order to detect whether the object collide in the board , according to the lecture notes of my Computer Graphics Course lecturer - it ...
1
vote
1answer
71 views
Robust “soft” platform collision using SAT
We'll start with the questions, then a pile of background:
How do you rigorously and thoroughly define "soft collision" of the Mario-esque type (if I start above, or in a jump my feet apex above a ...
0
votes
0answers
41 views
Not detecting collision with keybindings?
So in my little side scroller java game I'm attempting to make collision for my character against walls. I am using keybindings instead of key listeners because of the focusing issues it often caused. ...
0
votes
1answer
58 views
cocos2d collision detection between two ccsprites i am using boundingBox but this method is not working
I am making a cocos2d side scroller and I am currently putting collision detection in. I have an enemy that shoots at the player. I want to have the bullets disappear when they hit the player. The ...