# 2D movements between objects.

This topic is 4999 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

## Recommended Posts

I'm having trouble understanding how to deal with movings objects that are going at different speeds. Sometimes the speeds of objects are much greater than others, so how do I deal with knowing the exact point of impact between objects especially if they are moving in different angles. This is in 2D.

##### Share on other sites
Given two line equations (the support for your objects trajectories, regardless of the actual magnitude of their velocities), you can compute the intersection point. It's a simple system of affine equations. Once you have that point, you can compute the time at which each object reaches it (divide the distance to that point by the object's actual velocity). If the objects reach the intersection at the same time, you have a collision.

If the objects aren't points, the system gets a bit more complicated (you have to compute the actual object-object distance as a function of time and find the minimum), but the basic idea goes along similar lines.

1. 1
Rutin
37
2. 2
3. 3
4. 4
5. 5

• 12
• 10
• 13
• 104
• 11
• ### Forum Statistics

• Total Topics
632980
• Total Posts
3009684
• ### Who's Online (See full list)

There are no registered users currently online

×