Why does a c++ generated static mesh not block my collision channel?
I am using a trace to detect an actor on the floor, the trace and collision channel both work fine on an ordinary static mesh added to the actor in engine. However when I replace this mesh with a static mesh component created in c++, the trace fails to be blocked even though the collision settings are identical.
asked Oct 09 '14 at 04:59 PM in C++ Programming
I've found a few issues with C++ generated objects and collision. Particularly I've found that attaching and detaching components will sometimes blow away all of your custom collision and physics settings.
My solution was to set all of my collision channels again after attaching or detaching components. Even if you aren't attaching/detaching components, are you sure you set all the channels correctly in code? It looks something like this where
As a reference, my custom collision types are:
answered Nov 11 '14 at 04:21 AM
Follow this question
Once you sign in you will be able to subscribe for any updates here