How to change gravity to be at x cordinates for rigidbody2d

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Dava

Typically a rigid-body object would go down (or up if you negate the value), but how do you make it go right (or left if you negate the value)

:bust_in_silhouette: Reply From: markopolo

I think this question has already been answered. You can do this by changing the global gravity settings or using an area2D’s gravity-changing capabilities. I do not know of a way to change a single rigidbody2D’s direction of gravity.