Exemple #1
0
        /// 移動変位を得ます。
        public Vector3 GetTranslation()
        {
            TPOCommand translation_command = FindTranslationCommand();

            if (translation_command != null)
            {
                return(translation_command.GetVector3());
            }
            else
            {
                return(new Vector3(0, 0, 0));
            }
        }
Exemple #2
0
        /// 拡大変位を得ます。
        public Vector3 GetScaling(out bool inv_scale_on_children)
        {
            inv_scale_on_children = false;
            TPOCommand scaling_command = FindScalingCommand();

            if (scaling_command != null)
            {
                if (scaling_command.Type == TPOCommandType.Scale1)
                {
                    inv_scale_on_children = true;
                }
                return(scaling_command.GetVector3());
            }
            else
            {
                return(new Vector3(1, 1, 1));
            }
        }