View Full Version : how to move my car?
hello everyone... i have a question and i need help if anyone has any idea how to do it.
i have a program where i imported objects(vehicles) into opengl. now i need to move them. how do i do it? pls help...
01-09-2001, 05:15 PM
Simply put, assign an x, y, and z value to for the location of the car and prior to drawing the car call glTranslate*() to place them wherever.
Ofcourse, you'll want to add a vector for direction, a velocity, and countless other attributes to properly model a "real" car, but for now just focus on translating to a position and drawing the model. To move it, just increment or decrement the position value.
Powered by vBulletin® Version 4.2.3 Copyright © 2016 vBulletin Solutions, Inc. All rights reserved.