Box2D Forums

It is currently Wed May 22, 2013 10:35 pm

All times are UTC - 8 hours [ DST ]




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Air Friction
PostPosted: Sat Apr 21, 2012 11:02 pm 
Offline

Joined: Thu Feb 23, 2012 4:22 am
Posts: 8
Hi! I've been doing on a Platform physics based game. As we all know that applying an impulse to the body makes it like flying in the air.
So I'm thinking of adding an air friction but don't know what is the body property to change.

BTW I have an alternative to impulse. I changed the linear velocity of the body but it get sticky to any static objects it hit in mid air so I changed it back to applying impulse.

Any wisdom words please.
Thanks!


Top
 Profile  
 
 Post subject: Re: Air Friction
PostPosted: Wed Apr 25, 2012 8:14 am 
Offline

Joined: Thu Mar 01, 2012 9:31 am
Posts: 153
What are you trying to accomplish exactly? To me air friction mean drag. The faster you travel, the more resistance you encounter.


Top
 Profile  
 
 Post subject: Re: Air Friction
PostPosted: Thu Apr 26, 2012 10:48 pm 
Offline

Joined: Mon May 23, 2011 9:41 am
Posts: 18
Check out the linearDamping property from BodyShape class. Please tell me if that is what you were looking for.


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