Original Post
If I have 12 wheels and want to rotate them at once around themselves, how can I do that without having to select each wheel and rotate it or multi-select them?
I am looking to do that so I control all the wheels in DirectX (C++) without having to rotate each one by its name.
I want to use this:
ChangeFrameMatricesByName("wheels", &matWorld); // This line should affect all the wheels with the name (wheel1, wheel2, wheel3, etc...)
and NOT this:
ChangeFrameMatricesByName("wheel1", &matWorld);
ChangeFrameMatricesByName("wheel2", &matWorld);
ChangeFrameMatricesByName("wheel3", &matWorld);
ChangeFrameMatricesByName("wheel4", &matWorld);
ChangeFrameMatricesByName("wheel5", &matWorld);
ChangeFrameMatricesByName("wheel6", &matWorld);
// Etc...
I am looking to do that so I control all the wheels in DirectX (C++) without having to rotate each one by its name.
I want to use this:
ChangeFrameMatricesByName("wheels", &matWorld); // This line should affect all the wheels with the name (wheel1, wheel2, wheel3, etc...)
and NOT this:
ChangeFrameMatricesByName("wheel1", &matWorld);
ChangeFrameMatricesByName("wheel2", &matWorld);
ChangeFrameMatricesByName("wheel3", &matWorld);
ChangeFrameMatricesByName("wheel4", &matWorld);
ChangeFrameMatricesByName("wheel5", &matWorld);
ChangeFrameMatricesByName("wheel6", &matWorld);
// Etc...