Position-dependent rotation