Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

Calculating Relative Joint Angles in Unity3D

Discussion in 'Scripting' started by fifo_thekid, Mar 7, 2017.

  1. fifo_thekid

    fifo_thekid

    Joined:
    Mar 7, 2017
    Posts:
    2
    I have a Perception Neuron sensors set connected to a Unity moving character. The link is working perfectly but I need to replicate that movement to a robotic arm. I know how to program everything but my problem is mostly mathematical: the angles I get from the Perception Neuron software (called Axis Neuron) and from Unity are global, not relative. My biggest problem so far has been calculating the wrist rotation. How can I calcuate the relative angles between the arm and the forearm, the wrist roation and the relative angle of a finger to the hand?
     
  2. booiljoung

    booiljoung

    Joined:
    May 12, 2013
    Posts:
    57
    fifo_thekid likes this.
  3. fifo_thekid

    fifo_thekid

    Joined:
    Mar 7, 2017
    Posts:
    2
    thank you that was very helpful
     
    booiljoung likes this.