bevyengine / bevyengine/bevy

Make Transforms optional for Mesh3d, PointLight, Spotlight

Open
#16,914 2 comments 0 reactions 0 assignees View on GitHub
A-ECS C-Feature S-Needs-Design
Dominant language
Rust
Stars
48.2k
Forks
4.8k
Avg merge
3d 22h
Merged PRs (30d)
161

Description

## What problem does this solve or what need does it fill?

For Noumenal, I use a custom transform type, and use this type to set `GlobalTransform`. Forcing the `Transform` component causes a conflict with multiple systems writing to `GlobalTransform` in this case, and also wastes memory.

## What solution would you like?

I would like `Transform` components to be optional (not required.)

## What alternative(s) have you considered?

One workaround is to remove automatically added `Transform`s, but this is clunky, and I'm surprised that it even works.

## Additional context

With https://github.com/bevyengine/bevy/issues/16246, `Transform`s could be suggested components, or maybe there could be a way to remove or substitute required components when a plugin is loaded.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.