I can't link rotation to both X position and Y position of another layer
I am using this expression for rotating some wheels along with the movement of the vehicle body:
comp("compositionName").layer("layerName").transform.position[0]
Now, that would be perfect if I had a car that moves horizontally, but my vehicle is also moving along vertical walls or inclined walls (and upside down).
That's why I need my wheels to rotate when the body layer's Y position and X position changes. If it's not possible to consider both the axis at the same time, I would like to consider X as a priority, but if that is still, to check Y position.
Thanks!
