Okay so ill try to be as descriptive as possible so I have a penetration code that sends a line trace to the other side of the object problem if Actor B is close to Actor A then it will hit Actor B reading that side rather than Actor A’s side so what im trying to figure out if it is possible to make it so the line trace will only look for actor A and ignore all other actors except for actor A and Line trace channel wont help because if I make it only read for a specific line trace channel like Actor A only blocks Bullet channel and Actor B ignores it than the bullet wont hit Actor B
…I have to be honest I have no clue what exactly you’re trying to do here.
What do you need this for?
Can’t you just get the distance between two objects? Or do a multi line trace only considering the collision with the one object you are interested in and ignoring all other hit results?
You know Actor A. You have a reference to it I assume? It shouldn’t be hard to just directly interact with it or as I said. Get all hit results between those two actors but ignoring everything that’s not Actor A.
Try using a multiLineTraceForObjects as the TestTrace (multiLineTraceByChannel could also work, but in my blueprint I took the “ForObjects” ← i am not 100% sure) …
get the “ForEachLoop” node and combine the Array element with BreakHitResult and compare the actor of the Penetration “TestTrace” with the actor of your original Trace which caused the impact.
Then you take the hit location from the “TestTrace” and set your original Trace to the new location…
if it is still hitting “object A”, add the ImpactNormal to the new startLocation.
The only problem that I still have is, that if the “Object A” is a kind of hollow collisionMesh, the Trace does not penetrate trough the hollow spacing, instead it continues at the other side…
This would be a problem if the target is hiding in a container and the Trace penetrates, but not trough the inner area of the container…
I hope this helps ![]()
Hi sorry for the late response but I have solved it thank you the line trace by objects worked like a charm thank you