Exemplo n.º 1
0
        /// <summary>
        /// Check change rotation box object
        /// </summary>
        /// <param name="a"></param>
        /// <param name="b"></param>
        /// <param name="dtAngel"></param>
        /// <returns></returns>
        public static bool CheckChangeBoxRotation(this JediumTransformMessage a, Transform b, float dtAngel)
        {
            Vector4 quaternion = new Vector4(b.rotation.x, b.rotation.y, b.rotation.z, b.rotation.w);

            return((Mathf.Abs(Vector3.Distance(a.GetRotationFromBox(), quaternion)) > dtAngel) ? true : false);
        }