Hello everybody,
i want to create some kind of robot arm, it's need to be very simple,
so i decided to create this from cubes - few of them i want to
transform separetaly from another. I know how to create this cube, how
to transform rotate in different ways - buffers, vertices, meshes. I'd
like to use mesh, it's the simplest way but i don't know how to create
one mesh on the exact position on another. And somehow stick them
together?
I had an idea like this:
mesh1.DrawSubset(0);
dev.Transform.World = Matrix.Translation(5.0f, 18.0f,
4.0f);
mesh2.DrawSubset(0);
dev.Transform.World = Matrix.Translation(5.0f, 10.0f,
4.0f);
mesh3.DrawSubset(0);
dev.Transform.World = Matrix.Translation(5.0f, 6.0f, 4.0f);
mesh4.DrawSubset(0);
(translation is a size of prevoius box)
But it's not working any way i'd like to.
Any ideas? Any sample code, could help me?