behdad / box2d

Automatically exported from code.google.com/p/box2d
2 stars 12 forks source link

Add a flag to control whether the world gravity affects a body. #177

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I've seen this question asked a few times in the forums. Here is a patch that 
adds this.

Original issue reported on code.google.com by zzymyn on 15 Feb 2011 at 1:00

Attachments:

GoogleCodeExporter commented 9 years ago
I don't think isGravitated is useful feature.  The default gravity is nice 
since it helps new users get up and running quickly.  More advanced forms of 
gravity already require the user the apply the gravity by hand.  I would say 
isGravitated is just another advanced used of gravity.

Original comment by j.nick.terry@gmail.com on 8 Mar 2011 at 3:17

GoogleCodeExporter commented 9 years ago
I added a per body gravity scale since people ask for this so much.

Original comment by erinca...@gmail.com on 25 Mar 2011 at 7:04