L
L
Liaonid2021-06-21 08:56:57
Unity
Liaonid, 2021-06-21 08:56:57

How to move the player while he is standing on the conveyor (in the direction in which the conveyor is directed)?

How in Unity2D while the player is standing on some object (for example, a conveyor) move him in the direction in which this very object is directed?
I tried to do it through OnTriggerEnter () but either I tried badly or turned the wrong way at all.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
L
Lipovnik, 2021-06-21
@Lipovnik

1) If your conveyor is stationary, then while the object is in contact with the conveyor, you can move the object according to some rules (give forces or change position)
2) If the conveyor is moving, then you can make the object a child of the conveyor or the laws of physics can move the object
3) It seems that there are vidos on this and a similar topic, you could search

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question