Forgive me, since it's trivial to rotate actors in the editor I assumed no one would think I was asking about that.
I know about the "rotate to" behavior, but I only want to active this IF it's not at a particular angle. How do I make a check for that in an actor's rule.
As in: If actor's angle is not X, THEN rotate to angle X.
@Tatiang I don't want to constrain it, since this actor sometimes rotates, and after that behavior it's easy to correct with "rotate to". Sometimes, for some mysterious reason, the angle changes without my meaning to.
So I would like the actor to fix itself immediately should that happen.
Is the only way sending vectortoangle to a attribute and making a check for that? I just thought one could using something like self.angle in a rule.. but I can't find it.
Never mind, I figured it out. I didn't follow that "rotation" could be addressed in the actor itself. Working 24/7 for a week has taken its toll. Thanks.
Forgive me, since it's trivial to rotate actors in the editor I assumed no one would think I was asking about that.
You'd be surprised.
I know about the "rotate to" behavior, but I only want to active this IF it's not at a particular angle. How do I make a check for that in an actor's rule.
As in: If actor's angle is not X, THEN rotate to angle X.
Try this: If actor's angle is not X, THEN rotate to angle X.
Comments
Something like that?
I know about the "rotate to" behavior, but I only want to active this IF it's not at a particular angle. How do I make a check for that in an actor's rule.
As in: If actor's angle is not X, THEN rotate to angle X.
So I would like the actor to fix itself immediately should that happen.