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!
Request: cpSpaceStep(space, 0.0)
-
- Posts: 4
- Joined: Thu Sep 30, 2010 1:09 am
- Contact:
- slembcke
- Site Admin
- Posts: 4166
- Joined: Tue Aug 14, 2007 7:13 pm
- Contact:
Re: Request: cpSpaceStep(space, 0.0)
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/
Check out our latest projects! -> http://howlingmoonsoftware.com/wordpress/
-
- Posts: 4
- Joined: Thu Sep 30, 2010 1:09 am
- Contact:
Re: Request: cpSpaceStep(space, 0.0)
yes, It works. thank you!
-
- Posts: 12
- Joined: Sun Jan 22, 2012 5:17 pm
- Contact:
Re: Request: cpSpaceStep(space, 0.0)
cpSpaceRehashShape() is invalid function in chipmunk 6, how is now?
- slembcke
- Site Admin
- Posts: 4166
- Joined: Tue Aug 14, 2007 7:13 pm
- Contact:
Re: Request: cpSpaceStep(space, 0.0)
It was renamed to cpSpaceReindexShape.
Can't sleep... Chipmunks will eat me...
Check out our latest projects! -> http://howlingmoonsoftware.com/wordpress/
Check out our latest projects! -> http://howlingmoonsoftware.com/wordpress/
Who is online
Users browsing this forum: No registered users and 12 guests