I'm trying to figure out how to get the angle of a superclass inside the subclass but I need the value to be updated constantly as the superclass also turns constantly so the angle is always changing. Any way to do this?


public class A extends Actor { int offsetX = 0; public void act() { turn(-2); offsetX = (-(getRotation() - 360)); } }
public class B extends A { public void act() { System.out.println(super.offsetX); } }