Hey Guys,
I have made a timer class wrapping the functionality of SDL's Timer. It is properly returning the delta time to me in milliseconds, only, I don't know how to properly give them to the Bullet Physics Step Simulation Method.
In the book It says to pass them in as seconds, so in my case I am getting about a millisecond between frames. So as a float, 0.001f. This is EXTREMELY slow, I have a simple demonstration for testing that has a ball drop to a sloped platform, this then begins to roll off to the edge. Before I used my timer I simply passed in 0.005f to the StepSimulation, which looked nice.
Am I doing this properly? It is a constant 0.001f that is getting passed in but it is a slow crawl, after the ball rolls off the edge it is like it's in slow motion, so it's not just the speed of the ball on the slope.
I have made a timer class wrapping the functionality of SDL's Timer. It is properly returning the delta time to me in milliseconds, only, I don't know how to properly give them to the Bullet Physics Step Simulation Method.
In the book It says to pass them in as seconds, so in my case I am getting about a millisecond between frames. So as a float, 0.001f. This is EXTREMELY slow, I have a simple demonstration for testing that has a ball drop to a sloped platform, this then begins to roll off to the edge. Before I used my timer I simply passed in 0.005f to the StepSimulation, which looked nice.
Am I doing this properly? It is a constant 0.001f that is getting passed in but it is a slow crawl, after the ball rolls off the edge it is like it's in slow motion, so it's not just the speed of the ball on the slope.
PC - Custom Built
CPU: 3rd Gen. Intel i7 3770 3.4Ghz
GPU: ATI Radeon HD 7959 3GB
RAM: 16GB
Laptop - Alienware M17x
CPU: 3rd Gen. Intel i7 - Ivy Bridge
GPU: NVIDIA GeForce GTX 660M - 2GB GDDR5
RAM: 8GB Dual Channel DDR3 @ 1600mhz
CPU: 3rd Gen. Intel i7 3770 3.4Ghz
GPU: ATI Radeon HD 7959 3GB
RAM: 16GB
Laptop - Alienware M17x
CPU: 3rd Gen. Intel i7 - Ivy Bridge
GPU: NVIDIA GeForce GTX 660M - 2GB GDDR5
RAM: 8GB Dual Channel DDR3 @ 1600mhz