A
A
AsylkhanY2021-07-20 10:47:33
Unity
AsylkhanY, 2021-07-20 10:47:33

How to make an object rotate around another object?

I want the bow to spin around the player character

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
pashara, 2021-07-20
@pashara

The answer is within the framework of the author's knowledge:
make a GameObject_1 (GO), in which to put another GO_2. GO_2 shift in local coordinates GO_1. In update rotate through Quaternion GO_1. Position GO_2 - the desired position.
The approach is working, not quite elegant but easy to understand. No math.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question