how to do 2D sliding collision with ray casting?

BlitzMax Forums/BlitzMax Programming/how to do 2D sliding collision with ray casting?

Robert Cummings(Posted 2007) [#1]
Hi,

I would like to define some vector shapes and perform simple sliding collision on these shapes. The shape that will collide with this vector shape is a circle.

I also want to be able to fire a ray at 2D coordinates super quickly and just return true or false if it intersects with a vector shape.

The goal is having things wander around vaguely avoiding stuff and sliding with good collision if it does touch on it.

Does an existing solution exist for this?

Thank you :)


klepto2(Posted 2007) [#2]
I think what you mean is autonomous steering behaviour, or something like that.

If so, then take a look to this:
http://www.blitzbasic.com/Community/posts.php?topic=55711


Robert Cummings(Posted 2007) [#3]
Thank you for the feedback but that is not what I am looking for, I am looking for simple 2D sliding collision for my characters, with the possibility of detecting an obstruction...