[ODE] XODE - should angles be in degrees or radians?

Jon Watte hplus-ode at mindcontrol.org
Fri Mar 19 16:25:06 MST 2004


> Maybe we really do need both representations.  As discussed, radians are
> superior for serializing an ODE scene as they are "native" to ODE, but
> editors (including just using a text editor) tend to use degrees for
> human readability and precision.

An editor typically will round degrees to one, or perhaps two, decimal digits. This is still within the precision of a "float" and thus converting to radians and back to degrees should retain the same value in degrees to two decimal digits (plus the three leading digits).

> Considering the fact that converting between degrees and radians is so
> ridiculously simple - would dual support really be a burden?

Yes, because someone WILL write a reader for one of these files by just opening an existing file and inspecting it, and once that file loads, he'll call it "done" and post it on gamedev.net.

Cheers,

			/ h+





More information about the ODE mailing list