- Joined
- Feb 2, 2012
- Messages
- 1,667
- Reaction score
- 104
- Points
- 78
Hi all,
Just to tell that I spotted an error in OribterApi.h. It came out because my matrix4 - vector4 multiplication was not right and I was getting crazy, so i tracked down this:
from OrbiterApi.h
The red should be A.m32, not m23, so I suggest to those who are using this to implement their version until this is getting corrected by martin.
Note: I found it in both Orbiter 2016 version and Orbiter BETA version of OrbiterApi.h
Cheers
Fred
Just to tell that I spotted an error in OribterApi.h. It came out because my matrix4 - vector4 multiplication was not right and I was getting crazy, so i tracked down this:
from OrbiterApi.h
Code:
inline VECTOR4 mul (const MATRIX4 &A, const VECTOR4 &b)
{
return _V (
A.m11*b.x + A.m12*b.y + A.m13*b.z + A.m14*b.w,
A.m21*b.x + A.m22*b.y + A.m23*b.z + A.m24*b.w,
A.m31*b.x + [B][COLOR="Red"]A.m23*b.y [/COLOR][/B]+ A.m33*b.z + A.m34*b.w,
A.m41*b.x + A.m42*b.y + A.m43*b.z + A.m44*b.w);
}
The red should be A.m32, not m23, so I suggest to those who are using this to implement their version until this is getting corrected by martin.
Note: I found it in both Orbiter 2016 version and Orbiter BETA version of OrbiterApi.h
Cheers
Fred
Last edited: