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

Transform scene graph updaing #5

Open
cameronmbell opened this issue Dec 7, 2016 · 0 comments
Open

Transform scene graph updaing #5

cameronmbell opened this issue Dec 7, 2016 · 0 comments
Labels

Comments

@cameronmbell
Copy link
Collaborator

When modifying transform.position, transform.scale, transform.localPosition and transform.localScale then the scenegraph will not update.

Read more about the specifics here: http://stackoverflow.com/questions/40991821/typescript-setter-is-not-called-on-a-sub-property-of-a-class-instance/40992866?noredirect=1#comment69207842_40992866

Example that may cause the problem:

player.transform.position = new Vector2(10, 10); //Okay
player.transform.position.x = 10; //This will not update the scene graph and may cause problems

A warning has been added to the vector class - but this is a temporary solution

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