Move object
going quite well ^^ Have rendered 5 white objects in a black area.
(walls + paddles + ball)
Is there any move function? like D3DXMatrixRotY ( something like that )
so I can move the ball =D
please help
going quite well ^^ Have rendered 5 white objects in a black area.
(walls + paddles + ball)
Is there any move function? like D3DXMatrixRotY ( something like that )
so I can move the ball =D
please help
So use D3DXMatrixTranslation to set the x,y,z position of the ball. Note that this assumes that the center of your ball is at (0,0,0) on the ball shape.
Then set the world matrix using SetTransform(D3DTS_WORLD, .... ) call.
For animation across the x axis for example, each frame you vary the x coordiate a little.