Jump to content
  • Advertisement


This topic is now archived and is closed to further replies.



This topic is 6182 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

You can stretch (or shrink) an axis by simply multiplying (or dividing) it by the factor that you want. So, if I were to write

x'' = 2x

where x is my old variable and 2 is the stretch factor I want, I would get a new axis where every point in the old x axis is located twice the distance from the axis in my new variable. Then use this new variable for performing computations on your object.

You can extend this to multiple dimensions. If you want to stretch all dimensions equally, then use the same scaling factor. If however, you want to distort your object, then you can stretch different axes by differing amounts.



Share this post

Link to post
Share on other sites

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!