Instanced static mesh does not trigger collisions
Hi, I've made a simple level generator using Instanced Mesh Components. Everything was working great, but I've decided to split the map into smaller chunks. I moved the required components to a new Actor class and spawn a grid of chunks and instantiate meshes in them. After that, the collisions stopped working and the character just drops through it into the abyss. What could be the issue here? The physics and collision settings on the components are exactly the same. All that's different is that instances are added to actors spawning at runtime instead of one being there from the start. Does that make any difference? Here's the chunk's constructor
Any ideas? Does the component need the collisions to be initialized manually since it's spawned and used during beginplay? UPDATE: Oddly enough, after switching transform's mobility in editor DURING runtime the collisions seem to work again. I'm going to look into that...
(comments are locked)
|
So I have found a workaround for the issue. Like i mentioned in the update changing component transform's mobility fixes the issue. What I do is set the mobility on BeginPlay and change the default one in the blueprint to something else, so it gets updated on runtime, which makes it work, but I'm sure there has to be a way to do it properly.
(comments are locked)
|
Follow this question
Once you sign in you will be able to subscribe for any updates here