Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

configurable joint target rotation Setup

Discussion in 'Physics' started by Reaven99, Dec 27, 2015.

  1. Reaven99

    Reaven99

    Joined:
    Oct 3, 2015
    Posts:
    39
    Hello everyone.

    I am having trouble with setting up the configurable joint in such way that i can rotate it with the mouse.

    The setup i currently have is:
    A rigidbody [ The base ]
    A second Rigidbody [ The second base]
    A third rigidbody [ The rotating body ]

    The second rigidbody is connected to the first one with a configurable joint which i have setup to work just like a fixed joint.

    The third [rotating] body is connected to the second body with a configurable joint, and so far this is where my problem is.
    I can make it rotate using Angular force that is not a problem, but i want to control it with the mouse so i is very accurate. [ The final result will be a turret of some sort. ]
    Note: I have set the joint motions of the joint to LOCKED and the angular motions to FREE.

    Looking forward to all replies.

    Regards