Computer Graphics

Moderators: Sephiroth
Number of threads: 1242
Number of posts: 2642

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
directX game Posted by flashlaser on 26 Sept 2001 at 11:38 PM

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.

http://home.iprimus.com.au/laser1/cargame.zip

Report
Re: directX game Posted by Illco on 22 Nov 2001 at 3:50 AM
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.




 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.