Head Hitbox don't appear red while aiming at it, but everything works fine

finaratic

Member
1692022220215.png
So i created a head sphere collider hitbox as the child of head object in the rig, since if i use it in the Colliders transform head collider position is not right while enemy is animated, but the crosshair becomes red on head. But somehow when i aim at the enemies head crosshair appear white as usual, only enemies bodies have red crosshair. How should i fix it?
 
Last edited:
The crosshairs monitor will turn the crosshairs red when the raycast overlaps with a layer specified in the layer mask. For the head you should change it so it includes the head collider layer.
 
my layers are correct, booth CapsuleCollider and headCollider are on the Enemy layer :(
While aiming at the body it becomes red, but head dont
 
it works right with the color in the Colliders parent transform and not if i put it in the rig, but it should be there because head collider tracking will be correct if you put it in the rig.
 
On the CrosshairsMonitor you can draw a debug ray to see what object it is hitting. It will change colors based on the first collider hit.
 
Top