FPS Character with model

I've seen many example projects and tutorials for the fps style game in unity, but none of them involve having a main character with an actual model (apart from the standard capsule). Can anyone explain how I would go about setting up an fps-type player character with an actual character model? I've tried lining up the camera to a character, but then the body of the character gets in the way. . . it seems that perhaps I need a player character that would be "seen" by the enemies (and myself when I die) and a separate arms+weapon model that would be seen only by the camera during gameplay - of course, I don't know how to do this. Any help on this seemingly basic issue?

more ▼

asked Mar 18, 2011 at 01:24 AM

jesseoffy gravatar image

217 15 12 15

Would you want to be able to see your body during the gameplay? (When you're still alive)

Mar 18, 2011 at 03:24 AM Nolirneen

Most FPS games like Halflife, Quake, Unreal... don't have a playermodel. They have a special weapon model that consists of the actual weapon and the visible part of your arm. The model just contains things you want to see from your view. Sure, in multiplayer other players will have the "default/full" model.

Mar 18, 2011 at 03:57 AM Bunny83

While I, as the player, just need to see that weapon+arms model, I want to set it up so others (pretending this is multiplayer, for now) could see the actual mesh instead of just a capsule.

Mar 18, 2011 at 11:58 AM jesseoffy
(comments are locked)
10|3000 characters needed characters left

6 answers: sort voted first

well i've figured it out myself how to do it. download the free character pack in the asset store. once u downloaded it put in the game and put the mouse look script in spine 2. set the script in the "y" axis. position the cam and put in on clipping planes :near = 0.001 and leave the other one alone. position him and the way you want and parent the camera to the spine 2. then parent the right and left shoulder and the neck to the camera. then click on soldier(or swat which ever one u chose)give it a mouse look script and put it the "x" axis. add character control script, character motor script, and finally FPSInput Controller Script. then u should be ready to go.

more ▼

answered Nov 26, 2011 at 10:35 PM

LoopyEL_BARTO gravatar image

1 6 4 5

(comments are locked)
10|3000 characters needed characters left

Do you actually want a character for your game? Something like a soldier for your game? If yes you could : -Buy(Not recommanded) -Model it in : -Blender(I am using thsi is very good...) -Maya(If you wnat a bledner with money...:) -Cinema 4d (for good animation (awesome if want cartoons) -Orc Maker(if want orc) -Reel(of pro) -3DS Max(if want normal soliders with high graphics good quality so on...) Hope it helps :)

more ▼

answered Dec 08, 2011 at 10:53 PM

bula gravatar image

61 67 56 58

and add the script when you import it in unity 3d

Dec 08, 2011 at 10:54 PM bula
(comments are locked)
10|3000 characters needed characters left

I tried to create a character in this tutorial http://www.youtube.com/watch?v=6oo8NyalY6o&feature=context&context=C429fad1VDvjVQa1PpcFPQlaa0eKCF4E4LGroc-ZikDvREWnHK4s4= and it works great. In the midst of the spine will place empty object (lock) + Mouselook script and then the bone underneath the upper body. The problem is that the bone located under lock object loses its animation (eg reload, fire). Other bones works perfectly. how to get animation to work well under this object?

more ▼

answered Apr 07, 2012 at 01:27 PM

dany gravatar image


(comments are locked)
10|3000 characters needed characters left

será que ninguem sabe fazer um FPS com personagem só tem tutoriais com a capsula, ou o pessoal tem medo de passar o seu conhecimento para as outras pessoas.

more ▼

answered Apr 09, 2012 at 02:03 AM

Wellington gravatar image


@Wellington, a resposta do LoopyEL_BARTO mostra como ele fez isso. Geralmente se usa uma cápsula porque ela tem o mesmo formato do collider, e em um FPS você não vê o próprio corpo - no máximo as mãos e os braços. Por isso, alguns fazem um modelo fajuta que só tem braços. Mas se for jogar em multiplayer, aí você tem de ter um modelo completo - que precisa das animações e de um script que as acione nos momentos certos. Como isso dá muito trabalho, quase sempre se usa a velha capsula.

Apr 09, 2012 at 02:20 AM aldonaletto
(comments are locked)
10|3000 characters needed characters left

Its actually really simple. Use render layers! I dont quite know how to set it up for multiplayer, but for being able to see yourself after you are shot it would be something like this:

You have two layers, an fps layer and a tps layer. set the fps weapon to the fps layer and the tps model to the tps layer. You start with the camera always ignoring the tps layer. Then when the player is shot, you have the script change it to view the third person layer and ignore the first person layer.

more ▼

answered Aug 11, 2012 at 09:25 PM

nixtwiz gravatar image

303 14 13 19

(comments are locked)
10|3000 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments



asked: Mar 18, 2011 at 01:24 AM

Seen: 9339 times

Last Updated: Sep 01 at 10:36 PM