Rotate with CCW animation bug?

Discuss suspected bugs with other users and Sim Innovations Staff

Moderators: russ, Ralph

Message
Author
User avatar
Sling
Posts: 5240
Joined: Mon Sep 11, 2017 2:37 pm
Contact:

Rotate with CCW animation bug?

#1 Post by Sling »

It would be good if someone else can confirm this. The same behaviour in 4.1.6 and latest 4.2 beta.

Image is an arrow pointing downwards. My expectation is the instrument will start with the arrow pointing to the left after the initial 90 rotation. When the button is pressed the arrow should rotate 180 degrees in a CCW direction and finish up pointing upwards. It doesn’t so either it’s bugged or I need to sleep on it and come at it fresh tomorrow.

Code: Select all

pointer = img_add(“my_pointer.png”, 50, 50, 200, 200)

rotate(pointer, 90)

button_add(nil, nil, 50, 50, 200, 200, function()
    rotate(pointer, 270, “LINEAR”, 0.02, “CCW”)
end)

Last edited by Sling on Thu Jan 11, 2024 6:41 am, edited 2 times in total.

User avatar
Corjan
Posts: 2941
Joined: Thu Nov 19, 2015 9:04 am

Re: Rotate with CCW animation bug?

#2 Post by Corjan »

Hi,


You are not getting crazy, this is indeed a bug :)
Solved this one, hopefully there are not more bugs like this. It is quite hard to determine if everything is working as intended.


Will be in next BETA. And as always, thanks for posting,

Corjan

User avatar
Sling
Posts: 5240
Joined: Mon Sep 11, 2017 2:37 pm
Contact:

Re: Rotate with CCW animation bug?

#3 Post by Sling »

Thx for confirmation.

User avatar
Sling
Posts: 5240
Joined: Mon Sep 11, 2017 2:37 pm
Contact:

Re: Rotate with CCW animation bug?

#4 Post by Sling »

Hi,

I just checked this in the latest beta and it’s still broke for CCW.

User avatar
Corjan
Posts: 2941
Joined: Thu Nov 19, 2015 9:04 am

Re: Rotate with CCW animation bug?

#5 Post by Corjan »

Hi,

Seems to work here with your exact snippet in first post.
It starts pointing to the right (270 degrees), and when pressed it makes a 90 degree CCW turn to 180 degrees, and ends up facing up.

Corjan

User avatar
Corjan
Posts: 2941
Joined: Thu Nov 19, 2015 9:04 am

Re: Rotate with CCW animation bug?

#6 Post by Corjan »

This is with AM 4.2 BETA 36

User avatar
Sling
Posts: 5240
Joined: Mon Sep 11, 2017 2:37 pm
Contact:

Re: Rotate with CCW animation bug?

#7 Post by Sling »

@Corjan

Oops I posted the wrong code snippet. I’ve updated. If rotating 180 degrees I was expecting to be able to force what direction it takes. Some combo’s work but the one that is now in that post does not animate correctly. Seems there is something up with the maths making it do a 540 degree animation.

User avatar
Sling
Posts: 5240
Joined: Mon Sep 11, 2017 2:37 pm
Contact:

Re: Rotate with CCW animation bug?

#8 Post by Sling »

@Corjan Did you get a chance to have another look at this? It’s still bugged.

User avatar
Corjan
Posts: 2941
Joined: Thu Nov 19, 2015 9:04 am

Re: Rotate with CCW animation bug?

#9 Post by Corjan »

Oh sorry, forgot.
Managed to fix this one also... hopefully this is the last one, tried quite some combinations, and seems to be fine...


Will be in new AM 4.2.3 release, probably somewhere next week,

Corjan

User avatar
Keith Baxter
Posts: 4685
Joined: Wed Dec 20, 2017 11:00 am
Location: Botswana

Re: Rotate with CCW animation bug?

#10 Post by Keith Baxter »

..
Last edited by Keith Baxter on Thu Jan 25, 2024 4:24 pm, edited 2 times in total.
AMD RYZEN 9 5950X CPU, Corsair H80I cooler, ASUS TUF GAMING B550-PLUS AMD Ryzen Mother Board,  32Gb ram Corsair Vengeance 3000Mh, MSI GTX960 4G graphics card 

Post Reply