Exemplo n.º 1
0
        public Robot(float baseX, float baseY, float baseZ)
        {
            this.baseX = baseX;
            this.baseY = baseY;
            this.baseZ = baseZ;

            ex = baseX * 0.1f;
            ey = baseY * 0.1f;
            ez = baseZ * 0.1f;


            pie1 = new Cubo(ex, ey, ez);


            matrix = new Matrix4[] {
                Matrix4.Identity
            };
        }
Exemplo n.º 2
0
        public Silla(float baseX, float baseY, float baseZ)
        {
            this.baseX = baseX;
            this.baseY = baseY;
            this.baseZ = baseZ;

            ex = baseX * 0.1f;
            ey = baseY * 0.1f;
            ez = baseZ * 0.1f;

            pata1 = new Cubo(ex, baseY, ez);
            pata2 = new Cubo(ex, baseY, ez);
            pata3 = new Cubo(ex, baseY * 0.4f, ez);
            pata4 = new Cubo(ex, baseY * 0.4f, ez);
            barra = new Cubo(baseX, ey, ez);
            mesa  = new Cubo(baseX, ey, baseZ);

            matrix = new Matrix4[] {
                Matrix4.Identity
            };
        }