Have few questions about objects movements...

I am making 1 game and i need this stuff, and can't get this working properly so if anyone knows, thanks in advance :
- how to make that some objects are less affected by gravity so they fall slower/faster and bounce more/less
- how to make that objects bounce from some objects more then from others? I tried changing restitution , but it didn't really work good...
- how to make that some objects are not affected by gravity at all?
- how to make that in 1 zone there is no gravity while in some other there is? Zones could have weird shapes but they will be made from many 32x32 rectangles
- how to make that some objects movement is reduced.. not sure how to say that , but in all directions acceleration and velocity should be lower or higher for example?

I guess lot of question is similar to maybe some of them could be even answered at once =)

Thx in advance!
Quote:
- how to make that some objects are less affected by gravity so they fall slower/faster and bounce more/less

this is mainly just a use of putting a force onto a object. if you want it to fall faster, apply a force to it going downward (eg new b2Vec2 (0, -5)) if you want to make it less affected by grivity you make it go upward (eg new b2Vec2 (0, 5)).

Quote:
- how to make that objects bounce from some objects more then from others? I tried changing restitution , but it didn't really work good...

your best bet is probably to play around with the restitution till you get a result

Quote:
- how to make that some objects are not affected by gravity at all?

if your using box2d version 2.0 then you set its mass to 0
if your using box2d version 2.1a then you set its type as a b2Body.b2staticBody
[quote]
- how to make that some objects movement is reduced.. not sure how to say that , but in all directions acceleration and velocity should be lower or higher for example?
[quote]
manipulate the velocity. Something like this:

body.SetVelocity (new b2Vec2 (body.GetVelocity().x / 1.1, body.GetVelocity().y / 1.1)

would make it more slower
Thx for answers!

I think this wouldn't work though :
body.SetVelocity (new b2Vec2 (body.GetVelocity().x / 1.1, body.GetVelocity().y / 1.1)
Since this needs to be used in update loop, velocity would really fast fall to near 0..

Original thread: https://box2d.org/forum/viewtopic.php?t=4819