<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
</head>
<body>
<div class="BodyFragment"><font size="2"><span style="font-size:10pt;">
<div class="PlainText">I wouldn't say there is a trick, but you can check for this kind of thing using the built-in functions. In this case you want to check the car's &quot;distance in front of&quot; the road. If the value of this function is too great or too small,
 then the car is past the side of the road, or off the road. Please see attached for a proof of concept.<br>
<br>
James<br>
--<br>
Dr. James Vanderhyde<br>
Math and Computer Science<br>
Benedictine College<br>
jvanderhyde@benedictine.edu<br>
<a href="http://vanderhyde.us/~james/pro/">http://vanderhyde.us/~james/pro/</a><br>
</div>
</span></font></div>
<div class="BodyFragment"><font size="2"><span style="font-size:10pt;">
<div class="PlainText"><br>
<br>
<br>
On Nov 20, 2013, at 6:05 PM, Marty Schultz &lt;schultz_marty@hotmail.com&gt; wrote:<br>
<br>
&gt; In Alice 2.3, is there a trick to detecting if a car (Class Car, for<br>
&gt; example), or the camera,&nbsp; driving on a road (Class Road) drives off of the<br>
&gt; left or right side of the road?&nbsp; Assume that the car is either on the same<br>
&gt; level as the road, or within 1 meter.<br>
&gt; <br>
&gt; It seems difficult to determine if the x,y position of the car (or camera<br>
&gt; current position) is within the x,y coordinates of the road.<br>
&gt; <br>
&gt; Thanks,<br>
&gt; <br>
&gt; Marty<br>
&gt; <br>
&gt; <br>
&gt; _______________________________________________<br>
&gt; alice-teachers mailing list<br>
&gt; alice-teachers@lists.andrew.cmu.edu<br>
&gt; <a href="https://lists.andrew.cmu.edu/mailman/listinfo/alice-teachers">https://lists.andrew.cmu.edu/mailman/listinfo/alice-teachers</a><br>
<br>
</div>
</span></font></div>
</body>
</html>