private void RotateAxisOfSelf (SelfAxis SelfAxis, int speed=2)
{
The switch (selfAxis)
{
Case SelfAxis. X:
This. The transform. The Rotate (new Vector3 (1 * Time. The deltaTime * speed, 0, 0));
break;
Case SelfAxis. Y:
This. The transform. The Rotate (new Vector3 (0, Time. DeltaTime * speed, 0));
break;
Case SelfAxis. Z:
This. The transform. The Rotate (new Vector3 (0, 0, 1 * Time. DeltaTime * speed));
break;
Default:
This. The transform. The Rotate (new Vector3 (1 * Time. The deltaTime * speed, 0, 0));
break;
}
}
From pixyz fang binxing export file to import into Unity after
Hang script on to run on one part, but the part not around its own axis rotation, but the parent axis rotate, any solution for T.T
This is the appearance of the original
This is the start of screenshots, is not in the position of the original object