L
L
LittleBob2021-12-11 22:12:37
Unity
LittleBob, 2021-12-11 22:12:37

How to disable interaction between objects with Rigidbody2D?

I have two objects that have a Rigidbody2d and a movement script via rb.velocity. If driving one object crashes into another, then it will move. How to remove this interaction between them? So that they just crash into each other like a normal collider. At the same time, you cannot remove the Rigidbody component because movement is implemented through it.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
Ente, 2021-12-12
@Ente

Check IsKinematic=true for all objects that should not move

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question