Ok, i will test this quickly.
but the first thing i can see is that you are only returning 1 value.
it should be "hitID,posX,posY,posZ = physics.ray.....()", this might have something to do with it.
Watch out when raycasting to a cameras position as the line may look like it isn't in the center and slightly offset, but it will be lol
Best thing to do is disable the cameras and check raycasts are hitting that way, then enable the camera
Edit: rayFromPointToPoint() is working, but it is not colliding. Looks like i forgot to normalise the direction before sending it through physics. Also i have flipped the direction as it was needing a negative range to point at the target.
Edit: The ID to ID was working fine but suffered the same direction not being normalised error.
I will send you a pm in 5-10 mins
Edit: PM Sent