Source Code Question: Angles
Tue, 2009-03-03 20:30
Hi guys,
first of all: great game! Hedgewars rocks!
Just for fun I browsed the source code a little bit and came across several sections using trigonometric functions.
Your sine table ranges from 0 to 1024 and angles seem to be in [0, 2048] (correct me if I'm wrong). What's your formula for converting normal angles (e.g. degrees)? Moreover I don't really get the resulting values in the sine table? How are these converted?
Why do you use sine tables? Is there really a noticeable performance benefit?
Thank you
Tim
I can't answer this question (game/graphics designer here) but if you drop by the IRC channel you'll find a number of people who can answer these questions and help you out.