Forum

box2D gravity only one object

is it possible to apply gravity to only one object ?
see image, i want the quad to be magnetic and the spheres tend to move towards it, not to each other.

Hey,

ApplyForce (Box2d) is your friend in that case. You can apply forces to individual objects.

thanks vux