Question by
Damiano96 · Feb 04, 2021 at 11:04 AM ·
animationunityeditorprogrammingproceduralprocedural animation
How to rotate object based on four vector3 points?
Hello! Im currently working on procedural animation trying to understand the fundamentals and how to implement it better. I am stuck trying to work out how to rotate the body of this Quadruped based on its legs. I understand I would have to get the distance between the legs but I dont understand how I can translate that into Quaternion/Rotation values and apply it to the body it the centre!
Any advice or help would be appreciated! Thankyou!
procedural-animation.png
(503.4 kB)
Comment
Your answer
![](https://koobas.hobune.stream/wayback/20220613024541im_/https://answers.unity.com/themes/thub/images/avi.jpg)