private AddToManagersBottomUp ( Layer layerToAddTo ) : void | ||
layerToAddTo | Layer | |
return | void |
private void AddToManagersBottomUp(Layer layerToAddTo)
{
// We move this back to the origin and unrotate it so that anything attached to it can just use its absolute position
float oldRotationX = RotationX;
float oldRotationY = RotationY;
float oldRotationZ = RotationZ;
float oldX = X;
float oldY = Y;
float oldZ = Z;
X = 0;
Y = 0;
Z = 0;
RotationX = 0;
RotationY = 0;
RotationZ = 0;
X = oldX;
Y = oldY;
Z = oldZ;
RotationX = oldRotationX;
RotationY = oldRotationY;
RotationZ = oldRotationZ;
}