Rotation and collision checking