Flipping an Object

The process of flipping an object works the exact same way as resizing or scaling, with the exception that you use negative numbers as your x, y, or z values. In fact, you can resize, reshape, and flip your objects all at the same time. Just decide along which axis you’d like to reshape and resize your object, and then change the value to a negative number to flip the object. Here’s an example of the code you would use to flip your cone along the z axis (see Figure 5.15).

Figure 5.15. We flipped this cone on the z axis by using the command ScaleEntity cone, 1,1,-1.


cone = CreateCone()
PositionEntity cone,0,0,5
ScaleEntity cone, 1,1,–1

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.133.130.199