I'm trying to automatically place an actor in my world, but I want the actor to be rotated. I can't create another actor in the rotated form, I have to actually rotate the original actor in my world code. Any advice?


// instead of addObject(new Actor(){}, x y); // use this Actor actor = new Actor(){}; actor.turn(180); addObject(actor, x, y);
public WallSize45_1(boolean rotated) { if (rotated) setRotation(90); }
addObject(new WallSize45_1(true), ....
// instead of addObject(new Actor(){}, x y); // use this Actor actor = new Actor(){}; actor.turn(90); // edited from 180 above addObject(actor, x, y);