2
votes
How do I change the gravity for just one object
You can set the gravityScale parameter on your Rigidbody2D component to zero to ignore the built-in gravity. Then you can add a <...
1
vote
Accepted
Changing GameObject Position with the new InputSystem Unity 2D
I'm not sure I understand your question 100%, but for the target of attacking left, you can simply treat the Player as a whole and flip it horizontally. In 2D games ...
- 1,936
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
2d × 3399unity × 1057
c# × 447
collision-detection × 353
physics × 337
java × 297
xna × 260
sprites × 255
animation × 162
c++ × 161
movement × 153
mathematics × 145
opengl × 138
3d × 130
tilemap × 130
platformer × 125
tiles × 123
android × 119
camera × 115
javascript × 112
graphics × 105
libgdx × 98
rotation × 93
algorithm × 89
lighting × 81