r1cky17
02-11-2007 07:56:10
hi, i make a racing game.
how to check my car position is between the finish line?
i try like this but it's error compile
thx for the help
how to check my car position is between the finish line?
i try like this but it's error compile
lapStart1 = Vector3(71, 0, 0);
lapStart2 = Vector3(80, 0, 0);
if (mCar->getPosition() >= lapStart1 + mCar->getPosition() <= lapStart2)
error C2676: binary '>=' : 'Ogre::Vector3' does not define this operator or a conversion to a type acceptable to the predefined operator
thx for the help