I'm trying to rotate the planes of a Rubik's cube using RotateAround, my problem is in determining the axis vector that a certain plane needs to rotate around, I'll always need to use the vector that passes through the center gameobject but using Vector3.up/ down/ right/left is useless especially if the cube rotates and changes position, any suggestions? :\
for instance, this is the line I use to rotate the green plane, green is the center gameobject in this case
Parent.transform.RotateAround(green.transform.position,WHAT AXIS VECTOR?,100*Time.deltaTime);