Jump to content

  • Log In with Google      Sign In   
  • Create Account

Awesome job so far everyone! Please give us your feedback on how our article efforts are going. We still need more finished articles for our May contest theme: Remake the Classics

#Actualgreenzone

Posted 02 August 2012 - 07:23 PM

i am currently trying to model a projectile in Physx. I would like a force to be applied to this projectile every ten seconds. I have never used time functions before.  I currently have access to time using
QueryPerformanceFrequency(&freq);
QueryPerformanceCounter(&previousTime);

and with this i get the elapsed time. but i am not sure how to create a ten second counter. something that will just return tru when the elapsed time reaches ten seconds.

I know this is simple but for some reason my mind is stumped. i just need some one to potentially explain how this works.

thanks Posted Image

#1greenzone

Posted 02 August 2012 - 07:22 PM

i am currently trying to model a projectile in Physx. I would like a force to be applied to this projectile every ten seconds. I have never used time functions before.  I currently have access to time using
QueryPerformanceFrequency(&freq);
QueryPerformanceCounter(&previousTime);

and with this i get the elapsed time. but i am not sure how to create a ten second counter. something that will just return tru when the elapled time reaches ten seconds.

I know this is simple but for some reason my mind is stumped. i just need some one to potentially explain how this works.

thanks Posted Image

PARTNERS