0
\$\begingroup\$

I am working on an isometric game and the designers want to use a different isometric angle than the default one, where I simply had to do a 2/1 offset based on tile size.

I know what the new isometric angle is, how can I work out the w/h ratio to offset my tiles ?

\$\endgroup\$
2
  • 2
    \$\begingroup\$ Are you aware of the tangent function and, incidentally, the inverse tangent? \$\endgroup\$ – sam hocevar Dec 12 '11 at 12:49
  • 1
    \$\begingroup\$ When you find out your answer, you should post it as an answer to this question so future visitors can learn from your efforts. \$\endgroup\$ – Tetrad Dec 12 '11 at 16:43
1
\$\begingroup\$

As @Sam points out, this is essentially all about trig.

tan(angle) = opp/adj implies that if you know the angle and either the width or the height, you can find the other dimension. For example, by rearranging: opp = adj * arctan(angle).

\$\endgroup\$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.