Hi, I was wondering, is there a node to give a condition on the type of object I’m colliding with, the node has something like, world static, world dynamic and the rest, I just can’t recall what it’s called. Thanks
You can tell if it’s a certain kind of actor ( by casting ), but I don’t know if you can find out it’s collision class…
Okay thanks
You can line trace for certain object types…
I tried using that method but I couldn’t get the exact objects I wanted, I’m after world static, world dynamic and vehicle
hi @ValLevi
I think this is the droids you… i mean node you are looking for
GetCollisionObjectType
drag out of “Other Comp” on your event hit (as long as you are triggering hits that is)
it will give you an ECollisionChannel enum that you can either do a straight forward boolean equal check or even Switch on ECollisionChannel might be better.
BTW this works with custom channels too it shows them in the Switch Node also.
Is it possible to see a blueprint reference of this
Thank you, I kept on dragging of the other node instead of other comp😅
So how do I implement it as a condition?
what you mean by condition? the swicth node lets you drag off code based on which of those you wish to actually capture. So if its a vehicle drag off the vehicle exec pin on the switch node and do what you need to do
It’s working thanks
good stuff! happy coding!