I've read
https://github.com/bevyengine/bevy/issues/3227
and I see bundles can't be returned as objects.
I'm trying to make a sample cube for commands.spawn to spawn like so:
`
/// cube with physics
pub fn CUBE(
length: usize //length, width, height of cube
) -> dyn Bundle {
///code, code
return cube_bundle
}
/// some other function ....
{
commands.spawn(CUBE(5.0));
}
`
How would I achieve something similar to the above since bundles can't be returned as objects?