I am trying to animate a door to swing open onclick.
I have drawn the simplest rectangle and pushed it into a 3d shape.
I have made this shape into a component and set its axes to the corner that I wish it to hinge at.
I have then created a dynamic attribute of onclick: animate(RotZ,0,90).
This works well, but the door swings the wrong way.
If I change the onclick to read: animate(RotZ,0,-90), then click the door, it opens the right way, but the second click has not visual affect, but there is now an attribute called -90 who’s value changes each time I click from 0 to -90 and back.
Can anyone offer a suggestion on how I can resolve this?
Door.skp (160.2 KB)