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

Allow for the Collision Object to get shapes from nested children #5746

Closed
Wokarol opened this issue Nov 8, 2022 · 1 comment
Closed

Allow for the Collision Object to get shapes from nested children #5746

Wokarol opened this issue Nov 8, 2022 · 1 comment

Comments

@Wokarol
Copy link

Wokarol commented Nov 8, 2022

Describe the project you are working on

This issue is not part of a project but rather "is that engine good for my games" research.
But to present the problem in more realistic scenario, let's assume a 2D Robot arm that can hit the player.

Describe the problem or limitation you are having in your project

It would be natural and convenient to be able to parent the shapes to the given segments of the robot, like shown here:
image
It's not possible as the shape has to be a direct child of the collision object

Describe the feature / enhancement and how it helps to overcome the problem or limitation

The fix for that would be to allow for gathering the shapes from nested children too.

Describe how your proposal will work, with code, pseudo-code, mock-ups, and/or diagrams

It would be a flag on a collision object

If this enhancement will not be used often, can it be worked around with a few lines of script?

It can be worked around using Remote Transforms, but that solution is not modular nor scalable. You can see how that would get ugly and very messy fast
image

Is there a reason why this should be core and not an add-on in the asset library?

It's a modification to a built-in node and a common game feature

@Calinou
Copy link
Member

Calinou commented Nov 8, 2022

Duplicate of #535.

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