public void WorldPositionQuery(IInBitStream bitstream, ref WorldPositionQuery data)
        {
            var position = bitstream.ReadVector3f(24, 2400);

            data.position = coherenceToUnityConverters.ToUnityfloat3(position);
            var radius = bitstream.ReadFixedPoint(24, 2400);

            data.radius = coherenceToUnityConverters.ToUnityfloat(radius);
        }
示例#2
0
        public uint Read(ref GenericFieldVector3 data, IInBitStream bitstream)
        {
            var propertyMask = (uint)0;


            if (bitstream.ReadMask())
            {
                var coherenceField = bitstream.ReadVector3f(24, 2400);
                data.Value    = coherenceToUnityConverters.ToUnityfloat3(coherenceField);
                propertyMask |= 0b00000000000000000000000000000001;
            }

            return(propertyMask);
        }
示例#3
0
        public uint Read(ref WorldPositionQuery data, IInBitStream bitstream)
        {
            var propertyMask = (uint)0;


            if (bitstream.ReadMask())
            {
                var coherenceField = bitstream.ReadVector3f(24, 2400);
                data.position = coherenceToUnityConverters.ToUnityfloat3(coherenceField);
                propertyMask |= 0b00000000000000000000000000000001;
            }

            if (bitstream.ReadMask())
            {
                var coherenceField = bitstream.ReadFixedPoint(24, 2400);
                data.radius   = coherenceToUnityConverters.ToUnityfloat(coherenceField);
                propertyMask |= 0b00000000000000000000000000000010;
            }

            return(propertyMask);
        }
示例#4
0
        public void Translation(IInBitStream bitstream, ref Translation data)
        {
            var value = bitstream.ReadVector3f(24, 2400);

            data.Value = coherenceToUnityConverters.ToUnityfloat3(value);
        }
        public void GenericScale(IInBitStream bitstream, ref GenericScale data)
        {
            var Value = bitstream.ReadVector3f(24, 2400);

            data.Value = coherenceToUnityConverters.ToUnityfloat3(Value);
        }