Hello, sorry for the title i didnt no what to put
Okay so here is my problem
I have modeled a full character From head to toe… and when i attach a mouse look script on to the player model the HOLE model lookes up and down… i dont want this to happen
all i want is The top half to look up and the feet to stay in the same postion… (Walking) so im asking you if there is anything Out there that will help me on this
If there is can you please help
Thanks
Benjimazza.
As I understand this, you basically have two options that are feasible.
First, breakdown the model into pieces, This is how most people accomplish it. The head ends up being its own part, but the other models that make up your character should be ‘Sisters’ not ‘Daughters’ of the head. (If the head is parent the transform.rotation effects will trickle down onto the other parts) The empty object that holds these parts will constitute you character as a whole.
Secondly, write a animation handler that will cause the head to move based on the transform.rotation of the camera. I’m fairly certain this wouldn’t be the best of ways to go if you are looking for realism. Mainly because without some careful part tweaking the head would have to have an animation for each angle you wanted it to look. (Normally if you don’t mind about realistic angles you would use this method, saves on processing just a touch >.0
Final option, write transforming animation script the likes of which no one has ever seen, and a concurrent camera script that mimic one another, just to show off.
If all this has you daunted but your a fair hand at stripping apart an example i would suggestion checking out this:
http://unity3d.com/support/resources/example-projects/3rdpersonshooter
Its a free example from the unity site. Should contain something similar to your needs inside it. If not there’s always writing your own solution.