Matrix 4 Problem [beginner]
Posted: Thu Jul 21, 2005 2:55 pm
Hello!
I want to translate the following c++ code into vb.net:
->
The multiplication of m and n does not work in vb because the operator wasn't made for multiplication of "matrix4".
Do you have any suggestions how to solve my problem?
Thanks
Thorben Linneweber
I want to translate the following c++ code into vb.net:
Code: Select all
//Rotate a node on its own X,Y,Z axises
void localRotate(ISceneNode *node, vector3df vRotation){
matrix4 m = node->getRelativeTransformation();
matrix4 n;
n.setRotationDegrees(vRotation);
m *= n;
node->setRotation( m.getRotationDegrees() );
}
Code: Select all
Private Sub localRotate(ByVal node As Irrlicht.Scene.ISceneNode, ByVal vRotation As Irrlicht.Core.Vector3D)
Dim m As Irrlicht.Core.Matrix4 = node.RelativeTransformation()
Dim n As Irrlicht.Core.Matrix4
n.SetRotationDegrees(vRotation)
m = n * m
End Sub
Do you have any suggestions how to solve my problem?
Thanks
Thorben Linneweber