alan2here Posted September 4, 2010 Share Posted September 4, 2010 (edited) 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 September 4, 2010 by alan2here Link to comment Share on other sites More sharing options...
Fuzzwood Posted September 4, 2010 Share Posted September 4, 2010 You will be looking at sinusodial functions then to calculate angles in the form of radians. Link to comment Share on other sites More sharing options...
alan2here Posted September 4, 2010 Author Share Posted September 4, 2010 (edited) yes. I imagined that would be the case. Edited September 4, 2010 by alan2here Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now