Skip to content

Parenting of SpaceComponent #555

@Noofbiz

Description

@Noofbiz

Suggested by @juztme87.

Make SpaceComponents have references to any parent / child components, like a Node. This would be useful for collision detection.

One question I have about implementation is how would it work in practice? Is the position relative to the parent, i.e if I have a parent positioned at (100, 100) and position the child at (100, 100) would the child appear on the screen at (200, 200)? Also, is there inheritance? Does the child by default have the same properties as the parent or does it default to zero?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions