Circle to rotated Rectangle - 2d collisions

Blitz3D Forums/Blitz3D Programming/Circle to rotated Rectangle - 2d collisions

Stevie G(Posted 2007) [#1]
Hello,

I can determine whether the circle has penetracted the rect easy enough by projecting the circle's center onto the rect's center etc..

I'm looking for the quickest possible solution which can give me both contact normals and exact point of collision, taking circle radius into consideration.

Can anyone help or point me to something useful on the web?

[EDIT] ... Sods law, not long after the post, manged to work this out for myself :))


Cheers
Stevie


mongia2(Posted 2007) [#2]
i use a 2 triangles

and i use a point in triangles and a scale rectatngle

x+dx ,y+dy and i have a point off collisions

mongia


Stevie G(Posted 2007) [#3]
I have a quicker way by using the axis of least separation theory, but thanks.