Box2D Forums

It is currently Fri May 24, 2013 5:46 am

All times are UTC - 8 hours [ DST ]




Post new topic Reply to topic  [ 3 posts ] 
Author Message
PostPosted: Fri Jun 08, 2012 6:11 am 
Offline

Joined: Fri May 02, 2008 6:23 am
Posts: 28
Hi.

I´m creating a test using MouseJoint, but when I drag some body, it passes through the game area boundaries (made of boxes).

Any tip?

Thanks

Jose


Top
 Profile  
 
PostPosted: Sat Jun 09, 2012 11:04 pm 
Offline

Joined: Tue Jun 24, 2008 8:25 pm
Posts: 1517
Location: Tokyo
If it does this only when moving fast, you could try making the dragged body a 'bullet' body.
If it also does it when moving slow, you could try setting the 'collideConnected' of the joint to true, or create a different static body to use for the mouse joint.


Top
 Profile  
 
PostPosted: Tue Jun 12, 2012 12:19 pm 
Offline

Joined: Fri May 02, 2008 6:23 am
Posts: 28
I set 'collideConnected' to true, now the collisions are ok!

Thanks.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC - 8 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group