Open fatbatman opened 9 months ago
i will look but i+=2 seems wrong ?
It's meant to illustrate there is an issue if you remove some of them, not just the first or last added.
i see yes, i have to find better method without id because normally three instance is not made for add and remove instance
ok remove on instance should be fixed.
I'm still seeing problems when I use instance.
I end up with lots of meshes floating in the scene that are no longer being moved by physics.
Other that flash in and out of visibility.
I see this with Havok and Physx.
do you readd object on same instrance ? is maybe a problem of name
I see that's the problem, I wasn't giving them a name.
If I give them a unique name it works fine.
The only reason I'd say this is still a bug is because it works correctly when instance is not specified.
I've just noticed that if I also add other objects that have a different mesh and are not using an instance, these flicker and disappear / swap places.
Create some objects that make use of InstancedMesh
Then remove some.
The mesh of the removed objects remains in view.
I've also seen an issue where the remaining instances then flicker in and out of view.