A
A
alexandribragimoviz2021-06-22 00:52:16
C++ / C#
alexandribragimoviz, 2021-06-22 00:52:16

Why does a 2d object pass through another 2d object?

Hello.
I need your help.

Please tell me how to make a 2d object collide with another 2d object (you need to make a wall)
In Unity, a 2d object was created with a RigidBody 2d collider and BoxCollider2D, but the object still passes through the other.

If possible, please write in more detail.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
MrSlowpoke, 2021-06-22
@MrSlowpoke

If transform.position is used, then you need to replace it with rigidbody.addforce or character controller

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question