D
D
DALVROT2021-06-24 00:31:40
Unity
DALVROT, 2021-06-24 00:31:40

Unity2D How to implement the movement of the square towards the specified edge?

There is an ordinary 2D square, implemented a rotation, but the motion vector does not depend on the rotation of the object. How to implement it?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
H
Hixac, 2021-06-24
@Hixac

I could be wrong, but try using local coordinates for translation or transform.Translate

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question