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

Add ability to specify the order of local transformations #10

Open
michael opened this issue Sep 5, 2010 · 1 comment
Open

Add ability to specify the order of local transformations #10

michael opened this issue Sep 5, 2010 · 1 comment
Labels

Comments

@michael
Copy link
Owner

michael commented Sep 5, 2010

default order is:

  1. translate
  2. rotate
  3. scale
uv.Actor.prototype.tWorld = function() {
  return uv.Matrix()
     .concat(this.tWorldParent())
     .translate(this.p('x'), this.p('y'))
     .rotate(this.p('rotation'))
     .scale(this.p('scaleX'), this.p('scaleY'));
};
@michael
Copy link
Owner Author

michael commented Nov 13, 2010

This could be solved by introducing transformation actors that can be combined in different ways (see Scene.js)

- Rotation
  - Translation
     - Scale
        - Rect
        - Text

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant