Rotate Constrained Actor
I have two actors who are constrained to each other.
Tested constrain by
Touch - interpolate to position X. Both actors move - works fine.
I really want to be able to rotate the actors.
Tried - Touch - rotate, Touch Rotate to Angle, Touch Rotate to Position.
Only the actor with the Rotate behavior rotates NOT the constrained actor.
Ideas appreciated.
Tested constrain by
Touch - interpolate to position X. Both actors move - works fine.
I really want to be able to rotate the actors.
Tried - Touch - rotate, Touch Rotate to Angle, Touch Rotate to Position.
Only the actor with the Rotate behavior rotates NOT the constrained actor.
Ideas appreciated.
Comments
In the "boss" actor have a rule:
Constrain attribute: otherActorsAngle To: self.Rotation
In the "constrained" actor have a rule:
Constrain attribute: self.Rotation To: otherActorsAngle
otherActorsAngle
Is that another real attribute or the BossActorAngle?
Thanks
This image is the starting point
http://i56.tinypic.com/w6plxc.png
And this image is after the rotation. You can see that the actors don't stay relative to their starting position. i need them to keep them as they started but just rotated.
http://i55.tinypic.com/28u4imc.png
Are they oriented the same way? (Both are oriented with rotation at zero (facing right) to start with?)
But if you look at the red box it does NOT stay flush with the white box. It seems to "slide" down.
Is it rotating around its center axis?
Is there a way to make them both rotate only around the center axis of the white box?
Otherwise should I make a one piece actor to rotate?
Yes -- if both objects are always going to be welded to each other by using behaviors, then it might be easier to create a "one piece actor" to rotate.