I am making a game where one object needs to get the rotation of another. I want to have one object (a banana) put its rotation into the variable and have the 2nd object access it and set its own rotation to match.
ex:(pseudo code)
Banana:
Var = getRotation()
2nd object:
setRotation(Var)
I think I could do this by defining the variable in a common super class, but I am not sure how this would work.
