|
I have been making a 3rd person fighter game and but i haven't made a good camera script yet. I made a script that can rotate my character (which is just a cylinder with a face) and make him walk and run, but i need a camera script. I would like to use the MouseOrbit script because it is what i am looking for, but i need some help. One thing is I need help with is when i rotate the camera to look, i would like the character to rotate as well to face the direction the camera is facing. How would i sript that? I tried to script it myself but obviously i don't know a lot of scripting.
(comments are locked)
|
|
i wanted exactly the same thing. do this:
that should so when your camera rotates your player also rotates MAKE SURE you add this script to your player. also, might want
to keep the player from rotating to look straight down (and be floating (perfect for space though)) It says Assets/my scripts/walker.js(57,47): BCE0019:'localEulerAngles' is not a member of 'UnityEngine.Camera'. how do i fix that?
Jan 02 '11 at 06:43 AM
Tyler Alvis
sorry, just add "transform." after "cameraMO." so it would be cameraMO.transform.localEulerAngles.
Jan 02 '11 at 09:31 PM
Jesus_Freak
(comments are locked)
|
