Example #1
0
        public bool UseModelForCollision = false; // true: generate collision shape from mesh data
        // 0x02 bytes padding

        public GeneralStatic(ObjectHeader header, BinaryReader reader) : base(header, reader)
        {
            AtomPhysicsData      = new AtomPhysicsData(reader);
            ModelFilename        = reader.ReadStringFileName();
            IsModelUnique        = reader.ReadByte() > 0;
            UseModelForCollision = reader.ReadByte() > 0;
        }
Example #2
0
 public OctreeModel(ObjectHeader header, BinaryReader reader) : base(header, reader)
 {
     this.VOMFilename     = reader.ReadStringFileName();
     this.Physics         = new AtomPhysicsData(reader);
     this.RenderLeafs     = reader.ReadInt32() != 0;
     this.ShowVisLeaf     = reader.ReadInt32() != 0;
     this.DebugZBuffer    = reader.ReadInt32() != 0;
     this.TriangleCounts  = reader.ReadInt32() != 0;
     this.LockVisibility  = reader.ReadInt32() != 0;
     this.CyclePVSLeafs   = reader.ReadInt32() != 0;
     this.DrawNonPVSLeafs = reader.ReadInt32() != 0;
 }