Could you please consider implementing SetMatrix and GetMatrix methods for entities as Euler angles are very problematic in many situations? I tried converting between the two but the results are usually unpredictable. This would make life so much easier.
Sorry to bump this one so quickly. I’ve just read in the manual that “Don't change entity angles more than once per frame. This could otherwise cause problems with intermediate rotations because Euler angles are internally converted to a rotation matrix resp. a quaternion.” Could this rotation matrix be accessed externally?
Yes, it could theoretically - you can access it in a shader. But outside the direct rendering node the matrix can change anytime, and it's also used for collision detection, so accessing the matrix would create unwanted side effects.
Thanks for that. I’m actually able to read the matWorld matrix for a given entity by setting an event and using the ENABLE_RENDER flag, however it doesn’t work the other way round ie: setting the matrix. Is there a way to write to that matrix or is it read only?