Jump to content

what angle range prevents a crash?

Featured Replies

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

You will be looking at sinusodial functions then to calculate angles in the form of radians.

  • Author

yes. I imagined that would be the case.

Edited by alan2here

Archived

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

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.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.