I was wondering if there was a way I could make an object and attach it onto another object so I could make it rotate on the same axis as the other object. Or is there another way to do this?


1 2 3 4 5 6 7 8 9 | public void syncObject() { ClassName actor = getOneIntersectingObject(ClassName. class ); if (actor != null ) { actor.setLocation(getX(), getY()); actor.setRotation(getRotation()); } } |