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