Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [collision-prediction]

Collision prediction is the branch of collision-detection that involves the detection of a collision that could happen in the future, based on the current state a physics system.

0
votes
0answers
13 views

How to check if moving OOB will resolve the collision?

I now (thanks to several questions that were already asked here) that I can use SAT to check if two OOB are intersecting or not. But what if they are already intersecting? My situation is: I have two ...
3
votes
3answers
88 views

Collision detection in Arkanoid-like game at intersections

I'm creating an Arkanoid-like game from scratch. I have no (formal or informal) education of any kind in game-development, so I kinda made up things as I went regarding collision detection based on ...
0
votes
0answers
31 views

2D AABB Swept Collision Algorithm Premature Collision

I've been following this pseudo code for my implementation of 2D AABB Swept Collision: ...
0
votes
1answer
73 views

2d Rectangle Collision Resolution: Find rollback point

I have a 2-part question: 1: I have 2 rectangles, A and B. B is a wall and A is moving. My simple logic here is every time A moves, it moves based on some (x,y) offset and then checks if it collided ...
0
votes
0answers
27 views

How client movement prediction syncs with server position to avoid a clip around collision?

I have searched a lot on stackexchange and on google, yet I have not found a satisfactory answer to this seemingly simple question. I am making an online multiplayer game where the players navigate ...
0
votes
0answers
46 views

Client-side-predection collision detection synchronization

I'm trying to apply Client-side-prediction in my game (Agar.io clone), the collision detection happens on my server, I've read a lot of questions about how to make everything looks nice for all ...
4
votes
2answers
219 views

Determining the first future intersection possible between ships and a planet

Somewhat of an extension of this. The Problem I have a ship being launched from a planet, and I would like it to travel at a constant speed and direction such that it intersects another planet the ...
3
votes
2answers
176 views

Collision avoidance not only AI wrong

I am trying to implement the game similar to Dota 2 or Warcraft 3. I want this: when user clicks the right mouse button I want to navigate to the click position. However if there is an obstacle in my ...
0
votes
1answer
54 views

How to move from A to B, with check and fix the destiny?

I only found the formula for check the collision between two lines. But never about of movement and fixed from one point to other point in one of the line. I need move from pA to pB and if take ...
25
votes
6answers
6k views

How to make sure spinning objects hit a target with the right end?

I'm working on a throwing knife type weapon where a player free aims and then throws a knife. The knife spins through the air and on collision stops spinning and parents itself to the object it ...
1
vote
1answer
138 views

Java 2D Game: Collision help

Ok, so in my Java2D Game, using swing/awt (I hear it is not the best to combine those), I am trying to finish collisions. So, the problem is, the "if (player.xvel < 0) { }" and the "if (player....
0
votes
2answers
233 views

Does it matter who does the collision detection?

I gave an answer to How to decide which GameObject should handle the collision?, and received a lot of negative feedback on it, claiming that it does not matter who does the collision detection. I am ...
2
votes
2answers
343 views

2D moving sprites collision

I'm trying to create a game where i have two abjects A and B 1 :I know the shape of the two objects(...
1
vote
0answers
113 views

How can I make cars drive navigate an intersection without colliding?

I'm trying to create a 2D game with a traffic intersection: My car game-objects need to pass through the intersection without colliding with each other, and without stopping, if possible. How can I ...
4
votes
1answer
88 views

How can I implement A* so that it accounts for the size of the actor?

I'm trying to make a little A* implementation using polygon verticies as nodes instead of grids and I ran into the problem of figuring out what paths are wide enough to accommodate the actor moving ...
1
vote
2answers
941 views

Detecting Collision in Next Step when Collider is rotating

In my Gamemaker: Studio game, I have a collision script for my enemy. The enemy is an alien, oSwarmer, moving through space which is also filled with drifting, ...
1
vote
1answer
1k views

Prediction of collision place and time in Unity [duplicate]

I have two moving objects. I have chosen trajectories for objects that they would definitely collide if they don't change speed or trajectory. Is there easy way to check at which point and time the ...
5
votes
2answers
661 views

Predicting Enemy Movement

Well I have a simple 2D game where all positions are defined by and X and Y coordinate. There are objects moving at a constant velocity. And a turret fires a bullet at the X and Y coordinates of the ...