Questions tagged [collision]

The intersection of one or more objects or concepts, such as communications packets or function names. For questions about collision detection (in computer graphics) use the [collision-detection] tag instead.

May be used to describe graphical elements (as in a game setting), networking (when multiple packets arrive at the same location simultaneously), RF communication when transmissions overlap and interrupt one another or in programming when disparate functions have similar naming conventions (see also namespace).

For questions about collision detection (in computer graphics) use instead.


Related tags

3094 questions
0
votes
1 answer

How do I edit this collider to fit my spike sprite size exactly?

Hello, I am using tilemap collider and composite collider on my spike tilemap object. Used by composite is checked on my tilemap collider. These colliders are all 2D. How do I edit this collider to fit exactly to the spike sprite image? I tried…
Maziko66
  • 3
  • 1
0
votes
1 answer

Input affects both sprite infront and behind it in Godot

I have two scenes in Godot, one for the game scene and one with a sprite, the sprite is going to spawn into the game scene at random, the player will have to click the sprite when it spawns into the game scene once the sprite is clicked it…
0
votes
1 answer

Snake Game - Collision Error

So I am making a snake game, but if I move from one direction to the other really fast then it says I made a collision with the body and ends the game (for example, if I am going left and I hit down and then left again really fast or down and right…
Aerophite
  • 195
  • 2
  • 14
0
votes
1 answer

Javascript - 2d Platformer - Bounding Box Collision Detection

I am trying to make a sonic 2d platformer. However I am struggling with making my sonic entity collide with my platform. Right now my sonic is falling through the platform as if my collisionCheck() method does not work at all. Here is my…
0
votes
1 answer

How to make 3D object climb up wall in Unity 3D

I am trying to make a 3D capsule climb up along an object I tagged as "Wall". However, when I make contact with the wall, It can't seem to rise along the wall. How would this be fixed? using System.Collections; using…
0
votes
0 answers

Need help fixing movement updater when collision is detected for my block pygame

The code currently works as intended except for the enemy updater function, it is only okayish. I dont have a problem detecting collision my problem is updating the enemy's positions based on it, some still merge together before they separate again.…
0
votes
2 answers

collision between two picturesbox in Visual basic 2019

I'm trying to create a simple game where my character has deal with a maze, in visual basic 2019 I cannot stop my character(picturebox) from passing through a wall(picturebox). I have to say that I am far away from an expert and it's just an…
0
votes
0 answers

How can I fix my Pygame collision system?

I'm making a game with pygame and the collision system is not working properly. There is no problem with the collision system for the player, but the same is not the case with the monsters. When monsters hit the wall, instead of stopping, they pass…
Furkan125
  • 11
  • 4
0
votes
0 answers

Collision Detection algorithm for Selection advice

I don't know if this is proper platform for the question. I'm trying to develop a collision detection algorithm. In my system the primary host (a vehicle) is either stationary or is in motion (in xy, yz and xz plane). Incoming projectile can either…
Dark Sorrow
  • 1,681
  • 14
  • 37
0
votes
1 answer

Collision2D not works properly

Currently I am working on 2D Platformer game and there is a bug that gives me headache. Basicly, if our player, collide to an enemy object he dies. on the other hand if he collect a coin, that means he finished the level. According to this…
0
votes
1 answer

My player is getting stuck inside the wall in the 2D platforming game I am making in unity

I am making a 2D platforming game in unity. For some reason, the player is getting stuck in the wall. I have used a Tilemap for the wall, then used tilemap Collider 2D with composite collider. The same thing works fine with the ground. When I go…
0
votes
2 answers

Objects not colliding in Unity 3D

I am following along with creating the Obstacle Game from Game Programming with Unity and C# by Casey Hardman. I have reached the point in the first few pages of Chapter 16 where you create a Hazard to kill the player. In the beginning stages, you…
0
votes
1 answer

Mask collisions doing funky stuff when I make the camera follow the player

I'm making a racing game with almost realistic cars in Pygame. I made the cars successfully and I want to make the car move a bit slower when it's not touching the drive way. For that, I want to use Pygame mask collisions. Instead of using bounding…
RaptoRR
  • 59
  • 10
0
votes
1 answer

Godot collision not working when object is moving away

In my Jump and Run game you don't get damage when you're are colliding into the enemy from the back but it's working when you're hitting it from it's front. I'm using a Kinematicbody2d for both the enemy and the player and an area2d for checking…
Oliver JT
  • 11
  • 1
0
votes
0 answers

Bullet (Sprite) cant figure out how to collide with list variable

I am making a game where you have to shoot asteroids before they hit you, but I cant figure out how to collide my Bullet(sprite) with a list variable. Here is my Bullet Class: class Bullets(pg.sprite.Sprite): def __init__(self, x, y): …
Leonardo
  • 1
  • 1