Ejemplo n.º 1
0
        public override void CreateCosmeticChildren(ComponentManager Manager)
        {
            base.CreateCosmeticChildren(Manager);

            if (SharedMesh == null)
            {
                SharedMesh = AssetManager.GetContentMesh("Entities/Rail/sm_minecart");
            }

            AddChild(new MeshComponent(Manager,
                                       Matrix.Identity,
                                       new Vector3(1.0f, 1.0f, 1.0f),
                                       new Vector3(0.0f, 0.0f, 0.0f),
                                       SharedMesh,
                                       "Entities/Rail/minecart_tx"))
            .SetFlag(Flag.ShouldSerialize, false)
            .SetFlag(Flag.RotateBoundingBox, true);
        }
Ejemplo n.º 2
0
        public override void CreateCosmeticChildren(ComponentManager Manager)
        {
            base.CreateCosmeticChildren(Manager);

            if (SharedMesh == null)
            {
                SharedMesh = AssetManager.GetContentMesh("Entities/Furniture/sm_anvil");
            }

            AddChild(new MeshComponent(Manager,
                                       Matrix.CreateRotationY(0.25f),
                                       new Vector3(1.0f, 1.0f, 1.0f),
                                       new Vector3(0.0f, 0.0f, 0.0f),
                                       SharedMesh,
                                       "Entities/Furniture/tx_anvil"))
            .SetFlag(Flag.ShouldSerialize, false)
            .SetFlag(Flag.RotateBoundingBox, true);
        }