Jump to content

what angle range prevents a crash?


alan2here

Recommended Posts

Take a 2D enviroment that contains a straight line where the x and y coordanates of the two ends of the line are known and also the position of a car and the angle it is facing (7 values).

 

The car moves forward in a straight line. Is there a simple, reasonably computationally fast way to work out if the car ever intersects (crashes into) the line?

 

Would it become much more complicated if one of thease additional pieces of information was needed? either where did the intersection occur or given multiple lines which one was intersected first.

Edited by alan2here
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.