Weird Physics Problem!!!

Hi all
I have simple ground boxcollider2d and one player boxcollider2d, I move it using rigidbody2d.addforce or velocity but sometimes it doesn’t move atall. I changed my force value but it seems trapping! When I move it a little to up direction it starts to move!!

Could just be sticky enough that your lateral force is too small, but your vertical force can knock it loose.

Try giving it a larger sideways shove… multiply that initial force by 2 or by 10 and see if it moves.

Or try putting a PhysicMaterial2D on it that is slippery.

no , I add 30000 force but not move!!! but when I move it up slightly, it moved so fast

thx but why does it have so bullshit problem!

it was not solved!

Are you calling your code AddForce in FixedUpdate ?


Game Rules
Unified Visual Scripting Asset with rules engine

yes
it is so joke. When I cant move to right side, I moved to left and then now I can move right!!! it sometimes happens

Very strange. Maybe you can share the code of your script and setup eventually a video of what happens.


Game Rules
Unified Visual Scripting Asset with rules engine

I add only constant2Dforce. it moves and sometimes is stopped.
I changed linear drag from 0.1 to zero but it sometimes occurs
both the player and the ground are boxcollider2D!!

it was solved!! wtf
I had used several boxcollider2D for every tile. They were the same in size and collider(size+offset Y) etc
I replaced one box collider2D instead of them!
Why do I have to use one boxcollider2D instead of several of them sequently?

Nice to know your issue is solved :slight_smile:


Game Rules
Unified Visual Scripting Asset with rules engine