I want to change collision state in depending on blueprint variable. Bu this code doesn’t work. Changing a variable “EnablePhysics” in an actor is completely ignored.
And i don’t understand why. By the way, collisions for sphere are full disabled, so they don’t affect to this code.
I hope you can help me understand the error. Thanks in advance!
@mdeni All your doing with the first node is toggling between the box collision ( as you have set it in the details ) and none. That’s best done with SetCollisionEnabled.
Sorry for my English, it is not my native language. Perhaps I made the wrong point. I mean, that SetCollisionEnabled does not work. As and first variant. Of course I tried it too.
I found a workaround. Copy the nodes involving “Set Collision Enabled” from your Construction Script to your Event Graph and wire them up to Begin Play (in your Blueprint).