G
G
G3ntl3m3n2017-05-01 23:49:20
2D
G3ntl3m3n, 2017-05-01 23:49:20

unity. How to fix character sprite shaking when colliding with colliders in 2D?

When the player's collider collides with the collider and keep moving into the object, the sprite starts to shake.
The player collider is capsular and sits on top of the sprite renderer

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
Pparma, 2017-05-02
@G3ntl3m3n

It would be nice to see the code you move the player with. In a nutshell: do not set the position of the player directly, but move it in FixedUpdate using methods that provide for the presence of physics.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question