Request: cpSpaceStep(space, 0.0)

Discuss new features and future development.

Request: cpSpaceStep(space, 0.0)

Postby thejinchao » Wed Jan 05, 2011 1:22 am

Hi!
My project has a "Edit" Mode. In this mode, the space keep suspend mode, and cpBody's data(pos, velocity...) can be adjusted manually. After that, these object must update at screen immediately. and keep space suspend.
First, I call the function "cpSpaceStep(space, 0.0)" to update every shape in system but failed. Is there another way to do this?
Thanks!
thejinchao
 
Posts: 4
Joined: Thu Sep 30, 2010 1:09 am

Re: Request: cpSpaceStep(space, 0.0)

Postby slembcke » Wed Jan 05, 2011 3:47 pm

It sounds like you just need to call cpSpaceRehashShape() after moving things.
Can't sleep... Chipmunks will eat me...
Check out our latest projects! -> http://howlingmoonsoftware.com/wordpress/
User avatar
slembcke
Site Admin
 
Posts: 4164
Joined: Tue Aug 14, 2007 7:13 pm

Re: Request: cpSpaceStep(space, 0.0)

Postby thejinchao » Wed Jan 05, 2011 9:31 pm

yes, It works. thank you!
thejinchao
 
Posts: 4
Joined: Thu Sep 30, 2010 1:09 am

Re: Request: cpSpaceStep(space, 0.0)

Postby returnvoid » Fri Jun 01, 2012 6:23 pm

cpSpaceRehashShape() is invalid function in chipmunk 6, how is now?
returnvoid
 
Posts: 12
Joined: Sun Jan 22, 2012 5:17 pm

Re: Request: cpSpaceStep(space, 0.0)

Postby slembcke » Fri Jun 01, 2012 10:11 pm

It was renamed to cpSpaceReindexShape.
Can't sleep... Chipmunks will eat me...
Check out our latest projects! -> http://howlingmoonsoftware.com/wordpress/
User avatar
slembcke
Site Admin
 
Posts: 4164
Joined: Tue Aug 14, 2007 7:13 pm


Return to Features/Development

Who is online

Users browsing this forum: No registered users and 1 guest