dallasstar
New member
I've been learning D3D for a day or two now, but I can't figure out how to apply a transformation to JUST ONE OBJECT rather than the entire world (i've been applying the transformation to the world matrix).
could somebody help me out?
here's my case:
I have 3 cubes that are all generated at the origin. I want one of them to be at the top left, another at the bottom left, and one at the middle left. However, if I apply a transformation to the world matrix, it translates all 3 cubes at once, so there's no way i can get them to their proper locations. I know that I could just make the original locations of the cubes where I want them to be, but if I did that, then I would not be able to rotate them properly because all rotations are done with respect to the origin .
Any help?
could somebody help me out?
here's my case:
I have 3 cubes that are all generated at the origin. I want one of them to be at the top left, another at the bottom left, and one at the middle left. However, if I apply a transformation to the world matrix, it translates all 3 cubes at once, so there's no way i can get them to their proper locations. I know that I could just make the original locations of the cubes where I want them to be, but if I did that, then I would not be able to rotate them properly because all rotations are done with respect to the origin .
Any help?