[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[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 - Ah Collisions.. why not eh?

Ah Collisions.. why not eh?

Official forum for the .

Ah Collisions.. why not eh?

Postby jaysonturner » Fri Aug 28, 2009 12:45 pm

jaysonturner
 
Posts: 13
Joined: Wed Jul 22, 2009 12:17 pm

Re: Ah Collisions.. why not eh?

Postby jaysonturner » Fri Aug 28, 2009 12:58 pm

ignore this, im a total sp.... erm can't think of the politically correct term..
jaysonturner
 
Posts: 13
Joined: Wed Jul 22, 2009 12:17 pm

Re: Ah Collisions.. why not eh?

Postby jaysonturner » Fri Aug 28, 2009 1:07 pm

argh thought id solved it, made my line segments thicker, but still when my active body picks up acceleration it still flyies through the segements...

tips on how to solve this possibly common issue?

a point the right direction will do :)
jaysonturner
 
Posts: 13
Joined: Wed Jul 22, 2009 12:17 pm

Re: Ah Collisions.. why not eh?

Postby slembcke » Fri Aug 28, 2009 2:55 pm

All you changed was the scale and now all your objects don't work? Are you sure you scaled everything? The positions of the bodies and the sizes of the shapes that you are creating? Otherwise I have no idea what the problem could 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

Re: Ah Collisions.. why not eh?

Postby jaysonturner » Sat Aug 29, 2009 8:08 am

ill start from scratch and see what happens... watch this post.
jaysonturner
 
Posts: 13
Joined: Wed Jul 22, 2009 12:17 pm

Re: Ah Collisions.. why not eh?

Postby jaysonturner » Mon Aug 31, 2009 2:56 pm

could the problem be that the position of gravity changes in every iteration of the game loop? the gravity of the space is set to different co-ordinates depending on the rotation of the iphone.
jaysonturner
 
Posts: 13
Joined: Wed Jul 22, 2009 12:17 pm

Re: Ah Collisions.. why not eh?

Postby slembcke » Mon Aug 31, 2009 3:46 pm

Doubtful. The only thing that changes is which direction they move in.
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: Ah Collisions.. why not eh?

Postby jaysonturner » Tue Sep 01, 2009 10:50 am

Well, after a bit of re-factoring, collisions are working better. They are however still inconsistent.

Basically if i whiz my iphone around with a little bit of rapidity, the active object is able to break through the 4 segments shielding the sides of the screen...

any more thoughts?
jaysonturner
 
Posts: 13
Joined: Wed Jul 22, 2009 12:17 pm

Re: Ah Collisions.. why not eh?

Postby slembcke » Tue Sep 01, 2009 11:17 am

Chipmunk does not perform swept collisions. If objects are moving fast enough they will be able to pass through each other. You either need to make the objects larger, or slow them down.
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: Ah Collisions.. why not eh?

Postby Tam Toucan » Tue Sep 01, 2009 12:01 pm

Adding to that, so either make the line segments thicker (see cpSegmentShapeNew), or (at the cost of more CPU for the collisions) change the 4 segments into polygons to make thick walls.
User avatar
Tam Toucan
 
Posts: 141
Joined: Tue Jun 23, 2009 4:26 pm

Next

Return to Chipmunk2D Physics

Who is online

Users browsing this forum: No registered users and 1 guest

cron