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 Transform2D struct #4

Open
yoanlcq opened this issue Jan 12, 2018 · 0 comments · May be fixed by #54
Open

Add Transform2D struct #4

yoanlcq opened this issue Jan 12, 2018 · 0 comments · May be fixed by #54

Comments

@yoanlcq
Copy link
Owner

yoanlcq commented Jan 12, 2018

Add this kind of data structure :

pub struct Transform2D<P,O,S> {
    pub position: Vec2<P>,
    pub rotation_z: O, // In degrees
    pub scale: Vec2<S>,
}

If a z position element is needed, people should just use Transform instead.
The reason is, we shouldn't enforce the way to set z-order. Some architectures might be "layer-based", for instance.

@wackbyte wackbyte linked a pull request May 17, 2020 that will close this issue
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 a pull request may close this issue.

1 participant