C
C
CSharpMutant2021-05-23 23:19:04
Unity
CSharpMutant, 2021-05-23 23:19:04

How to make an object move with the platform?

There is a platform (which has movement).
Objects that lie on the platform (cubes) do not move with the platform, but simply stay in place, as if sliding on the surface of the platform. How to make them move with the platform if the platform starts moving?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
IDzone-x, 2021-05-23
@CSharpMutant

Well, for example, when touching, you can:
Cube.transform.SetParent(platform);
And when exiting, on the contrary
PS I remember something similar was in one book, well, if you want to know, then write to the cart, maybe I will find

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question