G
G
Goodron2017-10-06 19:03:22
Unity
Goodron, 2017-10-06 19:03:22

How to remove objects on collision and add another one?

I don’t catch up at all, for example, I have an object H (Hydrogen) and O (Oxygen), when they collide, they need to be removed and an H2O (Water) object added, how to implement this?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Daniil Basmanov, 2017-10-06
@AlexDarkStalker

Read the documentation for MonoBehaviour.OnCollisionEnter and see the official tutorial . You can use Object.Instantiate to turn on water .

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question