I've got two sub classes of the class actor and I want to access the rotation of one class from another. how is that possible?
Classes do not have a rotation -- but, Actor objects created from a class (a.k.a. instances of a class) do. For one actor to "find" another one, they both would need to be in the same world. The getWorld Actor class method returns the World object an actor is in. The getObjects World class method returns a List object containing all instances of the given class that are in a world. The list should not be empty if an actor of the given class was in the world and the get List class method returns an element from the list. The object returned from the list may need to be cast as an Actor object before the getRotation Actor class method can be called on the extracted element. Let us say you had an Actor1 and an Actor2 class, both subclasses of Actor. Then, in code: