Basic-Unity-Head-Rotation | humanoid head in Unity | Animation library

 by   NumesSanguis C# Version: Current License: MIT

kandi X-RAY | Basic-Unity-Head-Rotation Summary

kandi X-RAY | Basic-Unity-Head-Rotation Summary

Basic-Unity-Head-Rotation is a C# library typically used in User Interface, Animation, Unity applications. Basic-Unity-Head-Rotation has no bugs, it has no vulnerabilities, it has a Permissive License and it has low support. You can download it from GitHub.

Rotating a humanoid head in Unity 3D by scripting. Trying to get it to work by muscle value or bone rotation.
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              Basic-Unity-Head-Rotation has a low active ecosystem.
              It has 10 star(s) with 3 fork(s). There are 2 watchers for this library.
              OutlinedDot
              It had no major release in the last 6 months.
              Basic-Unity-Head-Rotation has no issues reported. There are no pull requests.
              It has a neutral sentiment in the developer community.
              The latest version of Basic-Unity-Head-Rotation is current.

            kandi-Quality Quality

              Basic-Unity-Head-Rotation has no bugs reported.

            kandi-Security Security

              Basic-Unity-Head-Rotation has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.

            kandi-License License

              Basic-Unity-Head-Rotation is licensed under the MIT License. This license is Permissive.
              Permissive licenses have the least restrictions, and you can use them in most projects.

            kandi-Reuse Reuse

              Basic-Unity-Head-Rotation releases are not available. You will need to build from source code and install.

            Top functions reviewed by kandi - BETA

            kandi's functional review helps you automatically verify the functionalities of the libraries and avoid rework.
            Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of Basic-Unity-Head-Rotation
            Get all kandi verified functions for this library.

            Basic-Unity-Head-Rotation Key Features

            No Key Features are available at this moment for Basic-Unity-Head-Rotation.

            Basic-Unity-Head-Rotation Examples and Code Snippets

            No Code Snippets are available at this moment for Basic-Unity-Head-Rotation.

            Community Discussions

            Trending Discussions on Basic-Unity-Head-Rotation

            QUESTION

            Unity 3D - Move Humanoid head muscles using script
            Asked 2018-Feb-13 at 15:56
            Goal

            I would like to rotate a head of a humanoid character given x, y, z rotation values using a script (without using any other object in the scene as "look" direction).

            What I want to do

            When setting-up the rigging of a Humanoid character (humanoid prefab --> Rig --> Animation Type: Humanoid --> Configure --> Muscles & Settings), you see the following interface: https://docs.unity3d.com/Manual/MuscleDefinitions.html

            In this menu, under Head, you can drag a slider to move e.g. your humanoid head up and down. I want to achieve the same with a script, but I don't know how to do this.

            Resources

            This question never received a proper answer with example code: https://answers.unity.com/questions/824628/can-we-using-script-to-moving-the-muscles-in-unity.html

            I presume I have to do something with HumanPose.muscles (https://docs.unity3d.com/ScriptReference/HumanPose-muscles.html), however with the lack of code samples, I have no idea how to approach this.

            Edit 3: This link has a code sample for HumanPose, but I didn't get it to work yet: https://forum.unity.com/threads/humanposehandler.430354/

            Question

            How to get the head muscles of a humanoid character and rotate them by giving values through a script? (Or any other way how to rotate the head using head rotation values, without another object in the scene). Any help would be appreciated.

            Edit 1 & 2: Sample code

            I receive a JSON formatted message from which I extract the radian values and change it into degrees:

            ...

            ANSWER

            Answered 2018-Feb-12 at 19:29

            After testing for a while, I figured it out.

            1. Firstly, set the animator to IK Pass.

            1. Then use SetBoneLocalRotation inside OnAnimatorIK method. You can know more about this method here: https://docs.unity3d.com/ScriptReference/MonoBehaviour.OnAnimatorIK.html
              Following is the modified code that worked for me

            Source https://stackoverflow.com/questions/48740511

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install Basic-Unity-Head-Rotation

            You can download it from GitHub.

            Support

            For any new features, suggestions and bugs create an issue on GitHub. If you have any questions check and ask questions on community page Stack Overflow .
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
            CLONE
          • HTTPS

            https://github.com/NumesSanguis/Basic-Unity-Head-Rotation.git

          • CLI

            gh repo clone NumesSanguis/Basic-Unity-Head-Rotation

          • sshUrl

            git@github.com:NumesSanguis/Basic-Unity-Head-Rotation.git

          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link