local

Appearances (such as Pose and Graphic) use this system. (0,0) is wherever the pin is placed on the image.

Imagine we have a Pose of a man walking, the position of the pin is at floor level directly below his center of gravity.

We can then ask : is (0, -10) within the bounds of this Appearance. The answer is NO (as it would be below floor level).

Notice that this has nothing to do with a particular Actor, or Actor.position.

Its called local, because (0,-10) just means 10 units past the bottom of the actor's shoes (wherever they happen to be). If he's standing upright, that would be 10 world units in the -Y direction, but if he's fallen over (rotated 90°), then it is 10 world units left or right (depending on which way he fell). If he is scaled by a factor of 2, it would be 20 world units.

Actor converts between world and local coordinates using Actor.worldToLocal and Actor.localToWorld matrices.

Properties

Link copied to clipboard
Link copied to clipboard