A
A
Alexander Fandeev2021-03-09 19:16:20
Unity
Alexander Fandeev, 2021-03-09 19:16:20

How to create an invisible barrier for the cube collider?

The character I control is a box collider. That is, in fact, it is a cube that can move and react to different obstacles, depending on the game logic. I need that when colliding with the left-right edge of the map, the cube collided, and did not fly further. I know that the situation is solved by adding / changing to CharacterController, but I need nothing to change in the sense of the previous collider. Is it possible to do so?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
DANICH70, 2021-03-10
@DANICH70

Add a Cube object, hang a collider on it, but not a ridgedbody! And turn off mesh render.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question