Take the 2-minute tour ×
Game Development Stack Exchange is a question and answer site for professional and independent game developers. It's 100% free, no registration required.

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 ?

share|improve this question
2  
Are you aware of the tangent function and, incidentally, the inverse tangent? –  Sam Hocevar Dec 12 '11 at 12:49
    
No, I wasn't :) Thanks for the heads up. –  George Profenza Dec 12 '11 at 15:25
1  
When you find out your answer, you should post it as an answer to this question so future visitors can learn from your efforts. –  Tetrad Dec 12 '11 at 16:43
add comment

1 Answer 1

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).

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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