PDA

View Full Version : moving boxes in D3D



hammer
14-06-2004, 07:59 AM
okay so i have a d3d envoriment and 2 boxes how do i move them?
the best thing that i accomplished was to move both of the boxes, but i want to move only 1 of them.

Clootie
15-06-2004, 09:12 PM
1) Move 1 box (SetTransform)
2) Draw it (DrawPrimitive)
3) once again SetTransform
3) draw second box...

- now you have two boxes moved independently