- Home /
How to change gravity's direction on a single gameobject?
I had an enemy that stick and move along the wall. I wanted to change gravity's direction when it rotated but couldn't find any. First I add the constant force 2d component and change its value through the script but it didn't feel like gravity's force to me. Then I just directly change the rigidbody2d velocity in the code but then sometimes it would make my object got stuck to the ground and couldn't move. Do you have any solutions?
Comment