Rules for child objects and collision
I'm just trying to figure out the rules for having a hierarchy of components that contribute their collision to the overall object hierarchy. I've googled...and tried different combinations, and I can't seem to get this to work.
Imagine building a ship. Players can attach static meshes (which are combined into a procedural mesh) which has collision. Like building blocks. Or, they can attach more dynamic things (like a turret), which has behavior.
Sounds simple right? But I can't seem to get this to work.
Basically, there are three things I need these things to do:
I would like to have one or more procedural meshes for building blocks, and the more dynamic objects be child actors. Is this something Unreal just can't do?
I've tried having a static mesh at the root, which works for child static meshes but actors and procedural meshes don't work properly. Procedural meshes act unwelded (but collision works as I would expect). Child actors are welded, but no collision.
Been beating my brains out on this for several days. Can anyone offer any assistance or direction on how to accomplish what I need?
Probably need to specify I'm using blueprints.
asked Jan 29 '18 at 11:50 PM in Blueprint Scripting
What if you kept track of the actors that you created on the top-level blueprint, and then added a box collision component corresponding to each of them, on spawn, that would be updated every tick with the transform of the child actors? That way you would have many "dummy" collision components that would all contribute to the collisions of your main object. You could use separate collision channels to avoid hits with the actual child actors. Would that help?
Thanks Diego I think that would work for actors which don't seem to contribute to Collision. Basically it's like a substitute however I still can't seem to get procedural mehes to weld. If I could get procedural meshes to weld and have collision, I could just weld the actors without collision and let the procedural messag handle collision. Just knowing the rules or actual behavior would be useful. One of my biggest frustrations is unreals lack of documentation. It's used up a lot of time I could have spent actually moving forward.
answered Jan 30 '18 at 01:35 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here