Added camera orientation adjustment for collision rays