Beispiel #1
0
        public NiAVObject(BinaryReader reader, NiFile file) : base(reader, file)
        {
            Flags = reader.ReadInt16();

            //
            //    Get position
            //
            Position = new NiVector3(reader, file);

            //
            //    Get rotation
            //
            Rotation = new NiMatrix3X3(reader, file);

            //
            //    Get scale
            //
            UniformScale = reader.ReadSingle();

            //
            //    Get properties
            //
            Properties = new int[reader.ReadInt32()];
            for (var i = 0; i < Properties.Length; i++)
            {
                Properties[i] = reader.ReadInt32();
            }

            //
            //    Get collition object
            //
            CollitionObject = reader.ReadUInt32();
        }
Beispiel #2
0
 public NiTransform(BinaryReader reader, NiFile niFile) : base(reader, niFile)
 {
     Rotation = new NiMatrix3X3(reader, niFile);
     Position = new NiVector3(reader, niFile);
     Scale    = reader.ReadSingle();
 }