changed projection/collision checking order