Request: cpSpaceStep(space, 0.0)

Discuss new features and future development.
Post Reply
thejinchao
Posts: 4
Joined: Thu Sep 30, 2010 1:09 am
Contact:

Request: cpSpaceStep(space, 0.0)

Post by thejinchao »

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!
User avatar
slembcke
Site Admin
Posts: 4166
Joined: Tue Aug 14, 2007 7:13 pm
Contact:

Re: Request: cpSpaceStep(space, 0.0)

Post by slembcke »

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/
thejinchao
Posts: 4
Joined: Thu Sep 30, 2010 1:09 am
Contact:

Re: Request: cpSpaceStep(space, 0.0)

Post by thejinchao »

yes, It works. thank you!
returnvoid
Posts: 12
Joined: Sun Jan 22, 2012 5:17 pm
Contact:

Re: Request: cpSpaceStep(space, 0.0)

Post by returnvoid »

cpSpaceRehashShape() is invalid function in chipmunk 6, how is now?
User avatar
slembcke
Site Admin
Posts: 4166
Joined: Tue Aug 14, 2007 7:13 pm
Contact:

Re: Request: cpSpaceStep(space, 0.0)

Post by slembcke »

It was renamed to cpSpaceReindexShape.
Can't sleep... Chipmunks will eat me...
Check out our latest projects! -> http://howlingmoonsoftware.com/wordpress/
Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests