D
D
Dmitry Korolev2017-08-19 15:54:46
C++ / C#
Dmitry Korolev, 2017-08-19 15:54:46

How to rotate an object about a parallel axis from the same point?

I have the player and the parent with the camera at the same point of the
player, I rotate the orbit along its axis only when I don’t move forward
when I start moving I need to rotate with the camera relative to the player for him
and then turn on the mo orbits in the code that I am harnessed by the tension of the player relative to the camera,
and I managed to align the camera, but not from all degrees (the player, with the camera)
, I sat all day and could not see the correct work from what I wrote, I have no strength
how to implement the camera rotation for the player at the start of the movement
https://pastebin.com/GDZAgBT2

Answer the question

In order to leave comments, you need to log in

1 answer(s)
G
Griboks, 2017-08-19
@adressmoeistranici

Transform.RotateAround
Transform.LookAt
Rigidbody.freezeRotation - what? but what if?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question