Anchor at 0.5 causes glitchy rotation

Report any Hollywood bugs here
Post Reply
youyise
Posts: 10
Joined: Wed Jan 29, 2014 4:15 am

Anchor at 0.5 causes glitchy rotation

Post by youyise » Sun Feb 02, 2014 12:19 pm

I'm trying to rotate a simple box, which works fine. But as soon as I set both its anchors to 0.5, it starts to "teleport" at certain angles. Like this:
Image
(watch what happens when it reaches 0)
Box(#CENTER, #CENTER, RectSize, RectSize/2, #WHITE, {rotate=CurrAngle,AnchorX=0.5,AnchorY=0.5})

Under certain circumstances it also glitches at 45, 90, 135 etc angles.
Full code here (sorry I messed up the formating of both hws files, please ignore my stylistic blunders).

User avatar
airsoftsoftwair
Posts: 3359
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: Anchor at 0.5 causes glitchy rotation

Post by airsoftsoftwair » Mon Feb 03, 2014 11:29 pm

Confirmed. I'll fix this.

Post Reply