-
Notifications
You must be signed in to change notification settings - Fork 19
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
Comments
I'm curious, why would you need that? (I'm not telling you that you don't) |
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. |
So your positions are relative there? |
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 So there is a hierarchy of 4 entities: 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? |
Better done with BOX2D system. Out of scope. |
No description provided.
The text was updated successfully, but these errors were encountered: