Download

"set actor enable collision" does not turn off collision for child actors.

Hi.

So read that the proper way to turn on/off collision for a whole actor is to use “set actor enable collision”.

I’ve tested it in a simple actor and it works fine for everything except child actors.

So my question is, is this a bug or the way it’s intended to work?

And if this is not a bug, how is this intended to be used? Is there an event/callback to the actor when something turns on/off it’s collision, so that I can do the same thing internally for it’s childs?

Arnleif

Child Actors are not “really” Children. They are just Actors attached to the parent. That means they are fully functional on their own.

To retrieve the Children you use ChildActorComponent->getChildActor and disable the Collision from them, too.

I see your solution, but I don’t buy the argument :slight_smile:
My guess is that the this is really a bug.

Taking into account that “Set Actor Hidden In Game”

does manage to set all childs hidden as well.

And there is really no purpose in having such a ‘feature’ (too only turn off collision for the ‘main’ actor.), unless you are doing some weird designs of your game-system.