Hello to my all freinds.i hope you be great and health.
my question is about my practise.
I have a sphere and want that color changes when i drop thing to it.
this picture is blueprints i wrote.
with this blueprints,when every actor hit to the sphere,color of it should change.
ok,that color changes when i hit when i fire to it and when i walk and touch it.
but when i fire to the cubes for hitting that sphere,color not change.why?
we told every actor hit to the sphere,color should change,so why it never change?
my other problem.
My blueprint is about set material when bullet touch my actor.problem is when i enable simulate physics and i play game,my actor color changes at the first without fire bullet to it.
Sky is the limit
Personally I think the best solution would be to create a custom collision channel (project settings → collision) only for things that can trigger the material change (e.g floor would be ignored)
But you can also add a specific Actor Tag to everything that can trigger collision change, and in event hit check if actor that collided has it or not. It’s less reliable for me, but it might be my personal preference.