P
P
parusa2021-12-19 10:49:41
C++ / C#
parusa, 2021-12-19 10:49:41

Parents and child objects?

Everything is very simple, I have a parent and one child object in it
, the task is for the parent to move after the child object

* And no, swapping them will not work

Answer the question

In order to leave comments, you need to log in

2 answer(s)
X
xXx_Unity_xXx, 2021-12-19
@xXx_Unity_xXx

Push the child object into the main object in the list of objects by pulling the child into it.

F
Farawa, 2021-12-19
@Farawa

If without physics, then at the start, or when you need it there, you can take the spatial offset of the parent from the child and move the parent when moving in the update, only with the parent it will move in the same way and this needs to be compensated. If with physics, then you just do a fixedjoint and move it as you like

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question