Jump to content
  • Advertisement


This topic is now archived and is closed to further replies.

Tim Cowley


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

If you intended to correct an error in the post then please contact us.

Recommended Posts

I am not sure but I don''t it is impossible. If you visualize stuff like this you usually can break it down.

Ok rather than dragging it out I will give you my assumption.

- You probably use the velocity and angular velocity on its endpoints to create 2 curves.

- From those curves you fine its closest point to the stationary line.

- From those closest points you find at which instance the line will be at each curve point (you must find the instance in time the line was there during rotation and movement and not make just a line from the 2 points closest points on the curve).

- So now you have 2 new lines made from the moving line. You test those against the stationary line, depending on the earliest instance in time, you have your earliest collision.

- Also for a fail safe you could test 2 overlaps, one at the beginning of movement and one at the end.

Once again this is just an assumption... seems reasonable.

Share this post

Link to post
Share on other sites
it must be possible, it''s been done in 3D with triangles. search for Stephane Redon''s thesis. He is doing swept test between meshes under rotation and translation. it involves finding the roots of a quadric equation (I think). basically, if the lines are rotating and translating at constant speed other a time frame (that''s an assumption made by most collision detection algorithms), you can put the motions into an equation, and solve it.



Share this post

Link to post
Share on other sites

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!