directX game - Programmers Heaven

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.

directX game

I am making a car game in directX 8. It has a birds eye view like Grand Theft Auto. Anyway i got the car movement going but now when the car moves foward a bit and i turn the car doesn't turn from its center but the screens center. Can someone plz help. I have put up a link to my script so u can look at the code. It's made in Visual C++ and is 100kb in size.:-)


  • IllcoIllco Posts: 382Member
    Didn't seek out the code (cant do that from here); but you might want to know that rotation always go around (0,0). So if you want to translate something that is at (x,y) with x != 0 != y You should translate the whole thing to (0,0), perform the rotation and translate it back. In fact, what you want is to translate the rotation axis to (0,0) because sometimes you don't want to rotate around the center.

Sign In or Register to comment.