O'Reilly logo

3D Game Programming for Teens, Second Edition by Eric Grebler, Maneesh Sethi

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Velocity

Creating the illusion of velocity can make your game feel more realistic. In real life, most objects don’t just start and stop. Think of racers who sprint in the Olympics. When the gun sounds they aren’t going their top speed instantly; it takes several seconds for them to reach their maximum stride. The same holds true when they cross the finish line. They don’t stop instantly; it takes them quite a few steps to apply the brakes and slow down. By controlling an object’s velocity in your game, you can make its movement seem more realistic. In an earlier chapter, you learned how to have objects move on their own. Here you will learn to increase and decrease their speed or stop on a dime. These types of controls are great for games that ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required