Updated rotation functions: set/getquaternion, implemented slerp for rotation sync.