I found a free model I can play with of nice quality.
I have the following situation:
Like you can see the models initial rotation is wrong, it should be facing the direction of brush.
This code can fix the rotation for me:
ship->SetRotation(90,90,0, true);
But then I have issue with ship movement:
if(window->KeyDown(Key::A)) {
ship->Move(-move_speed,0,0);
}
if(window->KeyDown(Key:)) {
ship->Move(move_speed,0,0);
}
if(window->KeyDown(Key::S)) {
ship->Move(0,0,-move_speed);
}
if(window->KeyDown(Key::W)) {
ship->Move(0,0,move_speed);
}
Movement would be in the wrong then directions. I could also adjust this but obviously it's not the right way. I am aware you can rotate it in some 3D software like blender, but I'm trying to avoid it right now.
and generally what would be best practice for such cases?