bevy/examples/3d
MinerSebas 59ee512292 Add TransformBundle (#3054)
# Objective

- Bevy currently has no simple way to make an "empty" Entity work correctly in a Hierachy.
  - The current Solution is to insert a Tuple instead: 

```rs
.insert_bundle((Transform::default(), GlobalTransform::default()))
```

## Solution

* Add a `TransformBundle` that combines the Components:

```rs
.insert_bundle(TransformBundle::default())
```

* The code is based on #2331, except for missing the more controversial usage of `TransformBundle` as a Sub-bundle in preexisting Bundles.

Co-authored-by: MinerSebas <66798382+MinerSebas@users.noreply.github.com>
Co-authored-by: Carter Anderson <mcanders1@gmail.com>
2022-02-06 01:07:55 +00:00
..
3d_scene.rs Replace old renderer with new renderer (#3312) 2021-12-14 03:58:23 +00:00
lighting.rs Replace old renderer with new renderer (#3312) 2021-12-14 03:58:23 +00:00
load_gltf.rs Replace old renderer with new renderer (#3312) 2021-12-14 03:58:23 +00:00
many_cubes.rs Replace old renderer with new renderer (#3312) 2021-12-14 03:58:23 +00:00
msaa.rs Fix doc_markdown lints in examples (#3486) 2021-12-29 17:25:34 +00:00
orthographic.rs Add upstream bevy_ecs and prepare for custom-shaders merge (#2815) 2021-09-14 06:14:19 +00:00
parenting.rs Implement and require #[derive(Component)] on all component structs (#2254) 2021-10-03 19:23:44 +00:00
pbr.rs Add TransformBundle (#3054) 2022-02-06 01:07:55 +00:00
shadow_biases.rs Replace old renderer with new renderer (#3312) 2021-12-14 03:58:23 +00:00
shadow_caster_receiver.rs Replace old renderer with new renderer (#3312) 2021-12-14 03:58:23 +00:00
spherical_area_lights.rs Spherical area lights example (#3498) 2021-12-30 21:07:26 +00:00
texture.rs Replace old renderer with new renderer (#3312) 2021-12-14 03:58:23 +00:00
update_gltf_scene.rs Add TransformBundle (#3054) 2022-02-06 01:07:55 +00:00
wireframe.rs Replace old renderer with new renderer (#3312) 2021-12-14 03:58:23 +00:00