javascript - Rotating One Object Around Another In createJS/easelJS -


in easeljs, best way rotate object around another? i'm trying accomplish method rotate crosshair around circle pictured below, planet orbits sun:

enter image description here

i've been able rotate objects around own center point, having difficult time devising way rotate 1 object around center point of second object. ideas?

might make sense wrap content in container. translate coordinates center point want it, , rotate container.


Comments