Sphere Trace finds character when done from one object but not another.

I’m super confused here.

When I sphere trace from a blueprint on the player vr pawn it finds the character.

same code in another blueprint does not hit anything. I can see the sphere trace overlapping the exact same location using the debug in both scripts.

As far as I can tell they are identical. Yet one will find the character the other hits nothing. Debugging the first branch on the bottom image always is false, even though the sphere is visibly overlapping the same exact space. What gives?

Hey @TheDogtoy!

Hmm. Did you try turning off ignore self? We’re going to need more context here. It’s hard to tell because yes- it doesn’t make sense that it wouldn’t detect in a vacuum- we need to enlarge scope. We need more details of what the second object might be, what is needing to be detected, et cetera. You say it finds “the character”, is this the player? Another character class object in the world?

Get back to us with a little more info and let’s see if we can’t figure this out. :slight_smile:

The second object is a sphere in the world with a component on it that has this sphere cast script in it. I did not try turning off Ignore self yet.

I can make the sphere collide with the character if I wanted to do things that way but the sphere cast just cannot find the character.


My understanding is that it shouldn’t matter WHAT object the sphere cast is on or that objects settings. I see the debug sphere in the world when at the correct location when the script is triggered.

For my use case I could just not use the sphere cast and do collision instead, but I’m just so stumped as to why it wouldn’t work.

In general, I’m finding PHAT collision behavior on characters odd so maybe related? I’m using a Physics Asset Override on the skeletal mesh for the character. As a result the asset collides as if it was a “PhysicsBody” regardless of what I do to the mesh in the blueprint.
e.g. if setup like this

where I would expect it to ignore trace channels the Sphere cast from the VR device still finds the character 0_0

The capsule is setup as a pawn (I also tried making it get hit by all trace channels but it made no difference)

Maybe I’m not understanding something about the PHAT? I find it odd that there is no way to change what layers the physical asset collides with as the colliders on that asset cannot be set to be on a custom collision layer for example.

Thanks for the response.