working transformation with cam position