R
R
Rook F2021-04-08 23:00:29
Unity
Rook F, 2021-04-08 23:00:29

The object clings to colliders, how to fix it?

There are colliders on the player (turquoise square) and on the floor areas (one of them highlighted in orange), but when the player moves, he sometimes hits the floor collider, although they are located at the same height.

How to fix it?

606f5fda4a49d065136883.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
T
Tera Incognita, 2021-04-08
@Lunali

Just raise the collider and lower
the cube ...... do you think the bottom value is zero everywhere? then the platform itself can be minus 1 ....
They should not initially be at the same height, the player and the collider should always be at least 1 higher. . It will be approximately a collider with the player falling down and if it touches the platform, then bounce off the platform to zero Change the player until the value is zero, if zero + 1. Just why solve it programmatically? If initially you can set the height for example 0.1 ? Platform zero Player in the collider in the range from 0.1 to somewhere around 0.25

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question