Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Direct matrix manipulation of Node2D #43

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Direct matrix manipulation of Node2D #43

wants to merge 2 commits into from

Conversation

Barliesque
Copy link

I've added getter/setters to enable direct manipulation of the local model matrix, as well as a flag matrixOverride which gives those methods full control.

This makes it possible:
...to skew objects
...to duplicate transformations of a conventional DisplayObject, for instance, as it's tweened on a MovieClip timeline

Barliesque and others added 2 commits March 7, 2012 13:38
- get localMatrix() returns a clone of the node matrix
- set localMatrix() applies a clone of the supplied matrix and updates all transform properties
- get localMatrix2D() converts the node matrix to a 2D transform matrix, as used by DisplayObject.transform
- set localMatrix2D() builds a new node matrix from a 2D transform matrix
Added support for 2D matrix control
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant