Godot Version
v4.2.2.stable.official [15073afe3]
Question
I have CharacterBody3D that has a RayCast3D as a child as a token. When I click on the token it “picks up” the CharacterBody3D (increases global_position.y to .2). Then, as I the mouse around the token follows my mouse. That’s all working great. Now I need the RayCast3D on the picked up token to detect when it is over another token.
I have set the debug to show collisions and this is what I get
As you can see the two tokens are both colliding, and the RayCast3D is passing through the lower token. But when I try and get the collider I get a <Object#null> instead of the object the raycast is pointing through. All tokens are on Layer 1 and Mask to Layer 1. The “ground” is on layer 4 so as not to interfere.
I just need the upper token being moved by my mouse cursor to detect when it or the raycast collides with the lower “set down” token.