Exemple #1
0
        public void Settings_QuaternionEuler(PropertyFloatCompressionSettings x, PropertyFloatCompressionSettings y, PropertyFloatCompressionSettings z, bool strict)
        {
            RotationEnabled     = true;
            RotationCompression = PropertyQuaternionCompression.Create(PropertyVectorCompressionSettings.Create(x, y, z, strict));

            if (RotationCompression.Euler.X.BitsRequired > 0)
            {
                RotationMask |= 1;
            }
            if (RotationCompression.Euler.Y.BitsRequired > 0)
            {
                RotationMask |= 2;
            }
            if (RotationCompression.Euler.Z.BitsRequired > 0)
            {
                RotationMask |= 4;
            }
        }
Exemple #2
0
 public void Settings_QuaternionEuler(PropertyFloatCompressionSettings x, PropertyFloatCompressionSettings y, PropertyFloatCompressionSettings z, bool strict)
 {
     Compression = PropertyQuaternionCompression.Create(PropertyVectorCompressionSettings.Create(x, y, z, strict));
 }
Exemple #3
0
 public void Settings_Quaternion(PropertyFloatCompressionSettings compression, bool strict)
 {
     RotationEnabled     = true;
     RotationCompression = PropertyQuaternionCompression.Create(compression, strict);
 }
Exemple #4
0
 public void Settings_Quaternion(PropertyFloatCompressionSettings compression, bool strict)
 {
     Compression = PropertyQuaternionCompression.Create(compression, strict);
 }