I'm currently transforming some objects to make them appear far away using a PerspectiveTransform
. This works well, but I have no way of knowing where on the screen the object is displayed. The x and y coordinates are the coordinates of the object if it were at z=0
. How can I compute the display coordinates of my component?
What are the coordinates of a display object that has been transformed with a PerspectiveProjection?
Asked
Active
Viewed 148 times
0

roland
- 1
1 Answers
0
What about the flash.display.DisplayObject
's localToGlobal
and globalToLocal
methods? Each takes a point from the first space and returns a transformed point in the second space.
EDIT:
Also see the local3DtoGlobal
and globalToLocal3D
methods for 3D transformations.

Ryan Lynch
- 7,676
- 1
- 24
- 33