Rotatepoint: Difference between revisions

From EDukeWiki
Jump to navigation Jump to search
mNo edit summary
 
mNo edit summary
Line 7: Line 7:
:<x>: the x coordinate of a wall point to rotate in relation to the 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
:<y>: the y coordinate of a wall point to rotate in relation to the pivot point
:<ang>: how many degrees to rotate (0-2023)
:<ang>: how many degrees to rotate (0-2047)
:<xreturnvar>: the post-rotate x coordinate of the wall point
:<xreturnvar>: the post-rotate x coordinate of the wall point
:<yreturnvar>: the post-rotate y coordinate of the wall point
:<yreturnvar>: the post-rotate y coordinate of the wall point
[[Category:EDuke32 specific commands]]
[[Category:Sector manipulation]]

Revision as of 22:37, 15 May 2006

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