Hi
The problem is that my RigidBody2D is “falling” in the move position !
If I increase the x scale of the BoxCollider2d it just rotate sometimes.
But I can’ t do this because I want the player to jump over holes and when the BoxCollider is bigger than the hole that dosn’ t work.
I also can’t freeze the z rotation of the RigidBody because then he’s stopping to move.
Tried applaing a physics material to it, with high friction? I did not understand the whole thing, because, a) what do you want exactly, b) whats happening, c) a picture of the problem or something is not in the thread
Ok, if i understood it correctly, you want to make a game, where you fall down and need to fall down trough holes, if you could send the code, that moves the character, then it would ve easier to help.
Its an endless runner and the player doesn’t fall he runs.
Thats working fine on a cube : he is moving forward.
But when I let him run over my ground (I have 3 ground prefabs wich are spawning side by side) he “stumble” and rotates on the z axis. And if I freeze the z axis he just stops !
But when I look on the ground I can see there are no irregularities.
I spawn the player a bit over the ground so he falls on it.
When I look now in the Inspector I see that the z axis turns from 0 to 359.4… when the player hit the ground.
I don’t know what picture can help.
Then do the opposite, put a physics material with no friction on both of the gameobjects
1 Like