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:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
FEEDJIT Live
No comments:
Post a Comment