M
M
MdaUZH2018-03-11 18:23:44
Unity
MdaUZH, 2018-03-11 18:23:44

How to set movement direction in unity3d?

Good afternoon, there is an object 5aa5494e8a2cd539996962.pngin the center of the screen, by clicking on it I create a GameObject as Rigidbody2D, but here's the problem, you need
to direct the created object in the direction where the notch looks, how to set the direction of movement?
5aa549fd0eec0975473180.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Ark Tarusov, 2018-05-30
@MdaUZH

Take transform.forward from your big circle - these are the directions of movement.
Your notch should initially be at zero rotation coordinates.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question