Tag Info

New answers tagged

0

I had this same problem for a while. I was able to actually jump forever when I attacked. It turns out the problem was with the "whatIsGround" layer. Make sure everything is layered and the things you don't want to restart the jumpprocess are not checked in that mask layer. It solved my problem and might solve yours.


1

It does not stop, if you don't have friction and gravity, that in normal world slow you down. When applying force, you are really not adding force at all and in fact i am bit surprised that it actually moves at all. You should apply more force, to get your object moving. Try something like this. Vector2.right = Thats the direction of the force Multiply by ...


1

Consider reading books about realworld physics. "In physics, a force is any interaction which tends to change the motion of an object." - Wikipedia. So... By applying force you make it accelerate and decelerate. You need to have friction or don't use physics at all to make it stop at the end of button press.



Top 50 recent answers are included