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

Entity hierarchy (parent/child) #26

Closed
DaanVanYperen opened this issue Sep 14, 2014 · 5 comments
Closed

Entity hierarchy (parent/child) #26

DaanVanYperen opened this issue Sep 14, 2014 · 5 comments

Comments

@DaanVanYperen
Copy link
Owner

No description provided.

@Namek
Copy link
Contributor

Namek commented Sep 28, 2014

I'm curious, why would you need that? (I'm not telling you that you don't)

@DaanVanYperen
Copy link
Owner Author

Think of it like a scenegraph. So entities that have a spatial relationship, like turrets mounted on a spaceship. This is already sorta in the contrib components package, by means of components 'Attached' and some others. It just needs cleaning up.

Just my preference though. others probably prefer to hook this up through some behind the scenes physics or stage system instead.

@Namek
Copy link
Contributor

Namek commented Sep 28, 2014

So your positions are relative there?

@Namek
Copy link
Contributor

Namek commented Sep 29, 2014

Example: there's some space ship which has some turret on it. Since the turret is big, imagine R2D2 on it. And let's say, that we have some comic balloon texts over characters, so R2D2 is yelling something like 101010111011110100011!!!.

So there is a hierarchy of 4 entities:
space ship -> turret -> dron -> speech balloon

To render the last one you have to access 3 previous ones for position calculation due to position relativeness. Lil OOP-ish. Is this what you do/desire?

@DaanVanYperen DaanVanYperen mentioned this issue Jul 23, 2015
17 tasks
@DaanVanYperen
Copy link
Owner Author

Better done with BOX2D system. Out of scope.

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

2 participants