mercredi 22 juin 2016

ActionScript 3 move an object in local space relative to global space

I'm trying to do some 3D transforms with AS3 and I've run into a problem where I'm not sure how to make this work.

I have a list of boxes within a movieclip, where this movieclip is rotated slightly. Something like this (values are made up, just for illustration):

Initial State

Now what I would like to do is take one of the boxes from inside this group and move it to a position in the global space. Like so:

Intended result

How would I do this with ActionScript 3?

Aucun commentaire:

Enregistrer un commentaire