PDA

Click to See Complete Forum and Search --> : Rotate an Image:DirectX


Dev
Oct 16th, 2000, 10:00 AM
Hi!

I am new with the DirectX tool.I have a picture like a needle and i want that to be rotating like a clock needle.
I have used sin and cos function to move the other end but couln't manage.

Please help me to rotate.

Thanx ahead..

/\/\isanThr0p
Oct 16th, 2000, 10:10 AM
use Direct 3D.

I hate this method, but it seems like it is the only good possibility.
just make a square. Use the needle as texture. grab a sample how to get it under the camera (billboarding but you only need it once if the game is 2D). Than use the built in D3D functions to rotate it.
If you don't liket this method, the next fastest method would be the one you'll get from http://www.ur.co.nz

CU