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. Dismiss Notice

Point a gun with mouse ( 3rd person character )

Discussion in 'Editor & General Support' started by ivanbozovic, Nov 16, 2014.

  1. ivanbozovic

    ivanbozovic

    Joined:
    May 17, 2014
    Posts:
    9
    Hi guys,

    So I'm making a multiplayer FPS and there is one view where you see only hands and gun, and how others see your whole character ( I'm just check if photonView.isMine. If there is any more efficient way please tell me :) ).
    Anyways I don't know how to make a player point a gun with mouse in the view others see you. If you have any solution, please tell me :D!

    Thanks, Ivan !
     
  2. N1warhead

    N1warhead

    Joined:
    Mar 12, 2014
    Posts:
    3,884
    I believe it is done with bones.

    Make like a empty game object and have whichever bones rotate towards it.

    But I haven't actually done that, I've been wondering the same thing too!
    Hope what I said is right, or if someone else can give the right answer because I've been wondering as well,
    just never made it that far into my game yet to deal with that.
     
  3. ivanbozovic

    ivanbozovic

    Joined:
    May 17, 2014
    Posts:
    9
    Thanks, Il try that when my friend finishes modeling the character
     
  4. JosephMcG

    JosephMcG

    Joined:
    Oct 7, 2014
    Posts:
    7
    The unity Mecanim Examples pack has some good examples of controlling bones/ look angle through script, it would be a good place to have a look