示例#1
0
        /// <summary>
        /// Sets all applicable transformation-related properties from the given <see cref="Transform3D"/>.
        /// </summary>
        /// <param name="transform"></param>
        public void SetTransform(Transform3D transform)
        {
            (Vector3f Translation, Quaternion Rotation, Vector3f Scale)transformData = transform.GetAllTransforms();

            SetPosition(transformData.Translation);
            SetRotation(transformData.Rotation);
            SetScale(transformData.Scale);
        }