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

Implement Entity Attachments #241

Open
zackthehuman opened this issue Jun 13, 2016 · 0 comments
Open

Implement Entity Attachments #241

zackthehuman opened this issue Jun 13, 2016 · 0 comments

Comments

@zackthehuman
Copy link
Member

It should be possible to attach one Entity to another, calculating its position relative to the attached-to object. This kind of thing is needed for moving platforms, rush jet, shield weapons, etc.

Possible implementation could be via an Attachment object, which all Entities have a unique_ptr to. When it's non-null, positions are calculated based on the attachment. When it is null, positions are calculated in absolute terms.

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

No branches or pull requests

1 participant