Primitive rotation with collision detection