Swept AABB vs Line Segment 2D
Posted
by
Larolaro
on Game Development
See other posts from Game Development
or by Larolaro
Published on 2012-05-23T00:06:08Z
Indexed on
2012/06/07
4:48 UTC
Read the original article
Hit count: 463
collision-detection
I've really exhausted as much as Google has to give, I've spent a solid week googling every combination of words for an "AABBvsLine sweep", downloaded countless collision demos, dissected SAT intersection examples and an AABBvsAABB sweep trying to figure out how to approach this. I've not found a single thing covering this specific pairing.
Can anyone shed any light on how to get the hit time of a swept AABB vs a Line segment in 2D? I'm still getting familiar with the SAT but I do know how to implement it to a degree, I'm just not sure how to extract the hit time from the velocity in the non axis aligned separating axes for the sweep.
I really would appreciate anything at the moment, some code or even some helpful links, I'm at my wits end!
© Game Development or respective owner