Questions tagged [collision-detection]
Collision detection is the determination of whether or not two or more entities make contact with each other during gameplay.
2,477
questions
0
votes
1
answer
33
views
In Unity, how can a regular RigidBody know if it collided with a CharacterController?
I have a Unity CharacterController, that can detect collisions using the following code:
...
0
votes
0
answers
70
views
3D AABB vs AABB discrete collision - How to choose resolution axis?
I'm working on a simple 3D collision system that only needs to handle dynamic AABB vs static AABB. It needs a sliding collision response, but it doesn't need to sweep (i.e. doesn't need continuous, ...
1
vote
0
answers
49
views
Sweep and Prune algorithm performance
I just managed to implement my Sweep and Prune algorithm together with AABB and it's working correctly in the first axis (I haven't implemented second and third yet to complete the collision detection)...
0
votes
1
answer
32
views
BSP Tree Troubles and Unpredictable Results
I've been trying to fix this problem myself for ages, but I really do need help. I'm creating a BSP tree for my 3D game (baked in the map files, quake style) to replace my existing naïve collision &...
0
votes
0
answers
35
views
How detect collision between object1[i] and object2[j] then do something with them in Box2D games?
I am making a simple game with Box2D and SDL2. I have GameObjects vectors for example: 1.vector of Enemy 2.vector of Bullets…
in ContactListener class i can detect collision between enemyFixture and ...
0
votes
0
answers
54
views
How to resolve collision between wedge and AABB or capsule
I have a 3D world where all of my terrain uses AABBs as collision volumes (think minecraft, but not strictly cubes):
I want to add wedge pieces as a terrain option. They'll have various slopes and be ...
0
votes
1
answer
65
views
Why is my player not colliding with animated obstacles?
I can't figure this out. My obstacles have a basic box collider on them and my player has a rigidbody based controller and collsion detection is set to Continous and when obstacle hits him it just ...
0
votes
0
answers
28
views
Player-Environment Interaction & Collision Handling in Unity
Simply put, how would you go about designing environmental interactions? For example, upon pressing the interact button when near a chair, he can sit on it. (Also works with NPCs functioning with <...
0
votes
0
answers
30
views
Breakout Game Ball Reflection after hitting paddle
I am working on a Breakout game. My requirements are when the ball hit the paddle in the center it goes straight up regardless of the direction it was coming from, then for the left and right it ...
0
votes
1
answer
43
views
How to get around mouse entry signal stopping at first collision?
I have a grid of Area3D objects, and when nothing is around them, they handle the mouse_entered signal exactly as I would expect. The only issue is that I also use Area3D's on other game objects, like ...
0
votes
1
answer
50
views
Chain cutting swipe input skips over chains
I have a game where you need to cut chains, similar to Cut The Rope. I want to develop it for Android, so I need mobile controls.
For detecting swipes I used ...
0
votes
0
answers
58
views
0
votes
0
answers
35
views
Collision manifold between shapes
I am implementing the narrow phase collision detection of a 2d physics engine.
The narrow phase takes a list of shape pairs:
[(s1, s2), (s2, s5), ...]
And for each ...
0
votes
1
answer
68
views
Object collision and vector reflection for complex polygons?
I am currently creating an environment to train aim-bot AI's for my game. It is a 2d world made of complex polygons, and the goal is to have the AI's shoot ricocheting bullets. Using a ray-casting ...
0
votes
0
answers
62
views
AABB Collision Resolution Per Face
I have this function that detect the collision of two AABBs:
...