Thanks again! One more question: any idea how to prevent the corners of the model from intersecting with the wall? The intersection occurs regardless if c_setminmax is set or not. I have enabled the GLIDE flag on both c_move and c_rotate as well.