K
K
KRAcoder2021-04-11 02:41:58
C++ / C#
KRAcoder, 2021-04-11 02:41:58

What to do if in unity, when objects collide, one of them flies away?

When two objects collide with the ridgedbody component, the physics works incorrectly and one of them starts to fly away. Unity 2020.
Object is moving with the following script

transform.Translate(Vector3.forward * Time.deltaTime * 15);

Answer the question

In order to leave comments, you need to log in

1 answer(s)
G
Griboks, 2021-04-12
@Griboks

Have you read the documentation on physics? What settings do you have on the components? Why are you moving the object through script and not through physics? What body is flying?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question