E
E
Essence272022-02-17 14:47:16
C++ / C#
Essence27, 2022-02-17 14:47:16

What are the best features to use?

What is the difference between the functions and which one is better to use:
Collider.OnCollisionEnter(Collision)
Collider.OnTriggerEnter(Collider)
For example, I want one object to collide with another and the second one to fly in that direction. Tobish, if I collided with a cube with a cube on the right side, then it should fly in the direction of impact, that is, to the left.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
G
GavriKos, 2022-02-17
@Essence27

For the task you described, none of these functions is needed at all - physics will automatically calculate new force vectors and everything will scatter automatically

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question