Use set() for raycaster updates
Fix deprecated method calls
Clone player position for raycaster instead of using it directly