Most voted "collision-detection" questions
14 questions
Sort by count of
-
11
votes1
answer673
viewsDetect collision between corners of objects
I’m writing a game based on Breakout, but I can’t think of a way to detect the collision between the corner of the ball area and the paddle, so I can reverse the horizontal direction of the ball. In…
-
9
votes2
answers990
viewsHow to verify collision between particles?
I need to know how to make each circle collide with each other along with the part of how I’m going to go in such a direction after this collision. This is the class of the main program window:…
-
9
votes1
answer261
viewsOptimize the collision between particles
I need to optimize as much as possible the algorithm that makes the particles collide, is there anything that can be done to do that? And I also want to add a background image, it’s possible?…
-
3
votes4
answers3125
viewsDealing with collisions in Dictionary C#
I need to map a string array to a dictionary so that I can later test whether an informed string is valid by checking if it is part of the dict, additionally would like to recover some other…
-
3
votes2
answers3349
viewsHow to do Collision in game with Java 2D platform?
I’ve been trying for several days to make a collision method that returns me or tells me the sides of a rectangle that are being collided. I’ve already used the method Intersects but it only returns…
-
2
votes1
answer246
viewsImprove code to avoid slow particle collision
I need to divide space into cells. Each cell should be approximately the size of the particle radius so that a particle does not occupy more than 4 cells as in the illustration below: The r-ray…
-
1
votes1
answer286
viewsHow to detect collisions using Slick2d?
I would like to know how I can detect collisions between objects using Slick,have some useful example? I’m making a simple little game where 2 squares are moving on the screen and if the character…
-
1
votes2
answers494
viewsHow to calculate the Xmin,Xmax,Ymin,Ymax of an object?
I’m playing a simple game like "space Invaders" in Opengl and in the part of the collisions need to calculate the minimum and maximum X and Y values, but I still can’t figure out how to do this.…
-
1
votes1
answer66
viewsHow to decrease processing on the moon? or Muti hash?
I have a table with several 5 position Tables where the first two are the position in a Cartesian plane. --Table with water collors colors =…
-
0
votes1
answer675
viewsHow to Collide 2D from C++ Tiles
Hello. I wonder how I can get collision of Tiles in C++. I am using an engine made by my friend, even so, I would like to know how to do. I’m using SDL 2! Grateful from now on Thiago…
-
0
votes1
answer244
viewsHow do I bump my player with a Tile on Unity 5?
I need to put bumps on some static tiles so the player can’t get past them. I tried to put a Box Collider 2D on player and Tile but it’s not working. How I solve this in the best way possible, in a…
-
0
votes0
answers15
viewsIs it possible to run a Body Cascade inside a non-slagging sub-area?
after studying a little and the help of well-oriented people here understood that Opencv manipulates images (an array) that will always be rectangular. Therefore, an ROI will never be polygonal. I…
-
0
votes0
answers134
viewsHow to detect the collision with the SDL2 floor
I’m developing a game for learning using C++ with SDL2, and I want to check when my character touches the ground. For this I created the class "Collider", with the following function (adapted): bool…
-
0
votes1
answer75
viewsHow to detect that two bodies (in my case, balls) have touched while they are moving?
I’m doing a program in python that simulates a small game of billiards (pool) and I’m having trouble finding a simple way to identify when the two balls touch, so I can change their direction. My…