Box2D Forums

It is currently Tue May 21, 2013 1:30 pm

All times are UTC - 8 hours [ DST ]




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Sticky mode?
PostPosted: Mon May 23, 2011 5:01 pm 
Offline

Joined: Sat May 21, 2011 8:04 am
Posts: 14
I'm trying to make a character that walks along the edges of the objects, like in "Sideroller" demo. Using the Groundfinder class I find a moveContact that's the most suitable and remove all the friction on the other contacts of the player. I still don't know though where should the actual force that sticks the body to the wall be applied. Any tips?


Top
 Profile  
 
 Post subject: Re: Sticky mode?
PostPosted: Sat May 28, 2011 11:03 am 
Offline

Joined: Fri Dec 14, 2007 8:07 pm
Posts: 913
Apply force based off the contact's normal.


Top
 Profile  
 
 Post subject: Re: Sticky mode?
PostPosted: Wed Jun 01, 2011 2:18 pm 
Offline

Joined: Sat May 21, 2011 8:04 am
Posts: 14
Thanks, I got it figured out!


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 9 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