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?
public void syncObject()
{
ClassName actor = getOneIntersectingObject(ClassName.class);
if (actor != null)
{
actor.setLocation(getX(), getY());
actor.setRotation(getRotation());
}
}