mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-13 03:33:48 +00:00
Fixed angle conversion issues
Fixed a variable name and method that should be const. Also fixed several angle conversion functions that didn't convert the angle correct.
This commit is contained in:
parent
c7e0d83587
commit
ad267f0505
3 changed files with 43 additions and 28 deletions
|
|
@ -163,7 +163,7 @@ EulerF MatrixF::toEuler() const
|
|||
const F32 * mat = m;
|
||||
|
||||
EulerF r;
|
||||
r.x = mAsin(mat[MatrixF::idx(2,1)]);
|
||||
r.x = mAsin(mClampF(mat[MatrixF::idx(2,1)], -1.0, 1.0));
|
||||
|
||||
if(mCos(r.x) != 0.f)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue