Simulation controls and computation time

gm09
Posts: 9
Joined: Fri Aug 05, 2011 1:27 am

Simulation controls and computation time

Post by gm09 »

Hi,

I'm new to Bullet and am wondering:

1. Are there ways to control the simulations? I.e., keyboard shortcuts to reset the simulation, play it, stop it, etc...?
2. How can I find out the computation/processing time it took to produce a simulation? I.e., is there a log file or something outputted somewhere after a simulation runs that would have this information?

Any help would be appreciated. Thanks in advance! :)
MaxDZ8
Posts: 149
Joined: Fri Jun 24, 2011 8:53 am

Re: Simulation controls and computation time

Post by MaxDZ8 »

gm09 wrote:1. Are there ways to control the simulations? I.e., keyboard shortcuts to reset the simulation, play it, stop it, etc...?
For the demos, check out DemoApplication.cpp, in particular
void DemoApplication::keyboardCallback(unsigned char key, int x, int y)
gm09 wrote:2. How can I find out the computation/processing time it took to produce a simulation? I.e., is there a log file or something outputted somewhere after a simulation runs that would have this information?
I suppose you are looking for this?
You can also follow the demos (the keyboard callback is a start) to figure out how they generate their output. I did this a couple of weeks ago, it's not difficult at all but I forgot what they do.