Skip to content

Add ability to specify the order of local transformations #10

@michael

Description

@michael

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'));
};

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions