Caelum points axis Z towards South instead of North
Bug #307937 reported by
Alexey Torkhov
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ember |
In Progress
|
Medium
|
Alexey Torkhov |
Bug Description
Caelum has the following code snippet:
res.z = -Math::Cos (azimuth) * Math::Cos (altitude); // North
res.x = Math::Sin (azimuth) * Math::Cos (altitude); // East
res.y = -Math::Sin (altitude); // Zenith
as azimuth measured clockwise from North = 0, then, if we look towards North, res.z is negative, it means it points to South. To solve it, res.z and res.x should be mirrored.
If this'll be confirmed it should be reported upstream.
tags: | added: caelum |
To post a comment you must log in.
Hmm, are you sure this isn't caused by the conversions between WF and Ogre coord space?
If so, it might very well be that it's not possible to change without patching the Caelum code in the way you've already done.