Gravity acceleration is too high?

Official forum for the Chipmunk2D Physics Library.

Gravity acceleration is too high?

Postby rishflab » Sun Jul 12, 2015 8:20 pm

Hi All

I have a dynamic body with a 1 unit radius circle shape attached to it. My screen is 18 units tall and 32 units wide.
If I have the gravity set a anything higher than -0.0001f the circle shape falls almost instantly right through a 1m thick segment shape and way off the screen.. My timestep is 20ms. I have no idea why the gravity acceleration is so high? Is chipmunk acceleration units/timestep^2 or units/second^2 ?
rishflab
 
Posts: 3
Joined: Sun Jul 12, 2015 8:12 pm

Re: Gravity acceleration is too high?

Postby rishflab » Sun Jul 12, 2015 11:43 pm

dw about this thread.

I figured out what I was doing wrong. I thought timestep for cpSpaceStep(cpSpace* space, cpFloat timestep) was measured in milliseconds when it is actually measured in seconds.
rishflab
 
Posts: 3
Joined: Sun Jul 12, 2015 8:12 pm


Return to Chipmunk2D Physics

Who is online

Users browsing this forum: No registered users and 3 guests

cron