Monday, May 11, 2009

make a object stop after sometime

if (bullet.GetLinearVelocity().Length() < 0.001){
stoppedForFrames += 1;
}
else{
stoppedForFrames = 0;
}
if (stoppedForFrames >= 15){
trace("stopped");
}

No comments:

FEEDJIT Live