Game Development Community

3D2E Vehicle Dismounting

by Bryce · in Torque Game Engine · 08/06/2007 (10:49 am) · 2 replies

Hi Everyone,
I was flipping through this book in a bookstore and happened to notice an error that some people may want to watch out for. On page 820, the code for vehicle dismounting is shown. There is a variable (I think it was vec[4] ) that uses two minus signs where there should only be one.

Just throwing that out there :-)

#1
08/07/2008 (7:15 am)
Are you sure that's right? Because I know ++ is used for incrementing and -- is used for decrementing. Maybe they meant to decrement?
#2
08/13/2008 (4:31 am)
Since it is a value for a vector, a double minus seems wrong.