Skip to content

Direct matrix manipulation of Node2D#43

Open
Barliesque wants to merge 2 commits intolrrrs:masterfrom
Barliesque:master
Open

Direct matrix manipulation of Node2D#43
Barliesque wants to merge 2 commits intolrrrs:masterfrom
Barliesque:master

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