Skip to content

Rotate animation doesn't work when Node has translation #133

@galexite

Description

@galexite

How do I animate an explicit Transform in Macaw? My app involves a compass, which is a Node on a MacawView. I only want to animate rotation, so what I really wanted was to do this:

myNode.placeVar.animate(transform: Transform.rotate(...))

Therefore retaining (but not modifying) my scaling set to myNode.place.

I do understand that there is animate(to: Transform), but I loose my scaling. If I use animate(to: myNode.place.rotate(...)), I get rather weird issues with the node resizing almost seemingly randomly.

Is this possible in Macaw?

Thanks

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions