I have a player who i control with tilting. Also i have some game objects (something like ground or areas where player can not move). The problem is that if these objects are too small the player can pass through them. If the objects are big the result is also undesirable. The result is something like knock back effect. The player collide with another object and then the object push back player. It's look like player is shaking .That effect happen almost every time when the collide.
- Player has:
- standard rigidbody2d
- box collider 2d with material (Friction and Bounciness are 0)
- tilt script:
transform.Translate(Input.acceleration.x * speed, Input.acceleration.y * speed, 0);
- The another objects have:
- box collider 2d.