Skip to content

Translation y axis ignored for effects with SimulationSpace::LocalΒ #522

Description

@Rabbival

Crate versions
[dependencies]
bevy = { version = "0.18.0", default-features = false, features = [
"gltf_animation",
"bevy_asset",
"bevy_color",
"bevy_core_pipeline",
"bevy_gilrs",
"bevy_gizmos",
"bevy_gltf",
"bevy_pbr",
"bevy_picking",
"bevy_render",
"bevy_scene",
"bevy_sprite",
"sprite_picking",
"bevy_state",
"bevy_text",
"bevy_ui",
"ui_picking",
"bevy_window",
"bevy_winit",
"custom_cursor",
"default_font",
"hdr",
"multi_threaded",
"png",
"smaa_luts",
"sysinfo_plugin",
"tonemapping_luts",
"webgl2",
"x11",
] }
bevy_hanabi = { version = "0.18" , default-features = false, features = ["2d"] }

Describe the bug
When spawning effects on local space, the y axis is ignored. Meaning, even if the effect is spawned with Transform::from_translation(Vec3::Y) it would spawn on Vec3::ZERO

Expected behavior
Y axis acknowledgement

To Reproduce
It can be reproduced on the init example (of the crate) by changing the Y of the spawned effects instead of the x

Screenshots
Here's what the init example looks like when y is changed instead of x:
https://github.com/user-attachments/assets/869d158d-daf6-4493-96a3-02b083858926

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions