Layer/ layout angle bug?

Bugs will be moved here once resolved.

Post » Thu Jan 12, 2012 6:42 am

Not 100% sure, but shouldn't layers, and layout angles go clockwise rather than counter clockwise when adding to the angle?

layeranglebug?
Image Image
B
161
S
48
G
90
Posts: 7,347
Reputation: 66,749

Post » Thu Jan 12, 2012 11:32 am

I don't think so... the viewport rotates clockwise as per the angles-increase-clockwise rule. The visual effect when rotating the *view* clockwise is that the things you're looking at go anti-clockwise. Kind of confusing, but I think it's working correctly.

Edit: huh, maybe not - I suppose the action implies the layer rotates and the view stays the same angle, but actually the view rotates and the layer doesn't... I need to think about this...Ashley2012-01-12 11:33:44
Scirra Founder
B
359
S
214
G
72
Posts: 22,946
Reputation: 178,518

Post » Thu Jan 12, 2012 12:17 pm

Well if you do intend on trying to implement collisions for different angles on different layers, wouldn't that mean you would have to go clockwise?
I'm somewhat skeptical as to if that's actually feasible, what with all the extra calculations, etc, then again I have n idea how well you've optimized things already.

I guess one thing to think about is if there should be a view angle like you described if you do get collisions for different angles.
Seems that might be a bit confusing.
Image Image
B
161
S
48
G
90
Posts: 7,347
Reputation: 66,749

Post » Thu Jan 12, 2012 12:22 pm

I think I'd prefer to leave it as it is, it won't affect collisions between layers when that comes. For one thing changing this will break all the rotary competition entries! And I think this just falls under quirks of the engine - it really is rotating the view, not the layer, so objects on the layer correctly appear to move anticlockwise. Is this causing anyone any significant difficulties?
Scirra Founder
B
359
S
214
G
72
Posts: 22,946
Reputation: 178,518

Post » Thu Jan 12, 2012 7:01 pm

That's fine here, just have to reverse things. I am surprised noone else has noticed this, with the compo going on. heh
Image Image
B
161
S
48
G
90
Posts: 7,347
Reputation: 66,749

Post » Fri Jan 13, 2012 1:22 pm

OK, closing as won't fix.
Scirra Founder
B
359
S
214
G
72
Posts: 22,946
Reputation: 178,518

Post » Fri Jan 13, 2012 1:23 pm

@Ashley
Oh! that explain things. I was trying to project the position of an object from an undrotated layer to a rotated one, and as it was moving clockwise, I thought "ok just have to counter-rotate when changing layer so currentAngle-LayerAngle should work"
And to my surprise it was currentAngle+LayerAngle

Now that I know that it's the layout that rotate, it makes more sens.

Anyway, if you wonder how is percieved this "layerAngle" feature, I thought that the main goal of it was to rotate grouped sprites (grouped under the same layer). So yeah if I want to rotate grouped sprites 90 clockwise, I would think that the layer should rotate 90 clockwise. (And in graphic apps like photoshop it's how it is done)
Also, even if it's a bit away from the point, following this logic, it would be intersting to be able to set the center of rotation, and also to be able to move the layer wherever we want.
B
60
S
22
G
14
Posts: 1,479
Reputation: 16,346


Return to Closed bugs

Who is online

Users browsing this forum: No registered users and 1 guest