What am I doing wrong with Raycast?

this javascript is attached to the only camera on the project, but Physics.Raycast() always returns false.
I have several objects on the project.

function Update () {
	var cam : Camera = camera;
	var ray = cam.ScreenPointToRay (Input.mousePosition);
	var hit : RaycastHit; 
	Debug.DrawRay (ray.origin, ray.direction * 100.0, Color.green);
	
	print("transform before " + (hit.transform==null) );
	
	if ( Physics.Raycast (ray, hit, 100.0) ) {
	    print ("Hit something....");
	}
	
	print("transform after " + (hit.transform==null) );
}

thanks

does not work because my objects don’t have a collider object.

Yup. Raycasts are against colliders on active objects only.