- Home /
AddForce() in axis x and y not working
Good people! I'm trying to apply force to my player when it collides with an enemy. As well as this the code does not work. But if like this, in AddForce I change Vector2.left and Vector.Right, both for Vector.up, it applies the force to me without problems! (But upwards) I want you to apply them to my sides, what am I doing wrong? Thank you!
codigo.png
(33.2 kB)
Comment