#Do raycasts not detect characterbodies?

1 messages · Page 1 of 1 (latest)

woven canopy
#

The raycast is working on static bodies but not on character bodies from what I can tell. Is there anything I can do to make it detect the character bodies?

#

(collision layer was checked and the characters are on layer 1 along with the raycast3D node)

#

raycast is pointing in the right direction since it's hitting static bodies but reports null for characters

#

Added the area detection on the raycast and it's hitting the area node on the character but not the characterbody within that area so it looks like if you have an area encompassing the characterbody, the raycast won't be able to hit it.

i'm not sure what to do about this since I need the areas on the character to trigger the character actions.

sullen tulip
#

as you can see it does detect a character body 3d

woven canopy
#

I'm not seeing a colored line btw. how'd you get that to show so I can debug?

sullen tulip
woven canopy
#

still not seeing it cast, neither when testing the game nor in editor. I thought it was this red line emitted from the center but after changing the raycasts's target position it didn't change that red line's position so I don't think it's from that, plus that red line disappears when I face to or away from the camera, if that means anything

sullen tulip
#

this is confusing ;-;

woven canopy
#

I can hop in vc and screenshare?

#

i'm in tech support 1

#

nevermind I see it now! It was just short (i'm doing fixed camera so it's hard to see that)

#

(the shortness wasn't the problem, just the reason why I couldn't see it)

#

I got it! Ok so there was confusion about the target position and the source of the raycast. The target position is more like a point on a triangle with the source of the raycast. It determines the angle the cast goes in, not the height of the raycast. Seeing it was the key to figuring this out, so thanks.

sullen tulip
#

yippee