22 lines
748 B
HTML
22 lines
748 B
HTML
|
<HTML>
|
||
|
<HEAD>
|
||
|
<TITLE>set.dir</TITLE></HEAD>
|
||
|
<BODY>
|
||
|
<h1>set.dir</h1>
|
||
|
<B>Category</B><p>
|
||
|
<a href="object_commands.html">Object/view commands</a><p>
|
||
|
<B>Syntax</B><p>
|
||
|
<p>
|
||
|
set.dir(oA,vDIR);<p>
|
||
|
<B>Description</B><p>
|
||
|
<p>
|
||
|
The direction of object oA is changed ot vDIR. vDIR must be between 0 and 8:<p>
|
||
|
<img src="logic_diag-directions.png" alt = "" ><p>
|
||
|
You can not set the direction of ego (object 0). Instead, change the value of v6 to the direction you want.<p>
|
||
|
To find out what direction an object is currently travelling in, use the <a href="get_dir.html">get.dir</a> command.<p>
|
||
|
<B>See also</B><p>
|
||
|
<a href="get_dir.html">get.dir</a><p>
|
||
|
<a href="start_motion.html">start.motion</a><p>
|
||
|
<a href="moving_objects.html">Moving objects</a><p>
|
||
|
</BODY></HTML>
|