Flipping Cards

The task at hand is an array of cards that should be flipped by 180 degrees. The solution should be as flexible and as easy to setup as possible.

Creating the array is pretty easy. Create a new box object, scale it down a little and for the looks apply two different shaders to each side. Duplicate this card like 9 times in X direction and the resulting 10 objects again 9 times in Y direction.

Select the cards and run RampRotate.

If everything went fine you should now have 100 cards attached to 100 ramps and one called masterRamp. All ramps get their info from this master ramp. Animating the masterRamp drives all others as well. The rotation around Z is attached to the red value of the ramp. The higher the red the bigger the rotation.

If you want the rotation to be different than Z just edit the script at the location before the ROTATION AXIS comment.

Cards

Leave a Reply

You must be logged in to post a comment.