colobot-data/help/D/cbot/direct.txt

16 lines
493 B
Plaintext

\b;Instruction \c;direction\n;
Syntax :
\s;\c;direction ( pos );\n;
Calculates the rotation that a robot must perform in order to point towards a given position.
\t;pos: \c;\l;point\u cbot\point;\n;
Position towards which the robot must point.
\t;Return value: \c;\l;float\u cbot\float;\n;
Angle of the rotation that must be performed. -90 means f. ex. a rotation of 90 degrees to the right.
\t;See also
\l;Programming\u cbot;, \l;types\u cbot\type; and \l;categories\u cbot\category;.