Compute raycast only once for engine activation