Rotatepoint

From EDukeWiki
Revision as of 21:37, 15 May 2006 by TX (talk | contribs)
Jump to navigation Jump to search

rotatepoint <xpivot> <ypivot> <x> <y> <ang> <xreturnvar> <yreturnvar>

Used in conjunction with dragpoint for rotating sectors. The rotatepoint command calculates the end position for a wall point after rotating. To move the point to that position, use dragpoint.

<xpivot>: the x coordinate of the central pivot point
<ypivot>: the y xoordinate of the central pivot point
<x>: the x coordinate of a wall point to rotate in relation to the pivot point
<y>: the y coordinate of a wall point to rotate in relation to the pivot point
<ang>: how many degrees to rotate (0-2047)
<xreturnvar>: the post-rotate x coordinate of the wall point
<yreturnvar>: the post-rotate y coordinate of the wall point