Rotation of position but not of asset?

So clearly one can rotate a display object using :rotate and adjust the rotation point using .xReference and .yReference.

But imagine a child on a swing - the child follows a rotational arc but his/her body is still (somewhat) upright.(Alright, not a perfect example, but…)

Basically, I’m looking for a way to lock the rotation of a displayObject’s appearance but still leave it open to translation along an arc (mathematical, not arbitrary) [import]uid: 41884 topic_id: 35491 reply_id: 335491[/import]

I seem to have the annoying non-simple questions these days. :wink: [import]uid: 41884 topic_id: 35491 reply_id: 141114[/import]

@richard9, yea its kinda a tough one, I am looking to do something similar, not sure how to do it though. I guess just using some serious math? [import]uid: 19620 topic_id: 35491 reply_id: 141123[/import]

This sounds like a use of Physics and Joints.

But couldn’t you get the rotation of the swing and then rotate your swinger a negative amount of the swing?
[import]uid: 199310 topic_id: 35491 reply_id: 141130[/import]

Check out HoraceBury’s Maths Library and look at the “rotateAboutPoint” function. You might start with that.

C [import]uid: 147322 topic_id: 35491 reply_id: 141186[/import]

I seem to have the annoying non-simple questions these days. :wink: [import]uid: 41884 topic_id: 35491 reply_id: 141114[/import]

@richard9, yea its kinda a tough one, I am looking to do something similar, not sure how to do it though. I guess just using some serious math? [import]uid: 19620 topic_id: 35491 reply_id: 141123[/import]

This sounds like a use of Physics and Joints.

But couldn’t you get the rotation of the swing and then rotate your swinger a negative amount of the swing?
[import]uid: 199310 topic_id: 35491 reply_id: 141130[/import]

Check out HoraceBury’s Maths Library and look at the “rotateAboutPoint” function. You might start with that.

C [import]uid: 147322 topic_id: 35491 reply_id: 141186[/import]