Original Post
Hi all,
I am just trying to rotate a ball randomly within four walls.
So far, did the following tasks :
1. created the window (four walls)
2. initialized directx object and device
3. loaded a ball.bmp into the window ( through backbuffer and surface)
Now,
1. how can i rotate the ball in a random fashion.?
2. provide collision detection with the walls.
(have read some tutorials on CD in articles & resources section, but could not get an clear idea on how to use it with the objects in the code. I would appreciate if someone get me any sample code on CD along with the main program)
Thanking you,
aras
I am just trying to rotate a ball randomly within four walls.
So far, did the following tasks :
1. created the window (four walls)
2. initialized directx object and device
3. loaded a ball.bmp into the window ( through backbuffer and surface)
Now,
1. how can i rotate the ball in a random fashion.?
2. provide collision detection with the walls.
(have read some tutorials on CD in articles & resources section, but could not get an clear idea on how to use it with the objects in the code. I would appreciate if someone get me any sample code on CD along with the main program)
Thanking you,
aras