Reuse the same scene from gltf file brakes scene animation #8996
-
Bevy version
What you didFor example you can use the official animated_fox example. After spawning the first fox, try to spawn the second fox at line 74: // Fox
commands.spawn(SceneBundle {
scene: asset_server.load("models/animated/Fox.glb#Scene0"),
..default()
});
commands.spawn(SceneBundle {
transform: Transform::from_xyz(50.0, 0.0, 0.0),
scene: asset_server.load("models/animated/Fox.glb#Scene0"),
..default()
}); As a result animation for the first fox and second will be broken. What went wrongWhen I copy the same scene at least second time - animation will be broken. I want to load Some thoughtsIt is unclear, how instanse of AnimationPlayer is added. My main target would be WASM - so I want to decrease network requests - and I want to have one
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
So I closed the issue, because this is more a question on how to do something than reporting a bug. I invite you to open a new issue if you think the example is misleading (I would agree on this). So there is a slight misunderstanding here. I think you are referencing to the following code right? bevy/examples/animation/animated_fox.rs Lines 83 to 95 in d90c65d
|
Beta Was this translation helpful? Give feedback.
So I closed the issue, because this is more a question on how to do something than reporting a bug.
I invite you to open a new issue if you think the example is misleading (I would agree on this).
So there is a slight misunderstanding here.
I think you are referencing to the following code right?
bevy/examples/animation/animated_fox.rs
Lines 83 to 95 in d90c65d