I’m trying to rotate a model around its Y axis.
All code that I see setting a model position uses Cesium.Transforms.eastNorthUpToFixedFrame()
I though about multiplying the result of that with a rotation matrix, but rotation matrices are 3x3 and this returns a 4x4 matrix.
So I tried using the following code:
var rotMat = Cesium.Matrix3.fromRotationY(this._rotation);
targetObject.modelMatrix = Cesium.Matrix4.fromRotationTranslation(rotMat, this._position, this._transformMatrix);
“this._rotation” is in radians, however the rotations look completly wrong.
Is there another way to do this?