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
3 answers

collision not working properly in unity when moving

so I have rigid body and when it collides with another body with low speeds it is working just fine but when it collides with hight speed it goes through the object I've Been have this problem for day and I can't fix it here's my code this is my…
user19908992
0
votes
1 answer

How the Bently-Ottomann algorithm determines the order of segments on sweep line

As much as I have known, the order within the status is determined by the beginning point of segments initially, and changed when the sweep line meets a corresponding intersection. Let's see the example below. Let the sweep line sweeps from top to…
0
votes
1 answer

When the player is fall the collision game object doesn't destroyed immediately

I have a problem. I created a game with coins that the player collects. I a code that when the player collisions with the coin the coin will be destroyed. When he on the same Y all the game is good. However, when the player fall on a coin he get…
DanielM
  • 1
  • 1
0
votes
1 answer

How do I keep my player from going over the collider?

I'm making a 2D game where the player moves left and right while dodging falling objects, I put triggers so it doesn't leave the screen but sometimes when it collides with these triggers it passes this collider. I sent an image of the colliders, the…
NIK 444
  • 23
  • 5
0
votes
0 answers

Level Change In Ursina Game Engine

I'm making a 3d platformer game in ursina and finishing level 1. But I can't get the Player to touch the portal and move to the next level. Also, I'm using my own player controller for some smoother jumping so I can't use intersect. I'll show you…
DonYeet46
  • 13
  • 6
0
votes
1 answer

Detect when two rectangles touch horizontally or vertically

I have these two methods to determine collisions on the x-axis and y-axis: def horizontal_overlap(char, object) char.x + char.width > object.x && char.x < object.x + object.width #Endl end def vertical_overlap(char, object) object.y +…
IssUseless
  • 47
  • 5
0
votes
2 answers

How to detect collisions in java

I'm working on a game for this game jam. I'm making it in java because I can't be bothered to learn a game engine. I'm using JFrame as my graphics library, and I can't think of a way to detect collisions between my player and the 2d world. Here's…
0
votes
1 answer

box collider getting caught on tilemap collider

I have a player that uses a box collier and a level that uses tilemap colliders. The folowing code is drawing contact points with the wall: int numContacts = mBody.GetContacts(levelFilterGround, contactPoints); for (int i = 0; i <…
0
votes
1 answer

(Unity) Is there a way to disable collision detection on BoxColliders but still detect it?

I have 4 BoxColliders on my character to detect wall/floor collision. When collision detection is enabled for them, it causes the player to stick to walls and slopes aren't detected as ground.
HalfHalf
  • 3
  • 2
0
votes
1 answer

collision between player and a limiter is not 100% functional

In the game I'm developing, the player moves left and right avoiding obstacles that fall from above, but when the player reaches the left or right limit, a collision bug may occur and he simply leaves the screen. I'm using the rigidbody.velocity and…
NIK 444
  • 23
  • 5
0
votes
0 answers

How can I blit a random image at a random coordinate everytime collision occurs?

with my code right now, whenever my sprite collides with a Pokemon, the pokemon blits at random locations 3 - 5 times then just doesn't let me collide with it anymore. Sometimes the pokemon that blits is random sometimes its not. Here is my pokemon…
gershinho
  • 33
  • 4
0
votes
2 answers

xna 4.0 perparing for multiple collision detection with list

I have a List of objects of which all have a bounding rectangle updated everytime... How can I effectively iterate among them ? I thought that checking it like this is fine but any ideas ? for (int i = 0; i < birds.Count; i++) { …
JML
  • 951
  • 1
  • 7
  • 11
0
votes
2 answers

Why is my player unable to stand on the moving rectangle objects?

Here is the code that tries to make my player stand on terrain - class Player(pygame.sprite.Sprite): def __init__(self): ... self.image = self.images_run_list[self.hero_index] self.rect =…
0
votes
1 answer

Scenekit and collision when scale the object

I have created a simple object an place it in SceneKit scene, on top of it I release another object that collide with the first object.All work fine.. But, when I scale my first node up the collision don't work anymore... Any reason why? Any…
Damiano Miazzi
  • 1,514
  • 1
  • 16
  • 38
0
votes
1 answer

Find_overlapping & Collision and with Zelle graphics (python) - would like some feedback pls

I am looking for a different way to create collision detection using Zelle Graphics and find_overlapping. I believe the overlapping shows where the bounding box of an object has come in contact with the bounding box of another object (the tuple)? …
netrate
  • 423
  • 2
  • 8
  • 14
1 2 3
99
100