[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4762: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3897)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4764: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3897)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4765: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3897)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4766: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3897)
Chipmunk Physics • View topic - wierd behaviour in cpPolyShapeSetVerts

wierd behaviour in cpPolyShapeSetVerts

Discuss any Chipmunk bugs here.

wierd behaviour in cpPolyShapeSetVerts

Postby jj2010 » Sun Mar 20, 2011 5:29 am

jj2010
 
Posts: 5
Joined: Thu Jun 03, 2010 12:57 am

Re: wierd behaviour in cpPolyShapeSetVerts

Postby slembcke » Sun Mar 20, 2011 2:04 pm

If you modify a shape by changing it's body's position or using one of the setter functions, it's collision detection data will be out of sync from the last cpSpaceStep(). This can lead to missed or incorrect queries until the next time that cpSpaceStep() is called. To update the collision detection data for a changed/moved shape you can call cpSpaceRehashShape(space, shape).

If you mean that after calling cpPolyShapeSetVerts() the shape is permanently unable to be queried, then I'm not quite sure what the problem would be.
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 Bugs

Who is online

Users browsing this forum: No registered users and 1 guest

cron