Box2D Forums

It is currently Thu May 23, 2013 1:35 pm

All times are UTC - 8 hours [ DST ]




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Create rope like this
PostPosted: Thu Nov 03, 2011 7:40 am 
Offline

Joined: Thu Nov 03, 2011 7:32 am
Posts: 1
Hello,
im trying to make a rope script like this for about 2 weeks.
(http://www.miniclip.com/games/final-ninja/en/)
I need my rope able to collide bodies like the game does.
I tried rope joints , and it works fine when I only have 1 joint,
but there is no collision of course,
and if I create many bodies with rope joint,
when I update length,
it didnt works fine, the joints will jumping around.
so how can I make a rope like the game?


Top
 Profile  
 
PostPosted: Thu Nov 03, 2011 9:22 am 
Offline
Site Admin

Joined: Thu Sep 06, 2007 12:34 am
Posts: 2931
Try using ray casts to find out if there is a corner then create a new anchor point. Then you will not need a chain of bodies.


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

All times are UTC - 8 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


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