Physics Raycast

I Want to make the cube red The ray cast from empty to empty.001
It don’t.

How to I fix this?

The cube that is hit by the physics ray has to have rigidbody enabled (in the usual Blender physics tab). If you don’t want the cube to move because off physics interactions turn off “Dynamic” and if you don’t even want other objects to collide with it turn off “Dynamic” and turn on “Trigger”.

Ow thanks,
It works.